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.
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test"> <process id="B-Process" name="B-Process"> <documentation>Place documentation for the 'B-Process' process here.</documentation> <scriptTask id="bProcessLog" name="B Process Log" scriptFormat="groovy"> <script><![CDATA[Date now = new Date(); String nowStr = now.format('yyyy/MM/dd HH:mm:ss SSS'); print "B-Process started at $nowStr \n";]]></script> </scriptTask> <endEvent id="procBTimerEnd" name="ProcB Timer End"></endEvent> <sequenceFlow id="flow3" name="" sourceRef="bProcessLog" targetRef="nap"></sequenceFlow> <sequenceFlow id="flow4" name="" sourceRef="nap" targetRef="procBTimerEnd"></sequenceFlow> <scriptTask id="nap" name="Nap" activiti:async="true" scriptFormat="groovy"> <script><![CDATA[print "B-Process going to sleep\n";Thread.sleep(5000);print "B-Process is awake now.\n";]]></script> </scriptTask> <startEvent id="bProcessStart" name="B-Process-Start"></startEvent> <sequenceFlow id="flow5" name="" sourceRef="bProcessStart" targetRef="bProcessLog"></sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_B-Process"> <bpmndi:BPMNPlane bpmnElement="B-Process" id="BPMNPlane_B-Process"> <bpmndi:BPMNShape bpmnElement="bProcessLog" id="BPMNShape_bProcessLog"> <omgdc:Bounds height="55" width="105" x="300" y="160"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="procBTimerEnd" id="BPMNShape_procBTimerEnd"> <omgdc:Bounds height="35" width="35" x="640" y="170"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="nap" id="BPMNShape_nap"> <omgdc:Bounds height="55" width="105" x="460" y="160"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="bProcessStart" id="BPMNShape_bProcessStart"> <omgdc:Bounds height="35" width="35" x="180" y="170"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3"> <omgdi:waypoint x="405" y="187"></omgdi:waypoint> <omgdi:waypoint x="460" y="187"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> <omgdi:waypoint x="565" y="187"></omgdi:waypoint> <omgdi:waypoint x="640" y="187"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"> <omgdi:waypoint x="215" y="187"></omgdi:waypoint> <omgdi:waypoint x="300" y="187"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>