JBoss Community

Re: Rule Task after Human Task

created by vchmakov in jBPM - View the full discussion

Hi Maciej,

Thank you for your reply! Yes, I can see that the rule node is invoked, i.e. process is entering the node, but does not execute the rule assigned to it. The code is rather basic. The rules are doing nothing, but just logging a debug info into the log file. The process is invoked from another rule which in its turn is invoked by fileAllRules() against the session from the MQ event handler. Nothing fancy.

I got up this morning and saw at least two posts after mine with similar problems. One of them is from Guo-Guang Chiou.

Now it is obvious to me (yes, just now as I’m a complete novice in Drools/JBPM area) that the rule is not triggered as there is nothing active in the working memory and that the fireAllRules() should somehow be called. I need to do something to make it working, e.g. use some event listeners as it has been suggested in another replies. My question is, why it is not done automatically when Human Task is completed? Is there an event something like afterTaskComplete() so that I could trap it and fire my rules from there?

Thanks!

Vlad

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community