Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] 
created the discussion

"Re: fail to fire a rule task~~ frustrated"

To view the discussion, visit: http://community.jboss.org/message/631504#631504

--------------------------------------------------------------
The behavior that you describe is correct, that is you invoke fireAllRules() 
before the process reached the business rule task and so at the time you invoke 
fireAllRules() there aren't any active rules.

A simple solution is to add an EventProcessListener to the 
StatefulKnowledgeSession and then for every ProcessNodeTriggeredEvent, if the 
node is a business rule task, call the fireAllRules() method. But if you using 
jbpm-console to run the process I don't have any suggestion because i don't 
know how to manage the StatefulKnowledgeSession incapsulated in jbpm-console.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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