Demian Calcaprina [
http://community.jboss.org/people/calca] created the discussion
"Re: passing objects between tasks"
To view the discussion, visit:
http://community.jboss.org/message/614412#614412
--------------------------------------------------------------
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/
http://dcalca.wordpress.com/2011/05/06/variables-in-jbpm5-human-tasks/
Hope it helps,
Demian
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/614412#614412]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]