AnsweredAssumed Answered

Mule Integration

Question asked by brianrook on Jul 19, 2011
Latest reply on Mar 18, 2014 by georgegao
Hello, I'm working on a project where I intend to call Mule from inside of an Activiti process.  I have downloaded and installed Activiti 5.6 and I've got the database setup.

From my bpmn20.xml file:

   <process id="createInboundDocument">
      <startEvent id="start" />

      <sequenceFlow sourceRef="start" targetRef="create_workitem_action" />

      <serviceTask id="create_workitem_action"
         name="Create a WorkItem from the InboundDocumentAction"
         activiti:class="com.stoneriver.iip.document.bpm.CreateWorkItemFromInboundDocument" />

      <sequenceFlow sourceRef="create_workitem_action"
         targetRef="create_workitem" />

      <sendTask id="create_workitem" activiti:type="mule">
            <activiti:field name="endpointUrl"
               expression="vm://" />
            <activiti:field name="language">
            <activiti:field name="payloadExpression">
            <activiti:field name="resultVariable">

      <sequenceFlow sourceRef="create_workitem" targetRef="end" />

I can see the first task being called (create_workitem_action).  However, as soon as it tries to call the second task, I get this error in my console:

SEVERE: Error while closing command context
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'muleContext' is defined

The Activiti process is being called from a Mule endpoint, so I'm positive that Mule is communicating with Activiti, but it appears that Activiti doesn't have access to the Mule context for some reason.  How do I fix that?