executionlistener actions

7 views
Skip to first unread message

Paul Lorenz

unread,
Aug 18, 2009, 5:07:25 PM8/18/09
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

Reply all
Reply to author
Forward
0 new messages