At first view I think you are missing the dataoutput association in the task that modifies the value.<div>You must define &#39;outputValue&#39; in the DataOutputSet of the task and make the association between this DataOutput and the process variable.</div>

<div>By the way, what is &#39;DroolsAuthorizationService.populateResultFields(decisionList);&#39; doing?</div><div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 1:10 PM, Manasi <span dir="ltr">&lt;<a href="mailto:manasi.a.damle@capgemini.com" target="_blank">manasi.a.damle@capgemini.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

hi,<br>
<br>
heres is the handler code in service task :<br>
<br>
I have added this line in service task:<br>
<br>
List&lt;String&gt; decisionList = new ArrayList&lt;String&gt;();<br>
decisionList.add(&quot;UI_Kunde&quot;);<br>
outputValue=&quot;UI_Kunde&quot;;<br>
System.out.println(&quot;outputValue&quot; +outputValue);<br>
DroolsAuthorizationService.populateResultFields(decisionList);<br>
<br>
my xml<br>
<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;definitions id=&quot;Definition&quot;<br>
             targetNamespace=&quot;<a href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a>&quot;<br>
             typeLanguage=&quot;<a href="http://www.java.com/javaTypes" target="_blank">http://www.java.com/javaTypes</a>&quot;<br>
             expressionLanguage=&quot;<a href="http://www.mvel.org/2.0" target="_blank">http://www.mvel.org/2.0</a>&quot;<br>
             xmlns=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a>&quot;<br>
             xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
             xsi:schemaLocation=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><br>
BPMN20.xsd&quot;<br>
             xmlns:g=&quot;<a href="http://www.jboss.org/drools/flow/gpd" target="_blank">http://www.jboss.org/drools/flow/gpd</a>&quot;<br>
             xmlns:bpmndi=&quot;<a href="http://www.omg.org/spec/BPMN/20100524/DI" target="_blank">http://www.omg.org/spec/BPMN/20100524/DI</a>&quot;<br>
             xmlns:dc=&quot;<a href="http://www.omg.org/spec/DD/20100524/DC" target="_blank">http://www.omg.org/spec/DD/20100524/DC</a>&quot;<br>
             xmlns:di=&quot;<a href="http://www.omg.org/spec/DD/20100524/DI" target="_blank">http://www.omg.org/spec/DD/20100524/DI</a>&quot;<br>
             xmlns:tns=&quot;<a href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a>&quot;&gt;<br>
<br>
  &lt;itemDefinition id=&quot;_screenIdItem&quot; structureRef=&quot;String&quot; /&gt;<br>
  &lt;itemDefinition id=&quot;_outputValueItem&quot; structureRef=&quot;String&quot; /&gt;<br>
<br>
  &lt;itemDefinition id=&quot;_3-screenIdItem&quot; structureRef=&quot;String&quot; /&gt;<br>
  &lt;itemDefinition id=&quot;_3-outputValueItem&quot; structureRef=&quot;String&quot; /&gt;<br>
<br>
  &lt;itemDefinition id=&quot;_4-screenIdItem&quot; structureRef=&quot;String&quot; /&gt;<br>
  &lt;itemDefinition id=&quot;_4-outputValueItem&quot; structureRef=&quot;String&quot; /&gt;<br>
<br>
  &lt;itemDefinition id=&quot;_6-screenIdItem&quot; structureRef=&quot;String&quot; /&gt;<br>
  &lt;itemDefinition id=&quot;_6-outputValueItem&quot; structureRef=&quot;String&quot; /&gt;<br>
<br>
  &lt;itemDefinition id=&quot;_8-screenIdItem&quot; structureRef=&quot;String&quot; /&gt;<br>
  &lt;itemDefinition id=&quot;_8-outputValueItem&quot; structureRef=&quot;String&quot; /&gt;<br>
<br>
  &lt;process processType=&quot;Private&quot; isExecutable=&quot;true&quot; id=&quot;12&quot;<br>
