<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Cannot retrieve a result from human task in jBPM 5.3
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/jsvitak">Jiri Svitak</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/746972#746972">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Here it is (value is a String process variable, data is a simple String output parameter of human task, that I want to receive from the form):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?> </p><p><span><bpmn2:definitions xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" xmlns="</span><a class="jive-link-external-small" href="http://www.omg.org/bpmn20" target="_blank">http://www.omg.org/bpmn20</a><span>" xmlns:bpmn2="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span>" xmlns:bpmndi="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" target="_blank">http://www.omg.org/spec/BPMN/20100524/DI</a><span>" xmlns:dc="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" target="_blank">http://www.omg.org/spec/DD/20100524/DC</a><span>" xmlns:di="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" target="_blank">http://www.omg.org/spec/DD/20100524/DI</a><span>" xmlns:drools="</span><a class="jive-link-external-small" href="http://www.jboss.org/drools" target="_blank">http://www.jboss.org/drools</a><span>" id="_GGnEYcnUEeGQnP-6F9PmRg" xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" target="_blank">http://www.omg.org/spec/BPMN/20100524/MODEL</a><span> BPMN20.xsd" targetNamespace="</span><a class="jive-link-external-small" href="http://www.omg.org/bpmn20" target="_blank">http://www.omg.org/bpmn20</a><span>"> </span></p><p>  <bpmn2:itemDefinition id="_valueItem" structureRef="String"/> </p><p>  <bpmn2:itemDefinition id="__A83A6880-44B4-4169-AE8C-70CB94222934_dataOutputItem" structureRef="String"/> </p><p>  <bpmn2:process id="org.jenkinsci.plugins.jbpm.human" drools:packageName="org.jenkinsci.plugins.jbpm" name="human" isExecutable="true"> </p><p>    <bpmn2:property id="value" itemSubjectRef="_valueItem"/> </p><p>    <bpmn2:startEvent id="_559F6601-4833-4DDA-B758-8F9D6D7CD42E" drools:bgcolor="#9acd32" name=""> </p><p>      <bpmn2:outgoing>_8691570E-2431-4FA0-8432-8D641D628477</bpmn2:outgoing> </p><p>    </bpmn2:startEvent> </p><p><span>    <bpmn2:userTask id="_A83A6880-44B4-4169-AE8C-70CB94222934" drools:bgcolor="#fafad2" drools:taskName="Evaluation" drools:scriptFormat="</span><a class="jive-link-external-small" href="http://www.java.com/java" target="_blank">http://www.java.com/java</a><span>" name="Evaluation"> </span></p><p>      <bpmn2:incoming>_8691570E-2431-4FA0-8432-8D641D628477</bpmn2:incoming> </p><p>      <bpmn2:outgoing>_04E356CA-786B-48CE-834D-EADB3BA4518C</bpmn2:outgoing> </p><p>      <bpmn2:ioSpecification id="_GGnrcMnUEeGQnP-6F9PmRg"> </p><p>        <bpmn2:dataInput id="_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput" name="TaskName"/> </p><p>        <bpmn2:dataInput id="_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput" name="Skippable"/> </p><p>        <bpmn2:dataOutput id="_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput" drools:dtype="String" itemSubjectRef="__A83A6880-44B4-4169-AE8C-70CB94222934_dataOutputItem" name="data"/> </p><p>        <bpmn2:inputSet id="_GGnrccnUEeGQnP-6F9PmRg"> </p><p>          <bpmn2:dataInputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:dataInputRefs> </p><p>          <bpmn2:dataInputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:dataInputRefs> </p><p>        </bpmn2:inputSet> </p><p>        <bpmn2:outputSet id="_GGnrcsnUEeGQnP-6F9PmRg"> </p><p>          <bpmn2:dataOutputRefs>_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput</bpmn2:dataOutputRefs> </p><p>        </bpmn2:outputSet> </p><p>      </bpmn2:ioSpecification> </p><p>      <bpmn2:dataInputAssociation id="_GGoSgMnUEeGQnP-6F9PmRg"> </p><p>        <bpmn2:targetRef>_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:targetRef> </p><p>        <bpmn2:assignment id="_GGoSgcnUEeGQnP-6F9PmRg"> </p><p>          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_GGoSgsnUEeGQnP-6F9PmRg">Evaluation</bpmn2:from> </p><p>          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_GGoSg8nUEeGQnP-6F9PmRg">_A83A6880-44B4-4169-AE8C-70CB94222934_TaskNameInput</bpmn2:to> </p><p>        </bpmn2:assignment> </p><p>      </bpmn2:dataInputAssociation> </p><p>      <bpmn2:dataInputAssociation id="_GGoShMnUEeGQnP-6F9PmRg"> </p><p>        <bpmn2:targetRef>_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:targetRef> </p><p>        <bpmn2:assignment id="_GGoShcnUEeGQnP-6F9PmRg"> </p><p>          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_GGoShsnUEeGQnP-6F9PmRg">false</bpmn2:from> </p><p>          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_GGoSh8nUEeGQnP-6F9PmRg">_A83A6880-44B4-4169-AE8C-70CB94222934_SkippableInput</bpmn2:to> </p><p>        </bpmn2:assignment> </p><p>      </bpmn2:dataInputAssociation> </p><p>      <bpmn2:dataOutputAssociation id="_GGoSiMnUEeGQnP-6F9PmRg"> </p><p>        <bpmn2:sourceRef>_A83A6880-44B4-4169-AE8C-70CB94222934_dataOutput</bpmn2:sourceRef> </p><p>        <bpmn2:targetRef>value</bpmn2:targetRef> </p><p>      </bpmn2:dataOutputAssociation> </p><p>      <bpmn2:potentialOwner id="_GGoSicnUEeGQnP-6F9PmRg"> </p><p>        <bpmn2:resourceAssignmentExpression id="_GGoSisnUEeGQnP-6F9PmRg"> </p><p>          <bpmn2:formalExpression id="_GGoSi8nUEeGQnP-6F9PmRg">admin</bpmn2:formalExpression> </p><p>        </bpmn2:resourceAssignmentExpression> </p><p>      </bpmn2:potentialOwner> </p><p>    </bpmn2:userTask> </p><p>    <bpmn2:sequenceFlow id="_8691570E-2431-4FA0-8432-8D641D628477" sourceRef="_559F6601-4833-4DDA-B758-8F9D6D7CD42E" targetRef="_A83A6880-44B4-4169-AE8C-70CB94222934"/> </p><p><span>    <bpmn2:scriptTask id="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF" drools:bgcolor="#fafad2" name="print output" scriptFormat="</span><a class="jive-link-external-small" href="http://www.java.com/java" target="_blank">http://www.java.com/java</a><span>"> </span></p><p>      <bpmn2:incoming>_04E356CA-786B-48CE-834D-EADB3BA4518C</bpmn2:incoming> </p><p>      <bpmn2:outgoing>_670A74F3-6677-4D74-870A-3904D6E7B5E5</bpmn2:outgoing> </p><p>      <bpmn2:script><![CDATA[System.out.println("Value from the form: "+kcontext.getVariable("value"));]]></bpmn2:script> </p><p>    </bpmn2:scriptTask> </p><p>    <bpmn2:sequenceFlow id="_04E356CA-786B-48CE-834D-EADB3BA4518C" sourceRef="_A83A6880-44B4-4169-AE8C-70CB94222934" targetRef="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF"/> </p><p>    <bpmn2:sequenceFlow id="_670A74F3-6677-4D74-870A-3904D6E7B5E5" sourceRef="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF" targetRef="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC"/> </p><p>    <bpmn2:endEvent id="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC" drools:bgcolor="#ff6347" name=""> </p><p>      <bpmn2:incoming>_670A74F3-6677-4D74-870A-3904D6E7B5E5</bpmn2:incoming> </p><p>      <bpmn2:terminateEventDefinition id="_GGoSjMnUEeGQnP-6F9PmRg"/> </p><p>    </bpmn2:endEvent> </p><p>  </bpmn2:process> </p><p>  <bpmndi:BPMNDiagram id="_GGoSjcnUEeGQnP-6F9PmRg"> </p><p>    <bpmndi:BPMNPlane id="_GGoSjsnUEeGQnP-6F9PmRg" bpmnElement="org.jenkinsci.plugins.jbpm.human"> </p><p>      <bpmndi:BPMNShape id="_GGoSj8nUEeGQnP-6F9PmRg" bpmnElement="_559F6601-4833-4DDA-B758-8F9D6D7CD42E"> </p><p>        <dc:Bounds height="30.0" width="30.0" x="210.0" y="105.0"/> </p><p>      </bpmndi:BPMNShape> </p><p>      <bpmndi:BPMNShape id="_GGoSkMnUEeGQnP-6F9PmRg" bpmnElement="_A83A6880-44B4-4169-AE8C-70CB94222934"> </p><p>        <dc:Bounds height="80.0" width="100.0" x="300.0" y="80.0"/> </p><p>      </bpmndi:BPMNShape> </p><p>      <bpmndi:BPMNEdge id="_GGoSkcnUEeGQnP-6F9PmRg" bpmnElement="_8691570E-2431-4FA0-8432-8D641D628477"> </p><p>        <di:waypoint xsi:type="dc:Point" x="225.0" y="120.0"/> </p><p>        <di:waypoint xsi:type="dc:Point" x="350.0" y="120.0"/> </p><p>      </bpmndi:BPMNEdge> </p><p>      <bpmndi:BPMNShape id="_GGoSksnUEeGQnP-6F9PmRg" bpmnElement="_F536F85E-390D-4C9A-A7D2-6DC13CC820CF"> </p><p>        <dc:Bounds height="80.0" width="100.0" x="445.0" y="80.0"/> </p><p>      </bpmndi:BPMNShape> </p><p>      <bpmndi:BPMNEdge id="_GGoSk8nUEeGQnP-6F9PmRg" bpmnElement="_04E356CA-786B-48CE-834D-EADB3BA4518C"> </p><p>        <di:waypoint xsi:type="dc:Point" x="350.0" y="120.0"/> </p><p>        <di:waypoint xsi:type="dc:Point" x="495.0" y="120.0"/> </p><p>      </bpmndi:BPMNEdge> </p><p>      <bpmndi:BPMNEdge id="_GGoSlMnUEeGQnP-6F9PmRg" bpmnElement="_670A74F3-6677-4D74-870A-3904D6E7B5E5"> </p><p>        <di:waypoint xsi:type="dc:Point" x="495.0" y="120.0"/> </p><p>        <di:waypoint xsi:type="dc:Point" x="600.0" y="116.0"/> </p><p>      </bpmndi:BPMNEdge> </p><p>      <bpmndi:BPMNShape id="_GGoSlcnUEeGQnP-6F9PmRg" bpmnElement="_5B509C9E-8AAB-4468-BB62-6D58A799E9EC"> </p><p>        <dc:Bounds height="28.0" width="28.0" x="586.0" y="102.0"/> </p><p>      </bpmndi:BPMNShape> </p><p>    </bpmndi:BPMNPlane> </p><p>  </bpmndi:BPMNDiagram> </p><p></bpmn2:definitions></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/746972#746972">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>