AnsweredAssumed Answered

Using Mule task to send messages from Activiti to Mule

Question asked by annayudkovsky on Apr 15, 2013
Latest reply on Apr 16, 2013 by annayudkovsky

In our project we are using Activiti 5.11 and Mule ESB 3.0. Both are running in separate JVMs.
We are trying to figure out communication piece right now.

As I understand from reading documentation and “Activiti in Action” book in the standalone setup (separate JVMs)
-   Mule ESB communicates with Activiti Engine using Activiti REST API calls;
-   Activiti needs to use web service task or JMS queues to communicate with Mule.

Here is Activiti configuration with Mule task (from Activiti in Action book Chapter 11) :

<definitions xmlns=""

  <process id="helloWorldMule">
    <startEvent id="theStart" />
    <sequenceFlow sourceRef="theStart" targetRef="sendMule" />
    <sendTask id="sendMule" activiti:type="mule">
       <activiti:field name="endpointUrl">
       <activiti:field name="language">
       <activiti:field name="payloadExpression">
       <activiti:field name="resultVariable">
    <sequenceFlow sourceRef="sendMule" targetRef="theEnd" />
    <endEvent id="theEnd" />

Is it correct to assume that activity-type = “mule” for the sendTask in the example above is only relevant for embedded configurations when Activiti and Mule are in the same JVM?

Anna Y.