How to invoke task listener for custom events
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2013 06:32 AM
Hi,
I am trying to invoke task listener for events such as Suspend. How can I do that? I extended the task listener. But
when I give the event name in the bpmn file it gives an error. I see it allows only create, assign and suspend.
<activiti:taskListener event="suspend" class="org.listener.MyTaskListener"></activiti:taskListener>
How can I invoke the listener when the event is Suspend ?
I am trying to invoke task listener for events such as Suspend. How can I do that? I extended the task listener. But
when I give the event name in the bpmn file it gives an error. I see it allows only create, assign and suspend.
<activiti:taskListener event="suspend" class="org.listener.MyTaskListener"></activiti:taskListener>
How can I invoke the listener when the event is Suspend ?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2013 04:22 AM
Suspending is not an actual event. We only support the events that are listed in the user guide. You should add a layer on top of the Activiti API which does any additional logic in your own code, when the suspendProcess() or suspendProcessDefinition() is called.
