JBoss Community

Re: passing objects between tasks

created by Demian Calcaprina in jBPM - View the full discussion

Hi!

 

In your process you have to model the inputs and outputs of each test. In your case, coudl be:

task1

input: -

output: Person object

 

task2:

input: Person object

output: Person object

 

task3:

input: Person object

output-

 

You should declare your Person object as process variable:

<itemDefinition id="_personItem" structureRef="org.test.Person" />

...

<property id="person" itemSubjectRef="_personItem"/>

 

When declaring inputs and outputs you should make reference to this process variable, for example

For input:

<dataInputAssociation>

           <sourceRef>person</sourceRef>

        <targetRef>_9_personInput</targetRef>

      </dataInputAssociation>

 

and for output:

      <dataOutputAssociation>

        <sourceRef>_8_personOutput</sourceRef>

        <targetRef>person</targetRef>

      </dataOutputAssociation>

 

This should help you:

http://dcalca.wordpress.com/2011/05/06/variables-in-jbpm5-human-tasks/

 

Hope it helps,

 

Demian

Reply to this message by going to Community

Start a new discussion in jBPM at Community