@nanobpm/nano-workforce 0.171.2 → 0.171.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,15 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:nano="https://nanobpm.io/schema/shapes/1.0" id="Definitions_nano_workforce_implement_cell" targetNamespace="http://nanobpm.io/nano-workforce">
3
3
  <bpmn:process id="implement-cell" name="Implement cell" isExecutable="true">
4
+ <bpmn:extensionElements>
5
+ <nano:shapes>
6
+ <nano:shape id="RecordEscalationIn" name="Record cell escalation — input">
7
+ <nano:extend name="subjectKey" type="string" />
8
+ <nano:extend name="status" type="string" optional="true" />
9
+ <nano:extend name="question" type="string" optional="true" />
10
+ </nano:shape>
11
+ </nano:shapes>
12
+ </bpmn:extensionElements>
4
13
  <bpmn:startEvent id="Start" name="Task">
5
14
  <bpmn:outgoing>ic_toImplement</bpmn:outgoing>
6
15
  </bpmn:startEvent>
@@ -29,16 +38,46 @@
29
38
  </bpmn:exclusiveGateway>
30
39
  <bpmn:callActivity id="escalate" name="Human escalation">
31
40
  <bpmn:extensionElements>
32
- <zeebe:calledElement processId="human-escalation" propagateAllChildVariables="true" />
41
+ <zeebe:calledElement processId="human-escalation" />
42
+ <zeebe:ioMapping>
43
+ <zeebe:input source="=question" target="question" />
44
+ <zeebe:input source="=if (is defined(escalationAssignee)) then escalationAssignee else null" target="escalationAssignee" />
45
+ <zeebe:input source="=escalationSlaTimeout" target="escalationSlaTimeout" />
46
+ <zeebe:output source="=resolution" target="resolution" />
47
+ <zeebe:output source="=if (is defined(answer)) then answer else null" target="answer" />
48
+ </zeebe:ioMapping>
33
49
  </bpmn:extensionElements>
34
- <bpmn:incoming>ic_escalate</bpmn:incoming>
50
+ <bpmn:incoming>ic_toEscalate</bpmn:incoming>
35
51
  <bpmn:outgoing>ic_toAnswerGw</bpmn:outgoing>
36
52
  </bpmn:callActivity>
53
+ <bpmn:serviceTask id="record-escalation" name="Record escalation">
54
+ <bpmn:extensionElements>
55
+ <zeebe:taskDefinition type="pr.record-feature-escalation" />
56
+ <zeebe:properties>
57
+ <zeebe:property name="io.nanobpm.dataEnvelope.in" value="RecordEscalationIn" />
58
+ </zeebe:properties>
59
+ <zeebe:ioMapping>
60
+ <zeebe:output source="=question" target="question" />
61
+ </zeebe:ioMapping>
62
+ </bpmn:extensionElements>
63
+ <bpmn:incoming>ic_escalate</bpmn:incoming>
64
+ <bpmn:outgoing>ic_toEscalate</bpmn:outgoing>
65
+ </bpmn:serviceTask>
37
66
  <bpmn:exclusiveGateway id="ic_gw_answer" name="answer?" default="ic_abandon">
38
67
  <bpmn:incoming>ic_toAnswerGw</bpmn:incoming>
39
68
  <bpmn:outgoing>ic_answerLoop</bpmn:outgoing>
40
69
  <bpmn:outgoing>ic_abandon</bpmn:outgoing>
41
70
  </bpmn:exclusiveGateway>
71
+ <bpmn:serviceTask id="record-implementing" name="Record implementing (reset)">
72
+ <bpmn:extensionElements>
73
+ <zeebe:taskDefinition type="pr.record-feature-implementing" />
74
+ <zeebe:properties>
75
+ <zeebe:property name="io.nanobpm.dataEnvelope.in" value="RecordFeatureImplementingIn" />
76
+ </zeebe:properties>
77
+ </bpmn:extensionElements>
78
+ <bpmn:incoming>ic_answerLoop</bpmn:incoming>
79
+ <bpmn:outgoing>ic_reImplement</bpmn:outgoing>
80
+ </bpmn:serviceTask>
42
81
  <bpmn:endEvent id="ic_end" name="Task done">
