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">
         <extensionElements>
            <activiti:field name="endpointUrl"
               expression="vm://createWorkItem.in?connector=vmSync" />
            <activiti:field name="language">
               <activiti:string>juel</activiti:string>
            </activiti:field>
            <activiti:field name="payloadExpression">
               <activiti:string>#{createWorkItemAction}</activiti:string>
            </activiti:field>
            <activiti:field name="resultVariable">
               <activiti:string>workItemCollection</activiti:string>
            </activiti:field>
         </extensionElements>
      </sendTask>

      <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
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFac
tory.java:521)

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?


Thanks!

Outcomes