Search code examples
droolsjbpm

Need to fire same ruleflow-group multiple times from Single Flow


For reusable perspective, I have one Rule with Rule Flow group. I have use same rule flow group multiple times in flow. Now the situation is its should be fire same rule more then one time,but its only fire that rule single time.

I don't understand why its happens.

Can you give me an idea why its happening and whats the solution for same?


Solution

  • A Rule Task in a flow does not "execute" the rules in a rule-flow-group, it merely activates that group in the agenda so IF there are active rules, they will fire.

    If between 2 executions of your Rule Task you modify the session in a way that new activations are created, consecutive executions of your task should fire new activations of those rules.

    Hope it helps,