43
82
  <bpmn:incoming>ic_done</bpmn:incoming>
44
83
  <bpmn:incoming>ic_abandon</bpmn:incoming>
@@ -48,11 +87,13 @@
48
87
  <bpmn:sequenceFlow id="ic_done" name="done" sourceRef="ic_gw" targetRef="ic_end">
49
88
  <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=status = "opened" or status = "blocked" or status = "skipped"</bpmn:conditionExpression>
50
89
  </bpmn:sequenceFlow>
51
- <bpmn:sequenceFlow id="ic_escalate" name="escalated" sourceRef="ic_gw" targetRef="escalate" />
90
+ <bpmn:sequenceFlow id="ic_escalate" name="escalated" sourceRef="ic_gw" targetRef="record-escalation" />
91
+ <bpmn:sequenceFlow id="ic_toEscalate" sourceRef="record-escalation" targetRef="escalate" />
52
92
  <bpmn:sequenceFlow id="ic_toAnswerGw" sourceRef="escalate" targetRef="ic_gw_answer" />
53
- <bpmn:sequenceFlow id="ic_answerLoop" name="answer" sourceRef="ic_gw_answer" targetRef="implement-task">
93
+ <bpmn:sequenceFlow id="ic_answerLoop" name="answer" sourceRef="ic_gw_answer" targetRef="record-implementing">
54
94
  <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=resolution = "answer"</bpmn:conditionExpression>
55
95
  </bpmn:sequenceFlow>
96
+ <bpmn:sequenceFlow id="ic_reImplement" sourceRef="record-implementing" targetRef="implement-task" />
56
97
  <bpmn:sequenceFlow id="ic_abandon" name="abandon" sourceRef="ic_gw_answer" targetRef="ic_end" />
57
98
  </bpmn:process>
58
99
  <bpmndi:BPMNDiagram id="BPMNDiagram_implement-cell">
@@ -73,18 +114,24 @@
73
114
  </bpmndi:BPMNLabel>
74
115
  </bpmndi:BPMNShape>
75
116
  <bpmndi:BPMNShape id="BPMNShape_escalate" bpmnElement="escalate">
117
+ <dc:Bounds x="766" y="80" width="100" height="80" />
118
+ </bpmndi:BPMNShape>
119
+ <bpmndi:BPMNShape id="BPMNShape_record-escalation" bpmnElement="record-escalation">
76
120
  <dc:Bounds x="566" y="80" width="100" height="80" />
77
121
  </bpmndi:BPMNShape>
78
122
  <bpmndi:BPMNShape id="BPMNShape_ic_gw_answer" bpmnElement="ic_gw_answer" isMarkerVisible="true">
79
- <dc:Bounds x="766" y="95" width="50" height="50" />
123
+ <dc:Bounds x="966" y="95" width="50" height="50" />
80
124
  <bpmndi:BPMNLabel>
81
- <dc:Bounds x="763" y="76" width="56" height="14" />
125
+ <dc:Bounds x="963" y="76" width="56" height="14" />
82
126
  </bpmndi:BPMNLabel>
83
127
  </bpmndi:BPMNShape>
128
+ <bpmndi:BPMNShape id="BPMNShape_record-implementing" bpmnElement="record-implementing">
129
+ <dc:Bounds x="1116" y="240" width="100" height="80" />
130
+ </bpmndi:BPMNShape>
84
131
  <bpmndi:BPMNShape id="BPMNShape_ic_end" bpmnElement="ic_end">
85
- <dc:Bounds x="916" y="102" width="36" height="36" />
132
+ <dc:Bounds x="1148" y="102" width="36" height="36" />
86
133
  <bpmndi:BPMNLabel>
87
- <dc:Bounds x="901" y="83" width="66" height="14" />
134
+ <dc:Bounds x="1133" y="83" width="66" height="14" />
88
135
  </bpmndi:BPMNLabel>
