Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3607

designer - support for (on entry / on exit) actions

    XMLWordPrintable

Details

    • Hide

      1) Designer does not show the process flow if there is a on entry action definition.
      -Add the attached bpmn to your defaultPackage using webdav.
      -Open designer
      ->a empty process is shown

      2) Its not possible to use on entry actions.
      -Create a stimple bpmn (Start -> HumanTask -> Stop)
      -try to define a on entry action in your HumanTask, in example:
      ftlContentMap = new java.util.HashMap<String,String>();
      ftlContentMap.put("Titel","My Titel");
      ftlContentMap.put("taskResultCode", Integer.toString( -1 ));
      ftlContentMap.put("taskResultMessage", "My task result message.\n\tEinrückung");
      kcontext.setVariable("ftlContentMap", ftlContentMap);
      -click "Ok"
      -> action not saved

      bpmn which shows repruduce this issue:
      <?xml version="1.0" encoding="UTF-8"?>
      <definitions id="Definition"
      targetNamespace="http://www.jboss.org/drools"
      typeLanguage="http://www.java.com/javaTypes"
      expressionLanguage="http://www.mvel.org/2.0"
      xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
      xmlns:g="http://www.jboss.org/drools/flow/gpd"
      xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
      xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
      xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
      xmlns:tns="http://www.jboss.org/drools">

      <itemDefinition id="_ftlContentMapItem" structureRef="java.util.HashMap" />

      <process processType="Private" isExecutable="true" id="defaultPackage.actions_test" name="actions_test" tns:packageName="defaultPackage" >

      <!-- process variables -->
      <property id="ftlContentMap" itemSubjectRef="_ftlContentMapItem"/>

      <!-- nodes -->
      <startEvent id="_1" name="Start" />
      <userTask id="_2" name="User Task" >
      <extensionElements>
      <tns:onEntry-script scriptFormat="http://www.java.com/java">
      <script>ftlContentMap = new java.util.HashMap<String,String>();
      ftlContentMap.put("Titel","My Titel");
      ftlContentMap.put("taskResultCode", Integer.toString( -1 ));
      ftlContentMap.put("taskResultMessage", "My task result message.\n\tEinrückung");
      kcontext.setVariable("ftlContentMap", ftlContentMap);</script>
      </tns:onEntry-script>
      </extensionElements>
      <ioSpecification>
      <dataInput id="_2_ContentInput" name="Content" />
      <dataInput id="_2_TaskNameInput" name="TaskName" />
      <inputSet>
      <dataInputRefs>_2_ContentInput</dataInputRefs>
      <dataInputRefs>_2_TaskNameInput</dataInputRefs>
      </inputSet>
      <outputSet>
      </outputSet>
      </ioSpecification>
      <dataInputAssociation>
      <sourceRef>ftlContentMap</sourceRef>
      <targetRef>_2_ContentInput</targetRef>
      </dataInputAssociation>
      <dataInputAssociation>
      <targetRef>_2_TaskNameInput</targetRef>
      <assignment>
      <from xsi:type="tFormalExpression">DisplayTaskResult</from>
      <to xsi:type="tFormalExpression">_2_TaskNameInput</to>
      </assignment>
      </dataInputAssociation>
      <potentialOwner>
      <resourceAssignmentExpression>
      <formalExpression>krisv</formalExpression>
      </resourceAssignmentExpression>
      </potentialOwner>
      </userTask>
      <endEvent id="_3" name="End" >
      <terminateEventDefinition/>
      </endEvent>

      <!-- connections -->
      <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
      <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />

      </process>

      <bpmndi:BPMNDiagram>
      <bpmndi:BPMNPlane bpmnElement="defaultPackage.actions_test" >
      <bpmndi:BPMNShape bpmnElement="_1" >
      <dc:Bounds x="16" y="16" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_2" >
      <dc:Bounds x="96" y="16" width="100" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_3" >
      <dc:Bounds x="228" y="16" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_1-_2" >
      <di:waypoint x="40" y="40" />
      <di:waypoint x="146" y="40" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_2-_3" >
      <di:waypoint x="146" y="40" />
      <di:waypoint x="252" y="40" />
      </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
      </bpmndi:BPMNDiagram>

      </definitions>

      Show
      1) Designer does not show the process flow if there is a on entry action definition. -Add the attached bpmn to your defaultPackage using webdav. -Open designer ->a empty process is shown 2) Its not possible to use on entry actions. -Create a stimple bpmn (Start -> HumanTask -> Stop) -try to define a on entry action in your HumanTask, in example: ftlContentMap = new java.util.HashMap<String,String>(); ftlContentMap.put("Titel","My Titel"); ftlContentMap.put("taskResultCode", Integer.toString( -1 )); ftlContentMap.put("taskResultMessage", "My task result message.\n\tEinrückung"); kcontext.setVariable("ftlContentMap", ftlContentMap); -click "Ok" -> action not saved bpmn which shows repruduce this issue: <?xml version="1.0" encoding="UTF-8"?> <definitions id="Definition" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes" expressionLanguage="http://www.mvel.org/2.0" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.jboss.org/drools"> <itemDefinition id="_ftlContentMapItem" structureRef="java.util.HashMap" /> <process processType="Private" isExecutable="true" id="defaultPackage.actions_test" name="actions_test" tns:packageName="defaultPackage" > <!-- process variables --> <property id="ftlContentMap" itemSubjectRef="_ftlContentMapItem"/> <!-- nodes --> <startEvent id="_1" name="Start" /> <userTask id="_2" name="User Task" > <extensionElements> <tns:onEntry-script scriptFormat="http://www.java.com/java"> <script>ftlContentMap = new java.util.HashMap<String,String>(); ftlContentMap.put("Titel","My Titel"); ftlContentMap.put("taskResultCode", Integer.toString( -1 )); ftlContentMap.put("taskResultMessage", "My task result message.\n\tEinrückung"); kcontext.setVariable("ftlContentMap", ftlContentMap);</script> </tns:onEntry-script> </extensionElements> <ioSpecification> <dataInput id="_2_ContentInput" name="Content" /> <dataInput id="_2_TaskNameInput" name="TaskName" /> <inputSet> <dataInputRefs>_2_ContentInput</dataInputRefs> <dataInputRefs>_2_TaskNameInput</dataInputRefs> </inputSet> <outputSet> </outputSet> </ioSpecification> <dataInputAssociation> <sourceRef>ftlContentMap</sourceRef> <targetRef>_2_ContentInput</targetRef> </dataInputAssociation> <dataInputAssociation> <targetRef>_2_TaskNameInput</targetRef> <assignment> <from xsi:type="tFormalExpression">DisplayTaskResult</from> <to xsi:type="tFormalExpression">_2_TaskNameInput</to> </assignment> </dataInputAssociation> <potentialOwner> <resourceAssignmentExpression> <formalExpression>krisv</formalExpression> </resourceAssignmentExpression> </potentialOwner> </userTask> <endEvent id="_3" name="End" > <terminateEventDefinition/> </endEvent> <!-- connections --> <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" /> <sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" /> </process> <bpmndi:BPMNDiagram> <bpmndi:BPMNPlane bpmnElement="defaultPackage.actions_test" > <bpmndi:BPMNShape bpmnElement="_1" > <dc:Bounds x="16" y="16" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_2" > <dc:Bounds x="96" y="16" width="100" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_3" > <dc:Bounds x="228" y="16" width="48" height="48" /> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="_1-_2" > <di:waypoint x="40" y="40" /> <di:waypoint x="146" y="40" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_2-_3" > <di:waypoint x="146" y="40" /> <di:waypoint x="252" y="40" /> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>

    Description

      Its not possible to open a bpmn which is using (on entry/on exit) actions.
      Its also not possible to create a HumanTask and add a (on entry/on exit) actions using "Editor for Actions" dialog.

      Attachments

        Activity

          People

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            liviah Livia Hauser (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: