Spring Integration with Activiti

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2012 05:21 PM
I am developing an application in Spring which requires me to run BPMN 2.0 using Activiti engine. I have followed the instructions in the User guide for 5.9. I wanted to use a JavaDelegate to hook up the execution of BPMN 2.0 xml file. Is there a way for me to make my implementation of JavaDelegate able to be managed by Spring ( or at least get hold of the ApplicationContext)?
Thanks in advance.
Thanks in advance.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2012 02:07 AM
This is built-in into activity:
http://activiti.org/userguide/index.html#bpmnJavaServiceTask
Where "delegateExpressionBean" is the ID of the bean that implements JavaDelegate
http://activiti.org/userguide/index.html#bpmnJavaServiceTask
It is also possible to use an expression that resolves to an object. This object must follow the same rules as objects that are created when the activiti:class attribute is used (see further).
<serviceTask id="serviceTask" activiti:delegateExpression="${delegateExpressionBean}" />
Where "delegateExpressionBean" is the ID of the bean that implements JavaDelegate
