Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 4802

Drools: Executing multiple rules simultaneously via REST

$
0
0

I am new to drools. I want to fire multiple rules simultaneously depending on the condition. I am using batch-execution command as follows, but it gives me error : "Bad request, no commands to be executed - either wrong format or no data"

{"batch-execution":{"lookup":"defaultKieSession","commands":[        {"insert":{"out-identifier":"TestAdvance","object":{"LoanAdvance":{"tenure":4,"isBlacklisted":false                    }                }            }        },        {"insert":{"out-identifier":"TestAdvance","object":{"LoanAdvance":{"tenure":3,"isBlacklisted":false                    }                }            }        },        {"fire-all-rules":{            }        }    ]}}

My rule in guided decision table looks like this:the rule

I want to make a REST request to the rule engine and get the result set as a list.Please confirm if my JSON request is correct. Or is there any better way to achieve the same?Any help would be appreciated.

Thanks & Regards


Viewing all articles
Browse latest Browse all 4802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>