name=&quot;FeltKnapRestriktionerKundeMedAnl&quot;<br>
tns:packageName=&quot;com.yousee.drools.services&quot; &gt;<br>
<br>
    &lt;extensionElements&gt;<br>
     &lt;tns:import name=&quot;org.drools.KnowledgeBaseConfiguration&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.KnowledgeBaseFactory&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.agent.KnowledgeAgent&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.agent.KnowledgeAgentConfiguration&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.agent.KnowledgeAgentFactory&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.builder.KnowledgeBuilder&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.builder.KnowledgeBuilderFactory&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.builder.ResourceType&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.conf.EventProcessingOption&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.io.ResourceFactory&quot; /&gt;<br>
     &lt;tns:import name=&quot;org.drools.runtime.StatefulKnowledgeSession&quot; /&gt;<br>
     &lt;tns:import name=&quot;com.tdc.ktv.nyss.drools.common.NyssStaffSO&quot; /&gt;<br>
     &lt;tns:import name=&quot;com.tdc.ktv.nyss.drools.common.NyssCableUnitSO&quot; /&gt;<br>
     &lt;tns:import name=&quot;java.util.*&quot; /&gt;<br>
    &lt;/extensionElements&gt;<br>
<br>
    &lt;property id=&quot;screenId&quot; itemSubjectRef=&quot;_screenIdItem&quot;/&gt;<br>
    &lt;property id=&quot;outputValue&quot; itemSubjectRef=&quot;_outputValueItem&quot;/&gt;<br>
<br>
<br>
    &lt;startEvent id=&quot;_1&quot; name=&quot;StartProcess&quot; /&gt;<br>
    &lt;inclusiveGateway id=&quot;_2&quot; name=&quot;&quot; gatewayDirection=&quot;Diverging&quot; /&gt;<br>
    &lt;task id=&quot;_3&quot; name=&quot;Customer Deatails&quot; tns:taskName=&quot;Log&quot; &gt;<br>
      &lt;extensionElements&gt;<br>
        &lt;tns:onEntry-script scriptFormat=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot;&gt;<br>
<br>
        &lt;/tns:onEntry-script&gt;<br>
      &lt;/extensionElements&gt;<br>
      &lt;ioSpecification&gt;<br>
        &lt;dataInput id=&quot;_3_MessageInput&quot; name=&quot;Message&quot; /&gt;<br>
        &lt;inputSet&gt;<br>
          &lt;dataInputRefs&gt;_3_MessageInput&lt;/dataInputRefs&gt;<br>
        &lt;/inputSet&gt;<br>
        &lt;outputSet&gt;<br>
        &lt;/outputSet&gt;<br>
      &lt;/ioSpecification&gt;<br>
      &lt;dataInputAssociation&gt;<br>
        &lt;targetRef&gt;_3_MessageInput&lt;/targetRef&gt;<br>
        &lt;assignment&gt;<br>
          &lt;from xsi:type=&quot;tFormalExpression&quot;&gt;In Customer Details Flow&lt;/from&gt;<br>
          &lt;to xsi:type=&quot;tFormalExpression&quot;&gt;_3_MessageInput&lt;/to&gt;<br>
        &lt;/assignment&gt;<br>
      &lt;/dataInputAssociation&gt;<br>
    &lt;/task&gt;<br>
    &lt;task id=&quot;_4&quot; name=&quot;SupplierCommodityCreateFlow&quot; tns:taskName=&quot;Log&quot; &gt;<br>
      &lt;extensionElements&gt;<br>
        &lt;tns:onEntry-script scriptFormat=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot;&gt;<br>
<br>
        &lt;/tns:onEntry-script&gt;<br>
      &lt;/extensionElements&gt;<br>
      &lt;ioSpecification&gt;<br>
        &lt;dataInput id=&quot;_4_MessageInput&quot; name=&quot;Message&quot; /&gt;<br>
        &lt;inputSet&gt;<br>
          &lt;dataInputRefs&gt;_4_MessageInput&lt;/dataInputRefs&gt;<br>
        &lt;/inputSet&gt;<br>
        &lt;outputSet&gt;<br>
        &lt;/outputSet&gt;<br>
      &lt;/ioSpecification&gt;<br>
      &lt;dataInputAssociation&gt;<br>
        &lt;targetRef&gt;_4_MessageInput&lt;/targetRef&gt;<br>
        &lt;assignment&gt;<br>
          &lt;from xsi:type=&quot;tFormalExpression&quot;&gt;In SupplierCommodity Create<br>
