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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to