How to bind custom ActivityBehavior ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2012 03:39 AM
Hi,
with activiti-engine 5.9 how can i replace a default ActivityBehavior with a custom one ?
For example i'd like to bind MyMailActivityBehavior instead of the original MailActivityBehavior to be executed for a mail task
The question is a generic one, i use activiti in a spring dm/osgi environment and due to class visibility restrictions i have to `adjust` certain aspects.
thank you
with activiti-engine 5.9 how can i replace a default ActivityBehavior with a custom one ?
For example i'd like to bind MyMailActivityBehavior instead of the original MailActivityBehavior to be executed for a mail task
The question is a generic one, i use activiti in a spring dm/osgi environment and due to class visibility restrictions i have to `adjust` certain aspects.
thank you
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2012 04:16 AM
You could plug in a org.activiti.engine.impl.bpmn.parser.BpmnParseListener (look on forum to see example usage) that implements the parseSendTask() method. Here, you have acces to the parsed ActivityImpl before it gets handed to the engine for execution. You could, for example, get the wrapped Activitybehaviour and replace it by your class, ext rating all fields you need from the original persed ActivitiBehaviour (in your case MailActivityBehavior).
Hope this helps…
Hope this helps…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2012 12:07 PM
it works, thank you

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 12:25 PM
HOw is the same implemented in Activiti 5.21 version?
