JBoss Community

Re: Unclear on how to get a Process param into my WorkItem

created by olddave in jBPM - View the full discussion

I cannot really share the full xml at the moment. But here is the generate xml when I use Process parameter workflowContext with variable com.example.tdm.workflow.AClass and the WorkItem with a parameter workflowContext and variable workflowContext

{code}

...

  <itemDefinition id="_workflowContextItem" structureRef="com.example.tdm.workflow.AClass" />

 

 

  <process processType="Private" isExecutable="true" id="_94ff85d0-5463-4b53-b5ce-3fa3c60eaf8d" name="Load_Stuff" >

 

 

    <!-- process variables -->

    <property id="workflowContext" itemSubjectRef="_workflowContextItem"/>

 

...

 

    <task id="_3" name="Load_Test" tns:taskName="ETLGroup" >

      <ioSpecification>

        <dataInput id="_3_workflowContextInput" name="workflowContext" />

        <dataOutput id="_3_workflowContextOutput" name="workflowContext" />

        <inputSet>

          <dataInputRefs>_3_workflowContextInput</dataInputRefs>

        </inputSet>

        <outputSet>

          <dataOutputRefs>_3_workflowContextOutput</dataOutputRefs>

        </outputSet>

      </ioSpecification>

      <dataInputAssociation>

        <sourceRef>workflowContext</sourceRef>

        <targetRef>_3_workflowContextInput</targetRef>

      </dataInputAssociation>

      <dataOutputAssociation>

        <sourceRef>_3_workflowContextOutput</sourceRef>

        <targetRef>workflowContext</targetRef>

      </dataOutputAssociation>

    </task>

...

{/code}

 

What I get in the WorkItem is a String value "workflowContext" not the Process parameter of the same name. This is using the org.eclipse.drools 5.2.0 plugin designer. I cannot see any association between the Process parameter and the WorkItem parameters.

 

Ed

Reply to this message by going to Community

Start a new discussion in jBPM at Community