cancel
Showing results for 
Search instead for 
Did you mean: 

Creating service tasks

experimental
Champ in-the-making
Champ in-the-making
Hello there,

How does one create a service task and supply the variables to it?

For Drools, I have used an interface with a number operations which define the inputs and output messages. In the service task I then use dataInputAssociations and dataInputRefs to get the data from the process to the service task and back out again.

How does this work in Activiti?

Thank you.
2 REPLIES 2

experimental
Champ in-the-making
Champ in-the-making
I have implemented an ActivityBehaviour that calls my library with some test code. I am trying to deploy it to the server but I get a ClassNotFound. It would seem your Ant deployer task will process the BPMN to make sure it is correct, which will fail if my library and the ActivityBehaviour are not on the classpath.

What now? Where would one put the libraries for your Ant Build task? I put my libraries here

${activiti.home}/examples/activiti-engine-examples/libs-runtime
assuming that this is used as the classpath for the ant task. I also put them on the server itself in tomcat's lib folder.

jbarrez
Star Contributor
Star Contributor
This is a known issue in RC1, which is fixed in GA. Now the deployer wont check anymore if the class exists when deploying.

As a workaround for the moment, you need to add your custom jar to the classpath of ant.