[jboss-user] [jBPM] - JBPM 4.3: Is it possible to leave current state on timer listener?

Maciej Swiderski do-not-reply at jboss.com
Tue Apr 13 12:07:06 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"JBPM 4.3: Is it possible to leave current state on timer listener?"

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

--------------------------------------------------------------
Hi,

in my opinion event listeners should not be used to change the flow of the process. It should be treated as additional hooks in the process that are not visible on the process diagram and that's why are perfect for non business related activities such as logging, event submition, etc.

What you could do it so you timer transition, as follows:


    <transition name="timeout" to="escalation">
      <timer duedate="10 minutes" />
    </transition>


If you put this in your wait node after 10 minutes (unless it will be signaled) transition will be taken.

In your case you could either check all you need in associated event listener when taking this transition or have a user activity (java, custom) for such a check. Next you move on to decision point to verify what to do, if status is not yet correct go back to wait state to wait another 10 minute or move on with your process.

HTH
Maciej

--------------------------------------------------------------

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

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/20100413/9de5620e/attachment.html 


More information about the jboss-user mailing list