89
136
  </bpmndi:BPMNShape>
90
137
  <bpmndi:BPMNEdge id="BPMNEdge_ic_toImplement" bpmnElement="ic_toImplement">
@@ -102,34 +149,43 @@
102
149
  <dc:Bounds x="483" y="128" width="67" height="14" />
103
150
  </bpmndi:BPMNLabel>
104
151
  </bpmndi:BPMNEdge>
105
- <bpmndi:BPMNEdge id="BPMNEdge_ic_toAnswerGw" bpmnElement="ic_toAnswerGw">
152
+ <bpmndi:BPMNEdge id="BPMNEdge_ic_toEscalate" bpmnElement="ic_toEscalate">
106
153
  <di:waypoint x="666" y="120" />
107
154
  <di:waypoint x="766" y="120" />
108
155
  </bpmndi:BPMNEdge>
156
+ <bpmndi:BPMNEdge id="BPMNEdge_ic_toAnswerGw" bpmnElement="ic_toAnswerGw">
157
+ <di:waypoint x="866" y="120" />
158
+ <di:waypoint x="966" y="120" />
159
+ </bpmndi:BPMNEdge>
109
160
  <bpmndi:BPMNEdge id="BPMNEdge_ic_abandon" bpmnElement="ic_abandon">
110
- <di:waypoint x="816" y="120" />
111
- <di:waypoint x="916" y="120" />
161
+ <di:waypoint x="1016" y="120" />
162
+ <di:waypoint x="1148" y="120" />
112
163
  <bpmndi:BPMNLabel>
113
- <dc:Bounds x="840" y="128" width="53" height="14" />
164
+ <dc:Bounds x="1056" y="98" width="53" height="14" />
165
+ </bpmndi:BPMNLabel>
166
+ </bpmndi:BPMNEdge>
167
+ <bpmndi:BPMNEdge id="BPMNEdge_ic_answerLoop" bpmnElement="ic_answerLoop">
168
+ <di:waypoint x="991" y="145" />
169
+ <di:waypoint x="991" y="280" />
170
+ <di:waypoint x="1116" y="280" />
171
+ <bpmndi:BPMNLabel>
172
+ <dc:Bounds x="996" y="206" width="49" height="14" />
114
173
  </bpmndi:BPMNLabel>
115
174
  </bpmndi:BPMNEdge>
116
175
  <bpmndi:BPMNEdge id="BPMNEdge_ic_done" bpmnElement="ic_done">
117
176
  <di:waypoint x="441" y="145" />
118
177
  <di:waypoint x="441" y="180" />
119
- <di:waypoint x="934" y="180" />
120
- <di:waypoint x="934" y="138" />
178
+ <di:waypoint x="1166" y="180" />
179
+ <di:waypoint x="1166" y="138" />
121
180
  <bpmndi:BPMNLabel>
122
- <dc:Bounds x="672" y="158" width="32" height="14" />
181
+ <dc:Bounds x="788" y="188" width="32" height="14" />
123
182
  </bpmndi:BPMNLabel>
124
183
  </bpmndi:BPMNEdge>
125
- <bpmndi:BPMNEdge id="BPMNEdge_ic_answerLoop" bpmnElement="ic_answerLoop">
126
- <di:waypoint x="791" y="145" />
127
- <di:waypoint x="791" y="200" />
128
- <di:waypoint x="266" y="200" />
184
+ <bpmndi:BPMNEdge id="BPMNEdge_ic_reImplement" bpmnElement="ic_reImplement">
185
+ <di:waypoint x="1166" y="320" />
186
+ <di:waypoint x="1166" y="340" />
187
+ <di:waypoint x="266" y="340" />
129
188
  <di:waypoint x="266" y="160" />
130
- <bpmndi:BPMNLabel>
131
- <dc:Bounds x="504" y="208" width="49" height="14" />
132
- </bpmndi:BPMNLabel>
133
189
  </bpmndi:BPMNEdge>
134
190
  </bpmndi:BPMNPlane>
135
191
  </bpmndi:BPMNDiagram>