[jboss-user] [jBPM] - Re: fail to fire a rule task~~ frustrated

Francesco Pietrobelli do-not-reply at jboss.com
Thu Oct 13 03:52:45 EDT 2011


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111013/3bb6d267/attachment-0001.html 


More information about the jboss-user mailing list