At first view I think you are missing the dataoutput association in the task that modifies the value.
hi,
heres is the handler code in service task :
I have added this line in service task:
List<String> decisionList = new ArrayList<String>();
decisionList.add("UI_Kunde");
outputValue="UI_Kunde";
System.out.println("outputValue" +outputValue);
DroolsAuthorizationService.populateResultFields(decisionList);
my xml
<?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="_screenIdItem" structureRef="String" />
<itemDefinition id="_outputValueItem" structureRef="String" />
<itemDefinition id="_3-screenIdItem" structureRef="String" />
<itemDefinition id="_3-outputValueItem" structureRef="String" />
<itemDefinition id="_4-screenIdItem" structureRef="String" />
<itemDefinition id="_4-outputValueItem" structureRef="String" />
<itemDefinition id="_6-screenIdItem" structureRef="String" />
<itemDefinition id="_6-outputValueItem" structureRef="String" />
<itemDefinition id="_8-screenIdItem" structureRef="String" />
<itemDefinition id="_8-outputValueItem" structureRef="String" />
<process processType="Private" isExecutable="true" id="12"
name="FeltKnapRestriktionerKundeMedAnl"
tns:packageName="com.yousee.drools.services" >
<extensionElements>
<tns:import name="org.drools.KnowledgeBaseConfiguration" />
<tns:import name="org.drools.KnowledgeBaseFactory" />
<tns:import name="org.drools.agent.KnowledgeAgent" />
<tns:import name="org.drools.agent.KnowledgeAgentConfiguration" />
<tns:import name="org.drools.agent.KnowledgeAgentFactory" />
<tns:import name="org.drools.builder.KnowledgeBuilder" />
<tns:import name="org.drools.builder.KnowledgeBuilderFactory" />
<tns:import name="org.drools.builder.ResourceType" />
<tns:import name="org.drools.conf.EventProcessingOption" />
<tns:import name="org.drools.io.ResourceFactory" />
<tns:import name="org.drools.runtime.StatefulKnowledgeSession" />
<tns:import name="com.tdc.ktv.nyss.drools.common.NyssStaffSO" />
<tns:import name="com.tdc.ktv.nyss.drools.common.NyssCableUnitSO" />
<tns:import name="java.util.*" />
</extensionElements>
<property id="screenId" itemSubjectRef="_screenIdItem"/>
<property id="outputValue" itemSubjectRef="_outputValueItem"/>
<startEvent id="_1" name="StartProcess" />
<inclusiveGateway id="_2" name="" gatewayDirection="Diverging" />
<task id="_3" name="Customer Deatails" tns:taskName="Log" >
<extensionElements>
<tns:onEntry-script scriptFormat="http://www.java.com/java">
</tns:onEntry-script>
</extensionElements>
<ioSpecification>
<dataInput id="_3_MessageInput" name="Message" />
<inputSet>
<dataInputRefs>_3_MessageInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<targetRef>_3_MessageInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">In Customer Details Flow</from>
<to xsi:type="tFormalExpression">_3_MessageInput</to>
</assignment>
</dataInputAssociation>
</task>
<task id="_4" name="SupplierCommodityCreateFlow" tns:taskName="Log" >
<extensionElements>
<tns:onEntry-script scriptFormat="http://www.java.com/java">
</tns:onEntry-script>
</extensionElements>
<ioSpecification>
<dataInput id="_4_MessageInput" name="Message" />
<inputSet>
<dataInputRefs>_4_MessageInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<targetRef>_4_MessageInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">In SupplierCommodity Create
Flow</from>
<to xsi:type="tFormalExpression">_4_MessageInput</to>
</assignment>
</dataInputAssociation>
</task>
<exclusiveGateway id="_5" name="Gateway" gatewayDirection="Converging"
/>
<task id="_6" name="2nd Flow" tns:taskName="Log" >
<ioSpecification>
<dataInput id="_6_MessageInput" name="Message" />
<inputSet>
<dataInputRefs>_6_MessageInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<targetRef>_6_MessageInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">2nd Flow</from>
<to xsi:type="tFormalExpression">_6_MessageInput</to>
</assignment>
</dataInputAssociation>
</task>
<endEvent id="_7" name="End" >
<terminateEventDefinition/>
</endEvent>
<task id="_8" name="SupplierCommodityUpdateFlow" tns:taskName="Log" >
<extensionElements>
<tns:onEntry-script scriptFormat="http://www.java.com/java">
</tns:onEntry-script>
</extensionElements>
<ioSpecification>
<dataInput id="_8_MessageInput" name="Message" />
<inputSet>
<dataInputRefs>_8_MessageInput</dataInputRefs>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
<dataInputAssociation>
<targetRef>_8_MessageInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">In SupplierCommodity Update
Flow</from>
<to xsi:type="tFormalExpression">_8_MessageInput</to>
</assignment>
</dataInputAssociation>
</task>
<sequenceFlow id="_1-_2" sourceRef="_1" targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" name="constraint"
tns:priority="1" >
<conditionExpression xsi:type="tFormalExpression"
language="http://www.java.com/java" >outputValue="sss";
return "update_cu_tab_customer_page".equals(screenId);</conditionExpression>
</sequenceFlow>
<sequenceFlow id="_2-_4" sourceRef="_2" targetRef="_4" name="constraint"
tns:priority="1" >
<conditionExpression xsi:type="tFormalExpression"
language="http://www.java.com/java" >return
"popup_supplier_comm_page_create".equals(screenId);</conditionExpression>
</sequenceFlow>
<sequenceFlow id="_3-_5" sourceRef="_3" targetRef="_5" />
<sequenceFlow id="_4-_5" sourceRef="_4" targetRef="_5" />
<sequenceFlow id="_8-_5" sourceRef="_8" targetRef="_5" />
<sequenceFlow id="_5-_6" sourceRef="_5" targetRef="_6" />
<sequenceFlow id="_6-_7" sourceRef="_6" targetRef="_7" />
<sequenceFlow id="_2-_8" sourceRef="_2" targetRef="_8" name="constraint"
tns:priority="1" >
<conditionExpression xsi:type="tFormalExpression"
language="http://www.java.com/java" >return
"popup_supplier_comm_page_update".equals(screenId);</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram>
<bpmndi:BPMNPlane bpmnElement="12" >
<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="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_3" >
<dc:Bounds x="219" y="16" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_4" >
<dc:Bounds x="224" y="118" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_5" >
<dc:Bounds x="401" y="55" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_6" >
<dc:Bounds x="521" y="56" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_7" >
<dc:Bounds x="696" y="58" width="48" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="_8" >
<dc:Bounds x="218" y="220" width="100" height="48" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="_1-_2" >
<di:waypoint x="40" y="80" />
<di:waypoint x="120" y="80" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_2-_3" >
<di:waypoint x="120" y="80" />
<di:waypoint x="269" y="40" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_2-_4" >
<di:waypoint x="120" y="80" />
<di:waypoint x="274" y="142" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_3-_5" >
<di:waypoint x="269" y="40" />
<di:waypoint x="425" y="79" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_4-_5" >
<di:waypoint x="274" y="142" />
<di:waypoint x="425" y="79" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_8-_5" >
<di:waypoint x="268" y="244" />
<di:waypoint x="425" y="79" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_5-_6" >
<di:waypoint x="425" y="79" />
<di:waypoint x="571" y="80" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_6-_7" >
<di:waypoint x="571" y="80" />
<di:waypoint x="720" y="82" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="_2-_8" >
<di:waypoint x="120" y="80" />
<di:waypoint x="268" y="244" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4020007.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users