cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel Event

ghernando
Champ in-the-making
Champ in-the-making
Hello,
I'm using Activiti for a Workflow in Alfresco.
I want to be able to catch a 'cancel' event operation that terminates the workflow before it has finished normally.
I need to be able to do some cleanup of items there.

I'm not sure how to do this.  I expected something like a 'cancelEvent'.  In the Activiti documentation I see some discussion about 'boundary events' that seems related.
These are marked as 'experimental'.  There is a discussion of making <endEvent> into a cancel event, but I'm not sure how this event would be distinguished from the existing endEvent that I'm already using.

Thanks
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The easiest way to do this is to attach an execution listener to the start of the end event:

See http://activiti.org/userguide/index.html#executionListeners