Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the 
discussion

"Re: dataInputAssociation <assignment> expressions"

To view the discussion, visit: https://community.jboss.org/message/647993#647993

--------------------------------------------------------------
Your task specifies a data input "messageIn" and a data output "messageOut". 
Let's say you have a process variable "event" as you say specified, here are 
some scenarios to look at:

1) Simple data input mapping (lets say mapping process variable event to data 
input messageIn):

<bpmn2:dataInputAssociation id="_fIGIxELFEeGV7InrpvHmpg"> 
<bpmn2:sourceRef>event</bpmn2:sourceRef> 
<bpmn2:targetRef>_815293A1-6C79-403F-A469-55DD5991F788_messageInInput</bpmn2:targetRef> 
 
</bpmn2:dataInputAssociation> 

2) Doing an input assignment (lets say we want to assign data input messageIn a 
value "hello"): 

<bpmn2:dataInputAssociation id="_fIGIxULFEeGV7InrpvHmpg"> 
<bpmn2:targetRef>_815293A1-6C79-403F-A469-55DD5991F788_messageInInput</bpmn2:targetRef> 
 
<bpmn2:assignment id="_fIGIxkLFEeGV7InrpvHmpg"> 
<bpmn2:from xsi:type="bpmn2:tFormalExpression" 
id="_fIGIx0LFEeGV7InrpvHmpg">hello</bpmn2:from> 
<bpmn2:to xsi:type="bpmn2:tFormalExpression" 
id="_fIGIyELFEeGV7InrpvHmpg">_815293A1-6C79-403F-A469-55DD5991F788_messageInInput</bpmn2:to>
 
</bpmn2:assignment> 
</bpmn2:dataInputAssociation> 

3) Doing a data output association (lets say we want to map data output 
messageOut to the process variable event):
<bpmn2:dataOutputAssociation id="_fVO9c0PkEeGI-ernV8JyGw">
        
<bpmn2:sourceRef>_3D204743-FBA0-497D-86C3-D1525E592376_messageOutOutput</bpmn2:sourceRef>
        <bpmn2:targetRef>event</bpmn2:targetRef>
      </bpmn2:dataOutputAssociation>

When you want to map process variables to data inputs of your task or map data 
outputs of your task back to process variables you would use scenarios 1) and 
3). If you want to set a value to your data inputs (in jBPM for example that is 
used for the GroupId and TaskName data inputs) you would use scenario 2). 

Hope this helps.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/647993#647993]

Start a new discussion in jBPM at Community
[https://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