Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 9ec0b7f

Browse files
committed
Added send task, updated docs
1 parent 10eef4b commit 9ec0b7f

File tree

6 files changed

+248
-112
lines changed

6 files changed

+248
-112
lines changed

data/examples/bpmn2/021-initiating-attachment.bpmn

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://marklogic.com/workflow">
2+
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:ns1="http://www.example.org/BPMNTestProcessData" id="Definitions_1" targetNamespace="http://marklogic.com/workflow">
3+
<bpmn2:import importType="http://www.w3.org/2001/XMLSchema" location="platform:/resource/MarkLogic%20Workflow/data/definitions/BPMNTestProcessData.xsd" namespace="http://www.example.org/BPMNTestProcessData"/>
4+
<bpmn2:itemDefinition id="ItemDefinition_1" structureRef="ns1__choiceA"/>
5+
<bpmn2:itemDefinition id="_ItemDefinition_6" structureRef="ns1:choiceA"/>
6+
<bpmn2:itemDefinition id="_ItemDefinition_7" structureRef="ns1:choiceB"/>
37
<bpmn2:resource id="Resource_1" name="admin"/>
4-
<bpmn2:message id="Message_2" name="RejectedEMail"/>
8+
<bpmn2:message id="Message_2" itemRef="_ItemDefinition_6" name="RejectedEMail"/>
59
<bpmn2:message id="Message_3" name="ApprovedEmail"/>
610
<bpmn2:message id="Message_4" name="ReviewedDocument"/>
711
<bpmn2:message id="Message_5" name="ReviewedDocument"/>
812
<bpmn2:interface id="Interface_1" implementationRef="EmailInterface" name="EmailInterface">
9-
<bpmn2:operation id="Operation_1" implementationRef="SendEmail" name="Send Email"/>
13+
<bpmn2:operation id="Operation_1" implementationRef="SendEmailRejected" name="Send Email Rejected">
14+
<bpmn2:outMessageRef>Message_2</bpmn2:outMessageRef>
15+
</bpmn2:operation>
16+
<bpmn2:operation id="_Operation_3" implementationRef="SendEmailSucceeded" name="Send Email Succeeded">
17+
<bpmn2:outMessageRef>Message_3</bpmn2:outMessageRef>
18+
</bpmn2:operation>
1019
</bpmn2:interface>
1120
<bpmn2:interface id="Interface_2" implementationRef="MarkLogic" name="MarkLogic">
1221
<bpmn2:operation id="_Operation_2" implementationRef="LaunchAlert" name="LaunchAlert"/>
1322
</bpmn2:interface>
14-
<bpmn2:process id="021-initiating-attachment" name="Document Approval Example" isExecutable="true" processType="Public">
23+
<bpmn2:process id="021-initiating-attachment" name="DocumentApprovalExample" isExecutable="true" processType="Public">
1524
<bpmn2:ioSpecification id="InputOutputSpecification_1"/>
1625
<bpmn2:startEvent id="StartEvent_1">
1726
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
@@ -59,11 +68,14 @@
5968
<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
6069
</bpmn2:task>
6170
<bpmn2:sequenceFlow id="SequenceFlow_6" sourceRef="Task_2" targetRef="SendTask_1"/>
62-
<bpmn2:sendTask id="SendTask_2" name="Inform of approval" implementation="##unspecified" operationRef="Operation_1">
71+
<bpmn2:sendTask id="SendTask_2" name="Inform of approval" implementation="##unspecified" messageRef="Message_3" operationRef="_Operation_3">
6372
<bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
6473
<bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
6574
<bpmn2:ioSpecification id="InputOutputSpecification_17">
66-
<bpmn2:inputSet id="InputSet_2" name="Input Set 2"/>
75+
<bpmn2:dataInput id="DataInput_3" name="Data Input 3"/>
76+
<bpmn2:inputSet id="InputSet_2" name="Input Set 2">
77+
<bpmn2:dataInputRefs>DataInput_3</bpmn2:dataInputRefs>
78+
</bpmn2:inputSet>
6779
<bpmn2:outputSet id="OutputSet_3" name="Output Set 3"/>
6880
</bpmn2:ioSpecification>
6981
</bpmn2:sendTask>
@@ -102,7 +114,7 @@
102114
</bpmn2:textAnnotation>
103115
<bpmn2:association id="Association_3" sourceRef="TextAnnotation_3" targetRef="StartEvent_1"/>
104116
</bpmn2:process>
105-
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Document Approval Example">
117+
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="DocumentApprovalExample">
106118
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="021-initiating-attachment">
107119
<bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="EndEvent_1">
108120
<dc:Bounds height="36.0" width="36.0" x="1125.0" y="240.0"/>

0 commit comments

Comments
 (0)