malabalu [https://community.jboss.org/people/malabalu] created the discussion
"Re: JBPM 5" To view the discussion, visit: https://community.jboss.org/message/723346#723346 -------------------------------------------------------------- I got it working like you said.It is oersisting too before the gateway. pasting the xml if anybody is interested. <?xml version="1.0" encoding="UTF-8"?> <definitions id="Definition" targetNamespace=" http://www.jboss.org/drools http://www.jboss.org/drools" typeLanguage=" http://www.java.com/javaTypes http://www.java.com/javaTypes" expressionLanguage=" http://www.mvel.org/2.0 http://www.mvel.org/2.0" xmlns=" http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" xmlns:g=" http://www.jboss.org/drools/flow/gpd http://www.jboss.org/drools/flow/gpd" xmlns:bpmndi=" http://www.omg.org/spec/BPMN/20100524/DI http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc=" http://www.omg.org/spec/DD/20100524/DC http://www.omg.org/spec/DD/20100524/DC" xmlns:di=" http://www.omg.org/spec/DD/20100524/DI http://www.omg.org/spec/DD/20100524/DI" xmlns:tns=" http://www.jboss.org/drools http://www.jboss.org/drools"> <itemDefinition id="_testItem" /> <process processType="Private" isExecutable="true" id="servicetask" name="Sample Process" tns:packageName="defaultPackage" > <!-- process variables --> <property id="test" itemSubjectRef="_testItem"/> <!-- nodes --> <startEvent id="_1" name="StartProcess" /> <intermediateCatchEvent id="_4" name="Signal" > <dataOutput id="_4_Output" name="event" /> <dataOutputAssociation> <sourceRef>_4_Output</sourceRef> <targetRef>test</targetRef> </dataOutputAssociation> <outputSet> <dataOutputRefs>_4_Output</dataOutputRefs> </outputSet> <signalEventDefinition signalRef="MyTest"/> </intermediateCatchEvent> <scriptTask id="_5" name="Script" scriptFormat=" http://www.java.com/java http://www.java.com/java" > <script>System.out.println("after the signal"+test);</script> </scriptTask> <endEvent id="_6" name="End" > <terminateEventDefinition/> </endEvent> <scriptTask id="_7" name="Script" scriptFormat=" http://www.java.com/java http://www.java.com/java" > <script>System.out.println("I am before the signal");</script> </scriptTask> <parallelGateway id="_8" name="Gateway" gatewayDirection="Converging" /> <!-- connections --> <sequenceFlow id="_8-_5" sourceRef="_8" targetRef="_5" /> <sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" /> <sequenceFlow id="_1-_7" sourceRef="_1" targetRef="_7" /> <sequenceFlow id="_7-_8" sourceRef="_7" targetRef="_8" /> <sequenceFlow id="_4-_8" sourceRef="_4" targetRef="_8" /> </process> <bpmndi:BPMNDiagram> <bpmndi:BPMNPlane bpmnElement="servicetask" > <bpmndi:BPMNShape bpmnElement="_1" > <dc:Bounds x="46" y="74" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_4" > <dc:Bounds x="15" y="184" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_5" > <dc:Bounds x="202" y="277" width="80" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_6" > <dc:Bounds x="391" y="295" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_7" > <dc:Bounds x="200" y="68" width="80" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_8" > <dc:Bounds x="379" y="106" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="_8-_5" > <di:waypoint x="403" y="130" /> <di:waypoint x="242" y="301" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_5-_6" > <di:waypoint x="242" y="301" /> <di:waypoint x="415" y="319" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_1-_7" > <di:waypoint x="70" y="98" /> <di:waypoint x="240" y="92" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_7-_8" > <di:waypoint x="240" y="92" /> <di:waypoint x="403" y="130" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_4-_8" > <di:waypoint x="39" y="208" /> <di:waypoint x="403" y="130" /> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions> -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/723346#723346] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
