Paul Lorenz
unread,Aug 18, 2009, 5:07:25 PM8/18/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sarasvat...@googlegroups.com
Hi all,
I added a return type to ExecutionListener#notify, allowing execution listeners to interact with the engine. Currenly, listeners are allowed to request the following:
1. Delay node execution: Only valid for NODE_TOKEN_ACCEPTED event. Skips the actual execution of the node. We can use this later to implement delayed execution of nodes based on timer.
2. Delay process completion: Only valid for PROCESS_COMPLETED events. Leaves the process is in PENDING_COMPLETE state. I use this to do some asynchronous processing on process completion, which then calls finalizeComplete when it's done.
3. Delay process cancellation: Only valid for PROCESS_CANCELED events. See #2.
If anyone sees any issues with the implementation or see other ways in which this could be useful, let me know.
cheers,
Paul