mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-23 13:08:11 +00:00
Move messagePayload from sendTask to message
This commit is contained in:
parent
d5777c53ea
commit
2a7010cfda
@ -14,10 +14,17 @@
|
||||
<bpmn:correlationKey name="singer" />
|
||||
</bpmn:collaboration>
|
||||
|
||||
<bpmn:message id="love_letter" name="Love Letter" />
|
||||
<bpmn:message id="love_letter" name="Love Letter">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:messagePayload>
|
||||
{
|
||||
'to': { 'name': my_lover_variable }
|
||||
}
|
||||
</spiffworkflow:messagePayload>
|
||||
</bpmn:extensionElements>
|
||||
</bpmn:message>
|
||||
<bpmn:message id="love_letter_response" name="Love Letter Response" />
|
||||
|
||||
|
||||
<bpmn:correlationProperty id="lover_name" name="Lover's Name">
|
||||
<bpmn:correlationPropertyRetrievalExpression messageRef="love_letter">
|
||||
<bpmn:formalExpression>lover.name</bpmn:formalExpression>
|
||||
@ -30,26 +37,17 @@
|
||||
</bpmn:correlationPropertyRetrievalExpression>
|
||||
</bpmn:correlationProperty>
|
||||
|
||||
|
||||
<bpmn:correlationProperty id="singer" name="Singer's Name">
|
||||
<bpmn:correlationPropertyRetrievalExpression messageRef="love_letter_response">
|
||||
<bpmn:formalExpression>to.name</bpmn:formalExpression>
|
||||
</bpmn:correlationPropertyRetrievalExpression>
|
||||
</bpmn:correlationProperty>
|
||||
|
||||
|
||||
<bpmn:process id="process_buddy" name="Process Buddy" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>Flow_1bl6jeh</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sendTask id="ActivitySendLetter" name="Send Letter" messageRef="love_letter">
|
||||
<bpmn:extensionElements>
|
||||
<spiffworkflow:messagePayload>
|
||||
{
|
||||
'to': { 'name': my_lover_variable }
|
||||
}
|
||||
</spiffworkflow:messagePayload>
|
||||
</bpmn:extensionElements>
|
||||
<bpmn:incoming>Flow_1bl6jeh</bpmn:incoming>
|
||||
<bpmn:outgoing>Flow_0tp8uut</bpmn:outgoing>
|
||||
</bpmn:sendTask>
|
||||
@ -92,6 +90,7 @@
|
||||
</bpmn:endEvent>
|
||||
</bpmn:process>
|
||||
<bpmn:process id="Process_04o9jmt" isExecutable="false" />
|
||||
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="my_collaboration">
|
||||
<bpmndi:BPMNShape id="Participant_1tlkvw1_di" bpmnElement="Participant_1tlkvw1" isHorizontal="true">
|
||||
@ -189,4 +188,5 @@
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
|
||||
</bpmn:definitions>
|
||||
|
Loading…
x
Reference in New Issue
Block a user