0 Replies Latest reply on Sep 22, 2014 4:08 AM by Laura delli Paoli

    Unable to getconfigure a both input and output parameter (jbpm-console)

    Laura delli Paoli Master

      Hello everybody,

      I was trying to use a workItem handler that updates a counter until it reachs a certain value. But I not able to have corresponding process variable update correctly in output. Here's task source:

       

      <bpmn2:task xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" id="_8B8430C6-51BE-4B89-BE61-9667858C7834" xmlns:drools="http://www.jboss.org/drools" drools:selectable="true" drools:taskName="CheckAllOperationsAccomplished" name="CheckAllOperationsAccomplished">

            <bpmn2:incoming>_2C963FAD-DC97-4EA6-ABD1-FF543456F44D</bpmn2:incoming>

            <bpmn2:outgoing>_72B15FBE-244B-4012-998E-4308B5C1183C</bpmn2:outgoing>

            <bpmn2:ioSpecification id="_U8TayEANEeSMLLwRiqKRCQ">

              <bpmn2:dataInput id="_8B8430C6-51BE-4B89-BE61-9667858C7834_TaskNameInput" name="TaskName"/>

              <bpmn2:dataInput id="_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countInput" drools:dtype="Integer" itemSubjectRef="__8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countInputItem" name="completed-operations-count"/>

              <bpmn2:dataInput id="_8B8430C6-51BE-4B89-BE61-9667858C7834_number-of-operationsInput" drools:dtype="Integer" itemSubjectRef="__8B8430C6-51BE-4B89-BE61-9667858C7834_number-of-operationsInputItem" name="number-of-operations"/>

              <bpmn2:dataOutput id="_8B8430C6-51BE-4B89-BE61-9667858C7834_completedOutput" drools:dtype="Boolean" itemSubjectRef="__8B8430C6-51BE-4B89-BE61-9667858C7834_completedOutputItem" name="completed"/>

              <bpmn2:dataOutput id="_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countOutput" drools:dtype="Integer" itemSubjectRef="__8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countOutputItem" name="completed-operations-count"/>

              <bpmn2:inputSet id="_U8TayUANEeSMLLwRiqKRCQ">

                <bpmn2:dataInputRefs>_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countInput</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_8B8430C6-51BE-4B89-BE61-9667858C7834_number-of-operationsInput</bpmn2:dataInputRefs>

                <bpmn2:dataInputRefs>_8B8430C6-51BE-4B89-BE61-9667858C7834_TaskNameInput</bpmn2:dataInputRefs>

              </bpmn2:inputSet>

              <bpmn2:outputSet id="_U8TaykANEeSMLLwRiqKRCQ">

                <bpmn2:dataOutputRefs>_8B8430C6-51BE-4B89-BE61-9667858C7834_completedOutput</bpmn2:dataOutputRefs>

                <bpmn2:dataOutputRefs>_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countOutput</bpmn2:dataOutputRefs>

              </bpmn2:outputSet>

            </bpmn2:ioSpecification>

            <bpmn2:dataInputAssociation id="_U8Tay0ANEeSMLLwRiqKRCQ">

              <bpmn2:targetRef>_8B8430C6-51BE-4B89-BE61-9667858C7834_TaskNameInput</bpmn2:targetRef>

              <bpmn2:assignment id="_U8TazEANEeSMLLwRiqKRCQ">

                <bpmn2:from xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bpmn2:tFormalExpression" id="_U8TazUANEeSMLLwRiqKRCQ">CheckAllOperationsAccomplished</bpmn2:from>

                <bpmn2:to xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bpmn2:tFormalExpression" id="_U8TazkANEeSMLLwRiqKRCQ">_8B8430C6-51BE-4B89-BE61-9667858C7834_TaskNameInput</bpmn2:to>

              </bpmn2:assignment>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_U8Taz0ANEeSMLLwRiqKRCQ">

              <bpmn2:sourceRef>completedOperationsCount</bpmn2:sourceRef>

              <bpmn2:targetRef>_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countInput</bpmn2:targetRef>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataInputAssociation id="_U8Ta0EANEeSMLLwRiqKRCQ">

              <bpmn2:sourceRef>numberOfOperations</bpmn2:sourceRef>

              <bpmn2:targetRef>_8B8430C6-51BE-4B89-BE61-9667858C7834_number-of-operationsInput</bpmn2:targetRef>

            </bpmn2:dataInputAssociation>

            <bpmn2:dataOutputAssociation id="_U8Ta0UANEeSMLLwRiqKRCQ">

              <bpmn2:sourceRef>_8B8430C6-51BE-4B89-BE61-9667858C7834_completedOutput</bpmn2:sourceRef>

              <bpmn2:targetRef>completed</bpmn2:targetRef>

            </bpmn2:dataOutputAssociation>

            <bpmn2:dataOutputAssociation id="_U8Ta0kANEeSMLLwRiqKRCQ">

              <bpmn2:sourceRef>_8B8430C6-51BE-4B89-BE61-9667858C7834_completed-operations-countOutput</bpmn2:sourceRef>

              <bpmn2:targetRef>completedOperationsCount</bpmn2:targetRef>

            </bpmn2:dataOutputAssociation>

          </bpmn2:task>

       

      can anyone help me?

       

       

      Laura