As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<itemDefinition id="StartProcessMessageType" structureRef="java.lang.String" /><br><br><message id="StartProcessMessage" itemRef="StartProcessMessageType" /><br><br> <!– Start Event–><br> <startEvent id="messageStartEvent" name="StartProcess" ><br> <dataOutput id="messageStartEventOutput" /><br> <dataOutputAssociation><br> <sourceRef>messageStartEventOutput</sourceRef><br> <targetRef>s</targetRef><br> </dataOutputAssociation><br> <outputSet><br> <dataOutputRefs>messageStartEventOutput</dataOutputRefs><br> </outputSet><br> <messageEventDefinition messageRef="StartProcessMessage"/><br> </startEvent>
I keep searing for the same. I have a parent process that does some stuff and at some point I want to create several subprocesses. I suppose I can loop in the flow, that seems awkward. The first thought I has was a script task that called startProcessInstanceByMessage() ... specifying a message refernce. I'd have another process that used the "message start event" ...
This is what the Eclipse plug-in generates. There appears to be exactly what I wont ... just throws an exception when I try to call startProcessInstanceByMessage() beccause there are no subscribers.
<startEvent id="messagestartevent1" name="Message start" activiti:async="true"> <messageEventDefinition messageRef="TriggerSubProcessMessage"></messageEventDefinition></startEvent>
The reference you make takes me to the User Guide that sure seems to descrbie just want i want...
A message start event can be used to start a process instance using a named message. This effectively allows us to select the right start event from a set of alternative start events using the message name.