[rules-users] Rule Orchestration

swaroop swaroop.oggu at gmail.com
Mon Apr 28 10:35:33 EDT 2014


Hi,

Iam using Drools 5.6 , developing rules on guvnor. I have a scenario where i
have two decision tables , One is supposed to execute after the other. 

I want to ensure that DT Two should be executed only after all the
executions in DT one happen . Because IN DT Two the list is being checked if
set of values are not present, currently when i have two Customer objects in
Working memory each having matching rows in Decision Table One .Once the
match is found for a customer object then as per the action a Product fact
is inserted which leads to fire the DT Two and the list is evaluated if set
of d are not present , the rule is fired in DT Two as the list is not
populated for the other customer object and matching rows which is being
checked in DT Two eval list column. Which is not desired . I tried with
salience , ruleflow group with not much of a help

Is there a way to can handle this 

<http://drools.46999.n3.nabble.com/file/n4029371/DTIssue.png> 

*Decision Table One*

Condition	     Condition	           Condition	                 Action
c:Customer			
a==$param	   b in ($param)	         c == $param	"list(Global
Variable).add(d);
                                                                        
insert(Product())"
*Decision Table Two*

Condition	     Condition	                         Condition	                
Action
p:Product			
a==$param	   eval(list doesnt not contain ($param))	         c == $param
response.setMessage($param);

Regards
Oggu

                                                                         



--
View this message in context: http://drools.46999.n3.nabble.com/Rule-Orchestration-tp4029371.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list