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.
<process id="messageBoundaryEvent" name="My process" isExecutable="true"> <startEvent id="startevent1" name="Start"></startEvent> <serviceTask id="servicetask1" name="Service Task" activiti:class="com.lin.activiti.delegate.MessageDelegate"></serviceTask> <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="servicetask1"></sequenceFlow> <boundaryEvent id="boundarymessage1" name="Message" attachedToRef="servicetask1" cancelActivity="false"> <messageEventDefinition messageRef="messageEvent"></messageEventDefinition> </boundaryEvent> <serviceTask id="servicetask2" name="Service Task" activiti:expression="#{printer.printMessage('task has benn message triggered.')}"></serviceTask> <sequenceFlow id="flow2" sourceRef="boundarymessage1" targetRef="servicetask2"></sequenceFlow> <endEvent id="endevent1" name="End"></endEvent> <sequenceFlow id="flow3" sourceRef="servicetask2" targetRef="endevent1"></sequenceFlow> <endEvent id="endevent2" name="End"></endEvent> <sequenceFlow id="flow4" sourceRef="servicetask1" targetRef="endevent2"></sequenceFlow> </process>