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
-> With the class AgendaEventListener. Method recommended in: 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