[jboss-user] [jBPM] - Re: Jbpm 5.4 timer persistence

Maciej Swiderski do-not-reply at jboss.com
Mon Aug 12 01:10:05 EDT 2013


Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Jbpm 5.4 timer persistence"

To view the discussion, visit: https://community.jboss.org/message/832230#832230

--------------------------------------------------------------
overdue timers are fired automatically after session has been restored.

To know what sessions need to be restored would depend on your session management strategy. What you could do is to try to group sessions and those with timers would belong to given group that might be identified by name - the grouping mapping would need to be outside of the runtime engine itself. That way when the process goes into timer node you'll have way to find out what session might be worth restoring. Alternatively to timer events you could use signal events and the ejb timer will do the work (signal ksession or process instance) based on time intervals - since you already plan to use ejb timers. So the ejb timer would simple look through the grouping/mapping to find what is awaiting signal and just load the given session and then send signal on it.

HTH
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130812/6cf37b0b/attachment.html 


More information about the jboss-user mailing list