Flow&lt;/from&gt;<br>
          &lt;to xsi:type=&quot;tFormalExpression&quot;&gt;_4_MessageInput&lt;/to&gt;<br>
        &lt;/assignment&gt;<br>
      &lt;/dataInputAssociation&gt;<br>
    &lt;/task&gt;<br>
    &lt;exclusiveGateway id=&quot;_5&quot; name=&quot;Gateway&quot; gatewayDirection=&quot;Converging&quot;<br>
/&gt;<br>
    &lt;task id=&quot;_6&quot; name=&quot;2nd Flow&quot; tns:taskName=&quot;Log&quot; &gt;<br>
      &lt;ioSpecification&gt;<br>
        &lt;dataInput id=&quot;_6_MessageInput&quot; name=&quot;Message&quot; /&gt;<br>
        &lt;inputSet&gt;<br>
          &lt;dataInputRefs&gt;_6_MessageInput&lt;/dataInputRefs&gt;<br>
        &lt;/inputSet&gt;<br>
        &lt;outputSet&gt;<br>
        &lt;/outputSet&gt;<br>
      &lt;/ioSpecification&gt;<br>
      &lt;dataInputAssociation&gt;<br>
        &lt;targetRef&gt;_6_MessageInput&lt;/targetRef&gt;<br>
        &lt;assignment&gt;<br>
          &lt;from xsi:type=&quot;tFormalExpression&quot;&gt;2nd Flow&lt;/from&gt;<br>
          &lt;to xsi:type=&quot;tFormalExpression&quot;&gt;_6_MessageInput&lt;/to&gt;<br>
        &lt;/assignment&gt;<br>
      &lt;/dataInputAssociation&gt;<br>
    &lt;/task&gt;<br>
    &lt;endEvent id=&quot;_7&quot; name=&quot;End&quot; &gt;<br>
        &lt;terminateEventDefinition/&gt;<br>
    &lt;/endEvent&gt;<br>
    &lt;task id=&quot;_8&quot; name=&quot;SupplierCommodityUpdateFlow&quot; tns:taskName=&quot;Log&quot; &gt;<br>
      &lt;extensionElements&gt;<br>
        &lt;tns:onEntry-script scriptFormat=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot;&gt;<br>
<br>
        &lt;/tns:onEntry-script&gt;<br>
      &lt;/extensionElements&gt;<br>
      &lt;ioSpecification&gt;<br>
        &lt;dataInput id=&quot;_8_MessageInput&quot; name=&quot;Message&quot; /&gt;<br>
        &lt;inputSet&gt;<br>
          &lt;dataInputRefs&gt;_8_MessageInput&lt;/dataInputRefs&gt;<br>
        &lt;/inputSet&gt;<br>
        &lt;outputSet&gt;<br>
        &lt;/outputSet&gt;<br>
      &lt;/ioSpecification&gt;<br>
      &lt;dataInputAssociation&gt;<br>
        &lt;targetRef&gt;_8_MessageInput&lt;/targetRef&gt;<br>
        &lt;assignment&gt;<br>
          &lt;from xsi:type=&quot;tFormalExpression&quot;&gt;In SupplierCommodity Update<br>
Flow&lt;/from&gt;<br>
          &lt;to xsi:type=&quot;tFormalExpression&quot;&gt;_8_MessageInput&lt;/to&gt;<br>
        &lt;/assignment&gt;<br>
      &lt;/dataInputAssociation&gt;<br>
    &lt;/task&gt;<br>
<br>
<br>
    &lt;sequenceFlow id=&quot;_1-_2&quot; sourceRef=&quot;_1&quot; targetRef=&quot;_2&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_2-_3&quot; sourceRef=&quot;_2&quot; targetRef=&quot;_3&quot; name=&quot;constraint&quot;<br>
tns:priority=&quot;1&quot; &gt;<br>
      &lt;conditionExpression xsi:type=&quot;tFormalExpression&quot;<br>
language=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot; &gt;outputValue=&quot;sss&quot;;<br>
return &quot;update_cu_tab_customer_page&quot;.equals(screenId);&lt;/conditionExpression&gt;<br>
    &lt;/sequenceFlow&gt;<br>
    &lt;sequenceFlow id=&quot;_2-_4&quot; sourceRef=&quot;_2&quot; targetRef=&quot;_4&quot; name=&quot;constraint&quot;<br>
