[jboss-user] [jBPM] - Re: Rule Task after Human Task

Jesus Moreno do-not-reply at jboss.com
Sat Jan 21 07:04:08 EST 2012


Jesus Moreno [https://community.jboss.org/people/jesus2031] created the discussion

"Re: Rule Task after Human Task"

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

--------------------------------------------------------------
Hi everyone,

     I have wasted  so much time trying to resolve the same problem. I researched all the measures people are exposing in this forum to solve the problem but nothing seems to work. What I have learnt is that firstly  you have to launch the method fireAllRules()  in order to activate all the rule tasks associated (it makes an association between ruleflow-group (inside of .drl file) and Rule Task ) but, after the Human Task, everything seems to change . The sequencial flow of our process is suspended, appearing a period where nothing happens. I don´t understand what is happening there but the log console shows that the ruleflow group is activated but the action defined in the .drl file is never launched:

BEFORE RULEFLOW GROUP ACTIVATED group:rule[size=1]
AFTER RULEFLOW GROUP ACTIVATED group:rule[size=1]
AFTER PROCESS NODE TRIGGERED node:Rule[id=4] process:Rule1[id=com.sample.bpmn]


I have been researching through three work lines:

          -> With  a new thread and the fireUntilHalt(). Method recommended in:  https://community.jboss.org/thread/167602 https://community.jboss.org/thread/167602

          -> With the class AgendaEventListener. Method recommended in:  https://community.jboss.org/message/627166#627166#627166 https://community.jboss.org/message/627166#627166

          -> And now I´m trying to analyze Maciej´s method with "kcontext.getKnowledgeRuntime().insert(kcontext.getProcessInstance());"

Every help will be useful

Ciaoo
--------------------------------------------------------------

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

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/20120121/3d183843/attachment.html 


More information about the jboss-user mailing list