olddave [http://community.jboss.org/people/olddave] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/620671#620671

--------------------------------------------------------------
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
[http://community.jboss.org/message/620671#620671]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to