BpmnParseListener delete process

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2012 10:23 AM
I delete a process instance with runtimeService.deleteProcessInstance.
Which method from BpmnParseListener it's useful for adding a listener relate with this event?
Can I add a listener for deleted tasks(process instance removal).
Or I'll have to do my own query to discover which tasks were deleted?
Which method from BpmnParseListener it's useful for adding a listener relate with this event?
Can I add a listener for deleted tasks(process instance removal).
Or I'll have to do my own query to discover which tasks were deleted?
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2012 04:10 AM
Hi,
There's no listener for process deletion. So yes you should write your own polling/query mechanism for this.
Best regards,
There's no listener for process deletion. So yes you should write your own polling/query mechanism for this.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2012 04:54 AM
Please disregard my previous message. You can add an ExecutionListener on the process level with a event type "end".
This ExecutionListener is executed when the deleteProcessInstance is invoked.
Best regards,
This ExecutionListener is executed when the deleteProcessInstance is invoked.
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2013 08:41 PM
Hi Tijs,
Could you please confirm that an execution listener registered with the end event of a process will be executed when deleteProcessInstance is invoked? I followed the path of execution through the source code, and I can't find where this would be occurring.
Thank you very much!
-Ryan
Could you please confirm that an execution listener registered with the end event of a process will be executed when deleteProcessInstance is invoked? I followed the path of execution through the source code, and I can't find where this would be occurring.
Thank you very much!
-Ryan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2013 03:44 AM
Yes, an execution-listener which is defined on the process-definition (not on the end-event) will be called when the process is completed normally OR when it's deleted before completion. The delete-reason is also available at this time. If you have a listener defined on the end-event, it will only be called when the process actually reaches the end.
