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

Sameer K do-not-reply at jboss.com
Fri Aug 3 03:21:07 EDT 2012


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

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

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

--------------------------------------------------------------
Hi I am newbie to jbpm.

I have a process as below

start-->rule task1-->human task1-->rule task2-->human task2-->end

I am using a knowledge session which is singleton(handled in code).

I am adding AgendaEventListener to session and in afterRuleFlowGroupActivated method executing fireallrules.

Also, I have added kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance()); in human task1 on exit action.

Now when i am executing the process and if i provide two different rule flow groups in human task 1 and human task 2 then both the rule task are getting executed.

But when i use same rule flow group then process gets stuck on rule task, it doesnt move further as rules are not executed.

Please throw some pointers on what needs to be done.

Can i reactivate a rule flow group in any way?

Also in same session i am unable to fire same rule flow group for second process as well, which means my rule flow group is executing only once.

I know some prob from my end, any help would be appreciated.

JFYI the rule doesnt contain any thing which will manipulate the flow, its a simple when then condition and in then condition i have added a println.
 
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/751823#751823]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120803/1f4fc0b2/attachment.html 


More information about the jboss-user mailing list