cancel
Showing results for 
Search instead for 
Did you mean: 

Spring Integration with Activiti

erwincc
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
This is built-in into activity:

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