tns:priority=&quot;1&quot; &gt;<br>
      &lt;conditionExpression xsi:type=&quot;tFormalExpression&quot;<br>
language=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot; &gt;return<br>
&quot;popup_supplier_comm_page_create&quot;.equals(screenId);&lt;/conditionExpression&gt;<br>
    &lt;/sequenceFlow&gt;<br>
    &lt;sequenceFlow id=&quot;_3-_5&quot; sourceRef=&quot;_3&quot; targetRef=&quot;_5&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_4-_5&quot; sourceRef=&quot;_4&quot; targetRef=&quot;_5&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_8-_5&quot; sourceRef=&quot;_8&quot; targetRef=&quot;_5&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_5-_6&quot; sourceRef=&quot;_5&quot; targetRef=&quot;_6&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_6-_7&quot; sourceRef=&quot;_6&quot; targetRef=&quot;_7&quot; /&gt;<br>
    &lt;sequenceFlow id=&quot;_2-_8&quot; sourceRef=&quot;_2&quot; targetRef=&quot;_8&quot; name=&quot;constraint&quot;<br>
tns:priority=&quot;1&quot; &gt;<br>
      &lt;conditionExpression xsi:type=&quot;tFormalExpression&quot;<br>
language=&quot;<a href="http://www.java.com/java" target="_blank">http://www.java.com/java</a>&quot; &gt;return<br>
&quot;popup_supplier_comm_page_update&quot;.equals(screenId);&lt;/conditionExpression&gt;<br>
    &lt;/sequenceFlow&gt;<br>
<br>
  &lt;/process&gt;<br>
<br>
  &lt;bpmndi:BPMNDiagram&gt;<br>
    &lt;bpmndi:BPMNPlane bpmnElement=&quot;12&quot; &gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_1&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;16&quot; y=&quot;56&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_2&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;96&quot; y=&quot;56&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_3&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;219&quot; y=&quot;16&quot; width=&quot;100&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_4&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;224&quot; y=&quot;118&quot; width=&quot;100&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_5&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;401&quot; y=&quot;55&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_6&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;521&quot; y=&quot;56&quot; width=&quot;100&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_7&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;696&quot; y=&quot;58&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNShape bpmnElement=&quot;_8&quot; &gt;<br>
        &lt;dc:Bounds x=&quot;218&quot; y=&quot;220&quot; width=&quot;100&quot; height=&quot;48&quot; /&gt;<br>
      &lt;/bpmndi:BPMNShape&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_1-_2&quot; &gt;<br>
        &lt;di:waypoint x=&quot;40&quot; y=&quot;80&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;120&quot; y=&quot;80&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_2-_3&quot; &gt;<br>
        &lt;di:waypoint x=&quot;120&quot; y=&quot;80&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;269&quot; y=&quot;40&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_2-_4&quot; &gt;<br>
        &lt;di:waypoint x=&quot;120&quot; y=&quot;80&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;274&quot; y=&quot;142&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_3-_5&quot; &gt;<br>
        &lt;di:waypoint x=&quot;269&quot; y=&quot;40&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;425&quot; y=&quot;79&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_4-_5&quot; &gt;<br>
        &lt;di:waypoint x=&quot;274&quot; y=&quot;142&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;425&quot; y=&quot;79&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_8-_5&quot; &gt;<br>
        &lt;di:waypoint x=&quot;268&quot; y=&quot;244&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;425&quot; y=&quot;79&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_5-_6&quot; &gt;<br>
        &lt;di:waypoint x=&quot;425&quot; y=&quot;79&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;571&quot; y=&quot;80&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_6-_7&quot; &gt;<br>
        &lt;di:waypoint x=&quot;571&quot; y=&quot;80&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;720&quot; y=&quot;82&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
      &lt;bpmndi:BPMNEdge bpmnElement=&quot;_2-_8&quot; &gt;<br>
        &lt;di:waypoint x=&quot;120&quot; y=&quot;80&quot; /&gt;<br>
        &lt;di:waypoint x=&quot;268&quot; y=&quot;244&quot; /&gt;<br>
      &lt;/bpmndi:BPMNEdge&gt;<br>
    &lt;/bpmndi:BPMNPlane&gt;<br>
  &lt;/bpmndi:BPMNDiagram&gt;<br>
<br>
&lt;/definitions&gt;<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4020007.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4020007.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>