[jboss-user] [jBPM] - Re: Unable to fire rules before and after human task using same rule flow group

Sameer K do-not-reply at jboss.com
Tue Aug 7 10:10:41 EDT 2012

Sameer K [https://community.jboss.org/people/0sameerk0] created the discussion

"Re: Unable to fire rules before and after human task using same rule flow group"

To view the discussion, visit: https://community.jboss.org/message/752405#752405

I am using the below rule.

rule "RuleCheck"
ruleflow-group "validate"
 processInstance : WorkflowProcessInstance()
 System.out.println("RuleCheck Executed="+processInstance.getId());

The log for above rule when i use the same rule-flow-group for multiple rule task in same process i.e. the flow mentioned in first post above is:

For 1st rule task

BEFORE ACTIVATION FIRED rule:RuleCheck activationId:RuleCheck [1] declarations: processInstance=WorkflowProcessInstance26 [processId=Flow123,state=1](1) ruleflow-group: validate
RuleCheck Executed=25

For 2nd rule task
BEFORE RULEFLOW GROUP ACTIVATED group:validate[size=0] *{I think this is the catch, might be wrong}*

I feel from above log is that rule-flowgroup needs to be reactivated again, so that we get the size.

Can some one tell me how can we re-activate the rule flow group and then call fireallrules from afterRuleFlowGroupActivated method of AgendaEventListener.

Or atleast provide some pointers on how the AgendaEventListener and its methods work.



Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120807/7ffe06da/attachment.html 

More information about the jboss-user mailing list