[jboss-user] [jBPM] - Re: Getting errors while completing the human task.

snowstorm tech do-not-reply at jboss.com
Wed Feb 20 06:59:56 EST 2013


snowstorm tech [https://community.jboss.org/people/snowstormuser] created the discussion

"Re: Getting errors  while completing the human task."

To view the discussion, visit: https://community.jboss.org/message/798555#798555

--------------------------------------------------------------
Following is the  process definition which is provied in the "jbpm installer 5.4"
> <?xml version="1.0" encoding="UTF-8"?> 
> <definitions id="Definition"
>              typeLanguage=" http://www.java.com/javaTypes http://www.java.com/javaTypes"
>              targetNamespace=" http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL"
>              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="_employeeItem" />
>   <itemDefinition id="_reasonItem" />
>   <itemDefinition id="_performanceItem" />
>   <itemDefinition id="_contentItem" />
> 
> 
>   <itemDefinition id="_2-employeeItem" />
>   <itemDefinition id="_2-reasonItem" />
>   <itemDefinition id="_2-performanceItem" />
>   <itemDefinition id="_2-contentItem" />
> 
> 
>   <itemDefinition id="_3-employeeItem" />
>   <itemDefinition id="_3-reasonItem" />
>   <itemDefinition id="_3-performanceItem" />
>   <itemDefinition id="_3-contentItem" />
> 
> 
>   <itemDefinition id="_4-employeeItem" />
>   <itemDefinition id="_4-reasonItem" />
>   <itemDefinition id="_4-performanceItem" />
>   <itemDefinition id="_4-contentItem" />
> 
> 
>   <process processType="Private" isExecutable="true" id="com.sample.evaluation" name="Evaluation" tns:packageName="defaultPackage" >
> 
> 
>     <!-- process variables -->
>     <property id="employee" itemSubjectRef="_employeeItem"/>
>     <property id="reason" itemSubjectRef="_reasonItem"/>
>     <property id="performance" itemSubjectRef="_performanceItem"/>
>     <property id="content" itemSubjectRef="_contentItem"/>
> 
> 
>     <!-- nodes -->
>     <startEvent id="_1" name="Start" />
>     <userTask id="_2" name="Self Evaluation" >
>       <extensionElements>
>         <tns:onEntry-script scriptFormat=" http://www.java.com/java http://www.java.com/java">
>           <tns:script>java.util.Map contentParam = new java.util.HashMap();
> contentParam.put("reason", reason);
> kcontext.setVariable("content", contentParam);</tns:script>
>         </tns:onEntry-script>
>       </extensionElements>
>       <ioSpecification>
>         <dataInput id="_2_ContentInput" name="Content" />
>         <dataInput id="_2_CommentInput" name="Comment" />
>         <dataInput id="_2_SkippableInput" name="Skippable" />
>         <dataInput id="_2_TaskNameInput" name="TaskName" />
>         <dataOutput id="_2_performanceOutput" name="performance" />
>         <inputSet>
>           <dataInputRefs>_2_ContentInput</dataInputRefs>
>           <dataInputRefs>_2_CommentInput</dataInputRefs>
>           <dataInputRefs>_2_SkippableInput</dataInputRefs>
>           <dataInputRefs>_2_TaskNameInput</dataInputRefs>
>         </inputSet>
>         <outputSet>
>           <dataOutputRefs>_2_performanceOutput</dataOutputRefs>
>         </outputSet>
>       </ioSpecification>
>       <dataInputAssociation>
>         <sourceRef>content</sourceRef>
>         <targetRef>_2_ContentInput</targetRef>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_2_CommentInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">Please perform a self-evalutation.</from>
>           <to xsi:type="tFormalExpression">_2_CommentInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_2_SkippableInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">false</from>
>           <to xsi:type="tFormalExpression">_2_SkippableInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_2_TaskNameInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">Performance Evaluation</from>
>           <to xsi:type="tFormalExpression">_2_TaskNameInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataOutputAssociation>
>         <sourceRef>_2_performanceOutput</sourceRef>
>         <targetRef>performance</targetRef>
>       </dataOutputAssociation>
>       <potentialOwner>
>         <resourceAssignmentExpression>
>           <formalExpression>#{employee}</formalExpression>
>         </resourceAssignmentExpression>
>       </potentialOwner>
>     </userTask>
>     <userTask id="_3" name="PM Evaluation" >
>       <extensionElements>
>         <tns:onEntry-script>
>           <tns:script>java.util.Map contentParam = new java.util.HashMap();
> contentParam.put("reason", reason);
> contentParam.put("performance", performance);
> kcontext.setVariable("content", contentParam);</tns:script>
>         </tns:onEntry-script>
>       </extensionElements>
>       <ioSpecification>
>         <dataInput id="_3_ContentInput" name="Content" />
>         <dataInput id="_3_CommentInput" name="Comment" />
>         <dataInput id="_3_SkippableInput" name="Skippable" />
>         <dataInput id="_3_TaskNameInput" name="TaskName" />
>         <dataInput id="_3_GroupIdInput" name="GroupId" />
>         <inputSet>
>           <dataInputRefs>_3_ContentInput</dataInputRefs>
>           <dataInputRefs>_3_CommentInput</dataInputRefs>
>           <dataInputRefs>_3_SkippableInput</dataInputRefs>
>           <dataInputRefs>_3_TaskNameInput</dataInputRefs>
>           <dataInputRefs>_3_GroupIdInput</dataInputRefs>
>         </inputSet>
>         <outputSet>
>         </outputSet>
>       </ioSpecification>
>       <dataInputAssociation>
>         <sourceRef>content</sourceRef>
>         <targetRef>_3_ContentInput</targetRef>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_3_CommentInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
>           <to xsi:type="tFormalExpression">_3_CommentInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_3_SkippableInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">false</from>
>           <to xsi:type="tFormalExpression">_3_SkippableInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_3_TaskNameInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">Performance Evaluation</from>
>           <to xsi:type="tFormalExpression">_3_TaskNameInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_3_GroupIdInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">PM</from>
>           <to xsi:type="tFormalExpression">_3_GroupIdInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <potentialOwner>
>         <resourceAssignmentExpression>
>           <formalExpression></formalExpression>
>         </resourceAssignmentExpression>
>       </potentialOwner>
>     </userTask>
>     <userTask id="_4" name="HR Evaluation" >
>       <extensionElements>
>         <tns:onEntry-script scriptFormat=" http://www.java.com/java http://www.java.com/java">
>           <tns:script>java.util.Map contentParam = new java.util.HashMap();
> contentParam.put("reason", reason);
> contentParam.put("performance", performance);
> kcontext.setVariable("content", contentParam);</tns:script>
>         </tns:onEntry-script>
>       </extensionElements>
>       <ioSpecification>
>         <dataInput id="_4_ContentInput" name="Content" />
>         <dataInput id="_4_CommentInput" name="Comment" />
>         <dataInput id="_4_SkippableInput" name="Skippable" />
>         <dataInput id="_4_TaskNameInput" name="TaskName" />
>         <dataInput id="_4_GroupIdInput" name="GroupId" />
>         <inputSet>
>           <dataInputRefs>_4_ContentInput</dataInputRefs>
>           <dataInputRefs>_4_CommentInput</dataInputRefs>
>           <dataInputRefs>_4_SkippableInput</dataInputRefs>
>           <dataInputRefs>_4_TaskNameInput</dataInputRefs>
>           <dataInputRefs>_4_GroupIdInput</dataInputRefs>
>         </inputSet>
>         <outputSet>
>         </outputSet>
>       </ioSpecification>
>       <dataInputAssociation>
>         <sourceRef>content</sourceRef>
>         <targetRef>_4_ContentInput</targetRef>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_4_CommentInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">You need to evaluate #{employee}.</from>
>           <to xsi:type="tFormalExpression">_4_CommentInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_4_SkippableInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">false</from>
>           <to xsi:type="tFormalExpression">_4_SkippableInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_4_TaskNameInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">Performance Evaluation</from>
>           <to xsi:type="tFormalExpression">_4_TaskNameInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <dataInputAssociation>
>         <targetRef>_4_GroupIdInput</targetRef>
>         <assignment>
>           <from xsi:type="tFormalExpression">HR</from>
>           <to xsi:type="tFormalExpression">_4_GroupIdInput</to>
>         </assignment>
>       </dataInputAssociation>
>       <potentialOwner>
>         <resourceAssignmentExpression>
>           <formalExpression></formalExpression>
>         </resourceAssignmentExpression>
>       </potentialOwner>
>     </userTask>
>     <parallelGateway id="_5" name="Gateway" gatewayDirection="Diverging" />
>     <parallelGateway id="_6" name="Gateway" gatewayDirection="Converging" />
>     <endEvent id="_7" name="End" >
>         <terminateEventDefinition />
>     </endEvent>
> 
> 
>     <!-- connections -->
>     <sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
>     <sequenceFlow id="_5-_3" sourceRef="_5" targetRef="_3" />
>     <sequenceFlow id="_5-_4" sourceRef="_5" targetRef="_4" />
>     <sequenceFlow id="_2-_5" sourceRef="_2" targetRef="_5" />
>     <sequenceFlow id="_4-_6" sourceRef="_4" targetRef="_6" />
>     <sequenceFlow id="_3-_6" sourceRef="_3" targetRef="_6" />
>     <sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
> 
> 
>   </process>
> 
> 
>   <bpmndi:BPMNDiagram>
>     <bpmndi:BPMNPlane bpmnElement="com.sample.evaluation" >
>       <bpmndi:BPMNShape bpmnElement="_1" >
>         <dc:Bounds x="16" y="56" width="48" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_2" >
>         <dc:Bounds x="96" y="56" width="135" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_3" >
>         <dc:Bounds x="344" y="96" width="136" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_4" >
>         <dc:Bounds x="344" y="16" width="136" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_5" >
>         <dc:Bounds x="263" y="56" width="48" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_6" >
>         <dc:Bounds x="512" y="56" width="48" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNShape bpmnElement="_7" >
>         <dc:Bounds x="593" y="56" width="48" height="48" />
>       </bpmndi:BPMNShape>
>       <bpmndi:BPMNEdge bpmnElement="_1-_2" >
>         <di:waypoint x="40" y="80" />
>         <di:waypoint x="163" y="80" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_5-_3" >
>         <di:waypoint x="287" y="80" />
>         <di:waypoint x="287" y="120" />
>         <di:waypoint x="412" y="120" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_5-_4" >
>         <di:waypoint x="287" y="80" />
>         <di:waypoint x="287" y="40" />
>         <di:waypoint x="412" y="40" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_2-_5" >
>         <di:waypoint x="163" y="80" />
>         <di:waypoint x="287" y="80" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_4-_6" >
>         <di:waypoint x="412" y="40" />
>         <di:waypoint x="536" y="40" />
>         <di:waypoint x="536" y="80" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_3-_6" >
>         <di:waypoint x="412" y="120" />
>         <di:waypoint x="537" y="120" />
>         <di:waypoint x="536" y="80" />
>       </bpmndi:BPMNEdge>
>       <bpmndi:BPMNEdge bpmnElement="_6-_7" >
>         <di:waypoint x="536" y="80" />
>         <di:waypoint x="617" y="80" />
>       </bpmndi:BPMNEdge>
>     </bpmndi:BPMNPlane>
>   </bpmndi:BPMNDiagram>
> 
> 
> </definitions>
>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/798555#798555]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130220/3d4eb5f8/attachment-0001.html 


More information about the jboss-user mailing list