[jboss-user] [jBPM] - Re: passing objects between tasks
Demian Calcaprina
do-not-reply at jboss.com
Mon Jul 11 08:13:10 EDT 2011
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110711/b705313b/attachment.html
More information about the jboss-user
mailing list