AnsweredAssumed Answered

ProcessInstanceID

Question asked by psernetz on Mar 16, 2011
Latest reply on Dec 28, 2011 by nickparker
Hi,

I am playing around with the mule <-> activiti integration. To start a process from mule I use the

   <activiti:outbound-endpoint description="RequestCampaignCodesProcess">
      <activiti:create-process />
   </activiti:outbound-endpoint>

function and define the process with a script:component

   <script:component>
      <script:script engine="groovy">
         Map map = new HashMap()
         map.put("processDefinitionId", "RequestCampaignCodes:1:249") //the id of the definition
         //map.put("processDefinitionKey", "RequestCampaignCodes:1") //the id of the definition
         
         return map
      </script:script>
   </script:component>

But what is the best way to get the id. I know the name of the process (RequestCampaignCodes) and I know the revision (1), but what about the random number (249)?

http://www.activiti.org/userguide/index.html#versioningOfProcessDefinitions
http://www.activiti.org/userguide/index.html#versioningOfProcessDefinitions

Outcomes