Hi,

 

 

I have created two rule groups “Group 1” and “Group 2”.

 

Now, I have read that to execute these groups I need to write something like following code :

 

 

Rule "pick group X"

when

    Fact( attribute = "condition1" )

then

    drools.setFocus("Group 1")

end

 

Rule "pick group Y"

when

    Fact( attribute = "condition2" )

then

    drools.setFocus("Group 2")

end

 

I wanted to know is it always necessary to write separate rules for calling/execution of these rule groups (rules pick group X” and “pick group Y”)?

 

Or is there any other api function similar to ksession.fireAllRules() for calling specific rule group ?

 

 

Thanks & Regards,

Swapnil Sawant



This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________