@pbinitiative/zenbpm-bpmn-moddle 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +151 -0
- package/package.json +48 -0
- package/resources/zenbpm.json +766 -0
- package/xsd/bpmn-with-zenbpm.xsd +46 -0
- package/xsd/zenbpm.xsd +644 -0
package/xsd/zenbpm.xsd
ADDED
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!--
|
|
3
|
+
BPMN Extension Schema — zenbpm namespace
|
|
4
|
+
URI: http://zenbpm.pbinitiative.org/1.0
|
|
5
|
+
Prefix: zenbpm
|
|
6
|
+
|
|
7
|
+
This XSD is the authoritative machine-readable specification of the
|
|
8
|
+
zenbpm BPMN 2.0 extension namespace. It is used by:
|
|
9
|
+
- XML validators (e.g. xsd-schema-validator in the test suite)
|
|
10
|
+
- IDEs for auto-complete inside .bpmn files
|
|
11
|
+
- Any tool that needs to verify extension-element content
|
|
12
|
+
-->
|
|
13
|
+
<xs:schema
|
|
14
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
15
|
+
xmlns:zenbpm="http://zenbpm.pbinitiative.org/1.0"
|
|
16
|
+
targetNamespace="http://zenbpm.pbinitiative.org/1.0"
|
|
17
|
+
elementFormDefault="qualified"
|
|
18
|
+
attributeFormDefault="unqualified">
|
|
19
|
+
|
|
20
|
+
<!-- ================================================================
|
|
21
|
+
0. DOCUMENTATION CONVENTIONS
|
|
22
|
+
Every complex type has an xs:annotation/xs:documentation block
|
|
23
|
+
describing which BPMN 2.0 element it may appear inside (the
|
|
24
|
+
"allowedIn" constraint that moddle enforces at runtime).
|
|
25
|
+
================================================================ -->
|
|
26
|
+
|
|
27
|
+
<!-- ================================================================
|
|
28
|
+
1. ABSTRACT / SHARED BASE TYPES
|
|
29
|
+
================================================================ -->
|
|
30
|
+
|
|
31
|
+
<!--
|
|
32
|
+
InputOutputParameter
|
|
33
|
+
Base type for Input and Output variable-mapping elements.
|
|
34
|
+
Never used directly in XML; always instantiated as zenbpm:input or zenbpm:output.
|
|
35
|
+
-->
|
|
36
|
+
<xs:complexType name="tInputOutputParameter">
|
|
37
|
+
<xs:annotation>
|
|
38
|
+
<xs:documentation>
|
|
39
|
+
Abstract base for input/output variable-mapping entries.
|
|
40
|
+
Concrete elements: zenbpm:input, zenbpm:output.
|
|
41
|
+
</xs:documentation>
|
|
42
|
+
</xs:annotation>
|
|
43
|
+
<xs:attribute name="source" type="xs:string" use="optional"/>
|
|
44
|
+
<xs:attribute name="target" type="xs:string" use="optional"/>
|
|
45
|
+
</xs:complexType>
|
|
46
|
+
|
|
47
|
+
<!-- ================================================================
|
|
48
|
+
2. TASK / SERVICE TASK EXTENSIONS
|
|
49
|
+
================================================================ -->
|
|
50
|
+
|
|
51
|
+
<!--
|
|
52
|
+
taskDefinition (allowedIn: zenbpm:ServiceTask → effectively bpmn:ServiceTask etc.)
|
|
53
|
+
Declares the job type and retry count for a service-task worker.
|
|
54
|
+
-->
|
|
55
|
+
<xs:element name="taskDefinition">
|
|
56
|
+
<xs:annotation>
|
|
57
|
+
<xs:documentation>
|
|
58
|
+
Defines the job type and retry policy for a service task.
|
|
59
|
+
Allowed inside extension elements of:
|
|
60
|
+
bpmn:ServiceTask, bpmn:BusinessRuleTask, bpmn:ScriptTask,
|
|
61
|
+
bpmn:SendTask, bpmn:EndEvent, bpmn:IntermediateThrowEvent,
|
|
62
|
+
bpmn:AdHocSubProcess.
|
|
63
|
+
</xs:documentation>
|
|
64
|
+
</xs:annotation>
|
|
65
|
+
<xs:complexType>
|
|
66
|
+
<xs:attribute name="type" type="xs:string" use="optional">
|
|
67
|
+
<xs:annotation><xs:documentation>Job type string, e.g. "payment-service".</xs:documentation></xs:annotation>
|
|
68
|
+
</xs:attribute>
|
|
69
|
+
<xs:attribute name="retries" type="xs:string" use="optional">
|
|
70
|
+
<xs:annotation><xs:documentation>Number of retries (expression or literal integer as string).</xs:documentation></xs:annotation>
|
|
71
|
+
</xs:attribute>
|
|
72
|
+
<xs:attribute name="retryCounter" type="xs:string" use="optional">
|
|
73
|
+
<xs:annotation><xs:documentation>The retry counter property for Service Task.</xs:documentation></xs:annotation>
|
|
74
|
+
</xs:attribute>
|
|
75
|
+
</xs:complexType>
|
|
76
|
+
</xs:element>
|
|
77
|
+
|
|
78
|
+
<!--
|
|
79
|
+
taskHeaders (allowedIn: service tasks, executionListener)
|
|
80
|
+
A collection of static key/value headers passed to the job worker.
|
|
81
|
+
-->
|
|
82
|
+
<xs:element name="taskHeaders">
|
|
83
|
+
<xs:annotation>
|
|
84
|
+
<xs:documentation>
|
|
85
|
+
Container for static header entries passed to the job worker.
|
|
86
|
+
Allowed inside extension elements of service tasks and execution listeners.
|
|
87
|
+
</xs:documentation>
|
|
88
|
+
</xs:annotation>
|
|
89
|
+
<xs:complexType>
|
|
90
|
+
<xs:sequence>
|
|
91
|
+
<xs:element name="header" type="zenbpm:tHeader" minOccurs="0" maxOccurs="unbounded"/>
|
|
92
|
+
</xs:sequence>
|
|
93
|
+
</xs:complexType>
|
|
94
|
+
</xs:element>
|
|
95
|
+
|
|
96
|
+
<xs:complexType name="tHeader">
|
|
97
|
+
<xs:annotation>
|
|
98
|
+
<xs:documentation>A single key/value header entry.</xs:documentation>
|
|
99
|
+
</xs:annotation>
|
|
100
|
+
<xs:attribute name="id" type="xs:string" use="optional"/>
|
|
101
|
+
<xs:attribute name="key" type="xs:string" use="optional"/>
|
|
102
|
+
<xs:attribute name="value" type="xs:string" use="optional"/>
|
|
103
|
+
</xs:complexType>
|
|
104
|
+
|
|
105
|
+
<!-- ================================================================
|
|
106
|
+
3. INPUT / OUTPUT MAPPING
|
|
107
|
+
================================================================ -->
|
|
108
|
+
|
|
109
|
+
<!--
|
|
110
|
+
ioMapping (allowedIn: CallActivity, Event, ReceiveTask, service tasks, SubProcess, UserTask)
|
|
111
|
+
Container for input and output variable-mapping entries.
|
|
112
|
+
-->
|
|
113
|
+
<xs:element name="ioMapping">
|
|
114
|
+
<xs:annotation>
|
|
115
|
+
<xs:documentation>
|
|
116
|
+
Container for input and output variable-mapping rules.
|
|
117
|
+
Allowed inside extension elements of:
|
|
118
|
+
bpmn:CallActivity, bpmn:Event, bpmn:ReceiveTask,
|
|
119
|
+
service-task-like elements, bpmn:SubProcess, bpmn:UserTask.
|
|
120
|
+
</xs:documentation>
|
|
121
|
+
</xs:annotation>
|
|
122
|
+
<xs:complexType>
|
|
123
|
+
<xs:sequence>
|
|
124
|
+
<xs:element name="input" type="zenbpm:tInputOutputParameter"
|
|
125
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
126
|
+
<xs:element name="output" type="zenbpm:tInputOutputParameter"
|
|
127
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
128
|
+
</xs:sequence>
|
|
129
|
+
</xs:complexType>
|
|
130
|
+
</xs:element>
|
|
131
|
+
|
|
132
|
+
<!-- ================================================================
|
|
133
|
+
4. SUBSCRIPTION
|
|
134
|
+
================================================================ -->
|
|
135
|
+
|
|
136
|
+
<!--
|
|
137
|
+
subscription (allowedIn: bpmn:ReceiveTask, message catch events)
|
|
138
|
+
Defines the correlation key expression for a message subscription.
|
|
139
|
+
-->
|
|
140
|
+
<xs:element name="subscription">
|
|
141
|
+
<xs:annotation>
|
|
142
|
+
<xs:documentation>
|
|
143
|
+
Defines the correlation key for a message-based subscription.
|
|
144
|
+
Allowed inside extension elements of bpmn:ReceiveTask and
|
|
145
|
+
message catch/boundary events.
|
|
146
|
+
</xs:documentation>
|
|
147
|
+
</xs:annotation>
|
|
148
|
+
<xs:complexType>
|
|
149
|
+
<xs:attribute name="correlationKey" type="xs:string" use="optional">
|
|
150
|
+
<xs:annotation><xs:documentation>FEEL expression for the correlation key, e.g. "=orderId".</xs:documentation></xs:annotation>
|
|
151
|
+
</xs:attribute>
|
|
152
|
+
</xs:complexType>
|
|
153
|
+
</xs:element>
|
|
154
|
+
|
|
155
|
+
<!-- ================================================================
|
|
156
|
+
5. LOOP CHARACTERISTICS (multi-instance)
|
|
157
|
+
================================================================ -->
|
|
158
|
+
|
|
159
|
+
<!--
|
|
160
|
+
loopCharacteristics (allowedIn: bpmn:MultiInstanceLoopCharacteristics)
|
|
161
|
+
Variable collection expressions for multi-instance loops.
|
|
162
|
+
-->
|
|
163
|
+
<xs:element name="loopCharacteristics">
|
|
164
|
+
<xs:annotation>
|
|
165
|
+
<xs:documentation>
|
|
166
|
+
Variable-mapping for multi-instance activities.
|
|
167
|
+
Allowed inside extension elements of bpmn:MultiInstanceLoopCharacteristics.
|
|
168
|
+
</xs:documentation>
|
|
169
|
+
</xs:annotation>
|
|
170
|
+
<xs:complexType>
|
|
171
|
+
<xs:attribute name="inputCollection" type="xs:string" use="optional">
|
|
172
|
+
<xs:annotation><xs:documentation>FEEL expression that evaluates to the list of items to iterate over.</xs:documentation></xs:annotation>
|
|
173
|
+
</xs:attribute>
|
|
174
|
+
<xs:attribute name="inputElement" type="xs:string" use="optional">
|
|
175
|
+
<xs:annotation><xs:documentation>Variable name bound to each element of inputCollection.</xs:documentation></xs:annotation>
|
|
176
|
+
</xs:attribute>
|
|
177
|
+
<xs:attribute name="outputCollection" type="xs:string" use="optional">
|
|
178
|
+
<xs:annotation><xs:documentation>Variable name for the output collection gathered from each instance.</xs:documentation></xs:annotation>
|
|
179
|
+
</xs:attribute>
|
|
180
|
+
<xs:attribute name="outputElement" type="xs:string" use="optional">
|
|
181
|
+
<xs:annotation><xs:documentation>Variable name inside each instance that is collected into outputCollection.</xs:documentation></xs:annotation>
|
|
182
|
+
</xs:attribute>
|
|
183
|
+
</xs:complexType>
|
|
184
|
+
</xs:element>
|
|
185
|
+
|
|
186
|
+
<!-- ================================================================
|
|
187
|
+
6. CALL ACTIVITY
|
|
188
|
+
================================================================ -->
|
|
189
|
+
|
|
190
|
+
<!--
|
|
191
|
+
calledElement (allowedIn: bpmn:CallActivity)
|
|
192
|
+
Specifies which process to invoke and variable propagation rules.
|
|
193
|
+
-->
|
|
194
|
+
<xs:element name="calledElement">
|
|
195
|
+
<xs:annotation>
|
|
196
|
+
<xs:documentation>
|
|
197
|
+
Configures the called process and variable-propagation policy for a call activity.
|
|
198
|
+
Allowed inside extension elements of bpmn:CallActivity.
|
|
199
|
+
</xs:documentation>
|
|
200
|
+
</xs:annotation>
|
|
201
|
+
<xs:complexType>
|
|
202
|
+
<xs:attribute name="processId" type="xs:string" use="optional">
|
|
203
|
+
<xs:annotation><xs:documentation>Static process ID of the called process.</xs:documentation></xs:annotation>
|
|
204
|
+
</xs:attribute>
|
|
205
|
+
<xs:attribute name="processIdExpression" type="xs:string" use="optional">
|
|
206
|
+
<xs:annotation><xs:documentation>FEEL expression that evaluates to the called process ID.</xs:documentation></xs:annotation>
|
|
207
|
+
</xs:attribute>
|
|
208
|
+
<xs:attribute name="propagateAllChildVariables" type="xs:boolean" use="optional">
|
|
209
|
+
<xs:annotation><xs:documentation>If true, all child-process variables are propagated back to the parent on completion.</xs:documentation></xs:annotation>
|
|
210
|
+
</xs:attribute>
|
|
211
|
+
<xs:attribute name="propagateAllParentVariables" type="xs:boolean" use="optional" default="true">
|
|
212
|
+
<xs:annotation><xs:documentation>If true (default), all parent-process variables are available in the called process.</xs:documentation></xs:annotation>
|
|
213
|
+
</xs:attribute>
|
|
214
|
+
<xs:attribute name="bindingType" type="xs:string" use="optional" default="latest">
|
|
215
|
+
<xs:annotation><xs:documentation>Version binding strategy: "latest", "deployment", or "versionTag".</xs:documentation></xs:annotation>
|
|
216
|
+
</xs:attribute>
|
|
217
|
+
<xs:attribute name="versionTag" type="xs:string" use="optional">
|
|
218
|
+
<xs:annotation><xs:documentation>The version tag to bind to when bindingType="versionTag".</xs:documentation></xs:annotation>
|
|
219
|
+
</xs:attribute>
|
|
220
|
+
</xs:complexType>
|
|
221
|
+
</xs:element>
|
|
222
|
+
|
|
223
|
+
<!-- ================================================================
|
|
224
|
+
7. BUSINESS RULE TASK — DMN
|
|
225
|
+
================================================================ -->
|
|
226
|
+
|
|
227
|
+
<!--
|
|
228
|
+
calledDecision (allowedIn: bpmn:BusinessRuleTask)
|
|
229
|
+
Links a BusinessRuleTask to a DMN decision.
|
|
230
|
+
-->
|
|
231
|
+
<xs:element name="calledDecision">
|
|
232
|
+
<xs:annotation>
|
|
233
|
+
<xs:documentation>
|
|
234
|
+
Links a business-rule task to a DMN decision table.
|
|
235
|
+
Allowed inside extension elements of bpmn:BusinessRuleTask.
|
|
236
|
+
</xs:documentation>
|
|
237
|
+
</xs:annotation>
|
|
238
|
+
<xs:complexType>
|
|
239
|
+
<xs:attribute name="decisionId" type="xs:string" use="optional">
|
|
240
|
+
<xs:annotation><xs:documentation>ID of the DMN decision to invoke.</xs:documentation></xs:annotation>
|
|
241
|
+
</xs:attribute>
|
|
242
|
+
<xs:attribute name="resultVariable" type="xs:string" use="optional">
|
|
243
|
+
<xs:annotation><xs:documentation>Variable name where the DMN result is stored.</xs:documentation></xs:annotation>
|
|
244
|
+
</xs:attribute>
|
|
245
|
+
<xs:attribute name="bindingType" type="xs:string" use="optional" default="latest"/>
|
|
246
|
+
<xs:attribute name="versionTag" type="xs:string" use="optional"/>
|
|
247
|
+
</xs:complexType>
|
|
248
|
+
</xs:element>
|
|
249
|
+
|
|
250
|
+
<!-- ================================================================
|
|
251
|
+
8. SCRIPT TASK
|
|
252
|
+
================================================================ -->
|
|
253
|
+
|
|
254
|
+
<!--
|
|
255
|
+
script (allowedIn: bpmn:ScriptTask)
|
|
256
|
+
Inline FEEL / Groovy / other script with result variable.
|
|
257
|
+
-->
|
|
258
|
+
<xs:element name="script">
|
|
259
|
+
<xs:annotation>
|
|
260
|
+
<xs:documentation>
|
|
261
|
+
Defines an inline script expression for a script task.
|
|
262
|
+
Allowed inside extension elements of bpmn:ScriptTask.
|
|
263
|
+
</xs:documentation>
|
|
264
|
+
</xs:annotation>
|
|
265
|
+
<xs:complexType>
|
|
266
|
+
<xs:attribute name="expression" type="xs:string" use="optional">
|
|
267
|
+
<xs:annotation><xs:documentation>The script body or FEEL expression.</xs:documentation></xs:annotation>
|
|
268
|
+
</xs:attribute>
|
|
269
|
+
<xs:attribute name="resultVariable" type="xs:string" use="optional">
|
|
270
|
+
<xs:annotation><xs:documentation>Variable where the script result is stored.</xs:documentation></xs:annotation>
|
|
271
|
+
</xs:attribute>
|
|
272
|
+
</xs:complexType>
|
|
273
|
+
</xs:element>
|
|
274
|
+
|
|
275
|
+
<!-- ================================================================
|
|
276
|
+
9. USER TASK
|
|
277
|
+
================================================================ -->
|
|
278
|
+
|
|
279
|
+
<!--
|
|
280
|
+
userTask (allowedIn: bpmn:UserTask)
|
|
281
|
+
Marker element — presence indicates the task is managed by the engine's
|
|
282
|
+
user-task lifecycle.
|
|
283
|
+
-->
|
|
284
|
+
<xs:element name="userTask">
|
|
285
|
+
<xs:annotation>
|
|
286
|
+
<xs:documentation>
|
|
287
|
+
Marker that opts the user task into engine-managed lifecycle.
|
|
288
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
289
|
+
No attributes — presence alone is significant.
|
|
290
|
+
</xs:documentation>
|
|
291
|
+
</xs:annotation>
|
|
292
|
+
<xs:complexType/>
|
|
293
|
+
</xs:element>
|
|
294
|
+
|
|
295
|
+
<!--
|
|
296
|
+
formDefinition (allowedIn: bpmn:UserTask)
|
|
297
|
+
Links a user task to an embedded or external form.
|
|
298
|
+
-->
|
|
299
|
+
<xs:element name="formDefinition">
|
|
300
|
+
<xs:annotation>
|
|
301
|
+
<xs:documentation>
|
|
302
|
+
Associates a user task with a form.
|
|
303
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
304
|
+
</xs:documentation>
|
|
305
|
+
</xs:annotation>
|
|
306
|
+
<xs:complexType>
|
|
307
|
+
<xs:attribute name="formKey" type="xs:string" use="optional">
|
|
308
|
+
<xs:annotation><xs:documentation>Key referencing an embedded form definition.</xs:documentation></xs:annotation>
|
|
309
|
+
</xs:attribute>
|
|
310
|
+
<xs:attribute name="formId" type="xs:string" use="optional">
|
|
311
|
+
<xs:annotation><xs:documentation>ID of a form deployed separately.</xs:documentation></xs:annotation>
|
|
312
|
+
</xs:attribute>
|
|
313
|
+
<xs:attribute name="externalReference" type="xs:string" use="optional">
|
|
314
|
+
<xs:annotation><xs:documentation>URL or path to an externally hosted form.</xs:documentation></xs:annotation>
|
|
315
|
+
</xs:attribute>
|
|
316
|
+
<xs:attribute name="bindingType" type="xs:string" use="optional" default="latest"/>
|
|
317
|
+
<xs:attribute name="versionTag" type="xs:string" use="optional"/>
|
|
318
|
+
</xs:complexType>
|
|
319
|
+
</xs:element>
|
|
320
|
+
|
|
321
|
+
<!--
|
|
322
|
+
userTaskForm (allowedIn: bpmn:Process — inside the Process extensionElements)
|
|
323
|
+
Stores an embedded form definition (JSON schema body) inside the process.
|
|
324
|
+
-->
|
|
325
|
+
<xs:element name="userTaskForm">
|
|
326
|
+
<xs:annotation>
|
|
327
|
+
<xs:documentation>
|
|
328
|
+
Embeds a form definition (JSON body) inside the process.
|
|
329
|
+
Allowed inside extension elements of bpmn:Process.
|
|
330
|
+
The body is the raw form JSON stored as element text content.
|
|
331
|
+
</xs:documentation>
|
|
332
|
+
</xs:annotation>
|
|
333
|
+
<xs:complexType mixed="true">
|
|
334
|
+
<xs:attribute name="id" type="xs:string" use="optional">
|
|
335
|
+
<xs:annotation><xs:documentation>Identifier referenced by zenbpm:formDefinition/@formKey.</xs:documentation></xs:annotation>
|
|
336
|
+
</xs:attribute>
|
|
337
|
+
</xs:complexType>
|
|
338
|
+
</xs:element>
|
|
339
|
+
|
|
340
|
+
<!--
|
|
341
|
+
assignmentDefinition (allowedIn: bpmn:UserTask)
|
|
342
|
+
Declares assignee and candidate groups/users for a user task.
|
|
343
|
+
-->
|
|
344
|
+
<xs:element name="assignmentDefinition">
|
|
345
|
+
<xs:annotation>
|
|
346
|
+
<xs:documentation>
|
|
347
|
+
Defines assignment rules for a user task.
|
|
348
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
349
|
+
</xs:documentation>
|
|
350
|
+
</xs:annotation>
|
|
351
|
+
<xs:complexType>
|
|
352
|
+
<xs:attribute name="assignee" type="xs:string" use="optional">
|
|
353
|
+
<xs:annotation><xs:documentation>FEEL expression or literal for the assignee.</xs:documentation></xs:annotation>
|
|
354
|
+
</xs:attribute>
|
|
355
|
+
<xs:attribute name="candidateGroups" type="xs:string" use="optional">
|
|
356
|
+
<xs:annotation><xs:documentation>Comma-separated candidate group IDs or FEEL list expression.</xs:documentation></xs:annotation>
|
|
357
|
+
</xs:attribute>
|
|
358
|
+
<xs:attribute name="candidateUsers" type="xs:string" use="optional">
|
|
359
|
+
<xs:annotation><xs:documentation>Comma-separated candidate user IDs or FEEL list expression.</xs:documentation></xs:annotation>
|
|
360
|
+
</xs:attribute>
|
|
361
|
+
</xs:complexType>
|
|
362
|
+
</xs:element>
|
|
363
|
+
|
|
364
|
+
<!--
|
|
365
|
+
priorityDefinition (allowedIn: bpmn:UserTask)
|
|
366
|
+
-->
|
|
367
|
+
<xs:element name="priorityDefinition">
|
|
368
|
+
<xs:annotation>
|
|
369
|
+
<xs:documentation>
|
|
370
|
+
Sets the priority of a user task.
|
|
371
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
372
|
+
</xs:documentation>
|
|
373
|
+
</xs:annotation>
|
|
374
|
+
<xs:complexType>
|
|
375
|
+
<xs:attribute name="priority" type="xs:string" use="optional">
|
|
376
|
+
<xs:annotation><xs:documentation>Integer or FEEL expression (0–100).</xs:documentation></xs:annotation>
|
|
377
|
+
</xs:attribute>
|
|
378
|
+
</xs:complexType>
|
|
379
|
+
</xs:element>
|
|
380
|
+
|
|
381
|
+
<!--
|
|
382
|
+
taskSchedule (allowedIn: bpmn:UserTask)
|
|
383
|
+
Due-date and follow-up-date configuration.
|
|
384
|
+
-->
|
|
385
|
+
<xs:element name="taskSchedule">
|
|
386
|
+
<xs:annotation>
|
|
387
|
+
<xs:documentation>
|
|
388
|
+
Configures the due date and follow-up date for a user task.
|
|
389
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
390
|
+
</xs:documentation>
|
|
391
|
+
</xs:annotation>
|
|
392
|
+
<xs:complexType>
|
|
393
|
+
<xs:attribute name="dueDate" type="xs:string" use="optional">
|
|
394
|
+
<xs:annotation><xs:documentation>ISO-8601 datetime string or FEEL expression.</xs:documentation></xs:annotation>
|
|
395
|
+
</xs:attribute>
|
|
396
|
+
<xs:attribute name="followUpDate" type="xs:string" use="optional">
|
|
397
|
+
<xs:annotation><xs:documentation>ISO-8601 datetime string or FEEL expression.</xs:documentation></xs:annotation>
|
|
398
|
+
</xs:attribute>
|
|
399
|
+
</xs:complexType>
|
|
400
|
+
</xs:element>
|
|
401
|
+
|
|
402
|
+
<!-- ================================================================
|
|
403
|
+
10. TASK LISTENERS
|
|
404
|
+
================================================================ -->
|
|
405
|
+
|
|
406
|
+
<!--
|
|
407
|
+
taskListeners (allowedIn: bpmn:UserTask)
|
|
408
|
+
Container for task-lifecycle listener declarations.
|
|
409
|
+
-->
|
|
410
|
+
<xs:element name="taskListeners">
|
|
411
|
+
<xs:annotation>
|
|
412
|
+
<xs:documentation>
|
|
413
|
+
Container for task-lifecycle listeners.
|
|
414
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
415
|
+
</xs:documentation>
|
|
416
|
+
</xs:annotation>
|
|
417
|
+
<xs:complexType>
|
|
418
|
+
<xs:sequence>
|
|
419
|
+
<xs:element name="taskListener" type="zenbpm:tTaskListener"
|
|
420
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
421
|
+
</xs:sequence>
|
|
422
|
+
</xs:complexType>
|
|
423
|
+
</xs:element>
|
|
424
|
+
|
|
425
|
+
<xs:complexType name="tTaskListener">
|
|
426
|
+
<xs:annotation>
|
|
427
|
+
<xs:documentation>A single task-lifecycle listener entry.</xs:documentation>
|
|
428
|
+
</xs:annotation>
|
|
429
|
+
<xs:attribute name="eventType" type="xs:string" use="optional">
|
|
430
|
+
<xs:annotation><xs:documentation>Lifecycle event: "create", "assignment", "update", "complete", "delete".</xs:documentation></xs:annotation>
|
|
431
|
+
</xs:attribute>
|
|
432
|
+
<xs:attribute name="retries" type="xs:string" use="optional"/>
|
|
433
|
+
<xs:attribute name="type" type="xs:string" use="optional">
|
|
434
|
+
<xs:annotation><xs:documentation>Job type for the listener worker.</xs:documentation></xs:annotation>
|
|
435
|
+
</xs:attribute>
|
|
436
|
+
</xs:complexType>
|
|
437
|
+
|
|
438
|
+
<!-- ================================================================
|
|
439
|
+
11. EXECUTION LISTENERS
|
|
440
|
+
================================================================ -->
|
|
441
|
+
|
|
442
|
+
<!--
|
|
443
|
+
executionListeners (allowedIn: Events, Activities, Process, Gateways)
|
|
444
|
+
Container for flow-execution listener declarations.
|
|
445
|
+
-->
|
|
446
|
+
<xs:element name="executionListeners">
|
|
447
|
+
<xs:annotation>
|
|
448
|
+
<xs:documentation>
|
|
449
|
+
Container for execution-lifecycle listeners.
|
|
450
|
+
Allowed inside extension elements of:
|
|
451
|
+
bpmn:Event, bpmn:Activity, bpmn:Process,
|
|
452
|
+
bpmn:ExclusiveGateway, bpmn:InclusiveGateway,
|
|
453
|
+
bpmn:ParallelGateway, bpmn:EventBasedGateway.
|
|
454
|
+
</xs:documentation>
|
|
455
|
+
</xs:annotation>
|
|
456
|
+
<xs:complexType>
|
|
457
|
+
<xs:sequence>
|
|
458
|
+
<xs:element name="executionListener" type="zenbpm:tExecutionListener"
|
|
459
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
460
|
+
</xs:sequence>
|
|
461
|
+
</xs:complexType>
|
|
462
|
+
</xs:element>
|
|
463
|
+
|
|
464
|
+
<xs:complexType name="tExecutionListener">
|
|
465
|
+
<xs:annotation>
|
|
466
|
+
<xs:documentation>A single execution-lifecycle listener entry.</xs:documentation>
|
|
467
|
+
</xs:annotation>
|
|
468
|
+
<xs:sequence>
|
|
469
|
+
<!-- listeners may carry their own task headers -->
|
|
470
|
+
<xs:element name="taskHeaders" minOccurs="0" maxOccurs="1">
|
|
471
|
+
<xs:complexType>
|
|
472
|
+
<xs:sequence>
|
|
473
|
+
<xs:element name="header" type="zenbpm:tHeader" minOccurs="0" maxOccurs="unbounded"/>
|
|
474
|
+
</xs:sequence>
|
|
475
|
+
</xs:complexType>
|
|
476
|
+
</xs:element>
|
|
477
|
+
</xs:sequence>
|
|
478
|
+
<xs:attribute name="eventType" type="xs:string" use="optional">
|
|
479
|
+
<xs:annotation><xs:documentation>Lifecycle event: "start" or "end".</xs:documentation></xs:annotation>
|
|
480
|
+
</xs:attribute>
|
|
481
|
+
<xs:attribute name="retries" type="xs:string" use="optional"/>
|
|
482
|
+
<xs:attribute name="type" type="xs:string" use="optional">
|
|
483
|
+
<xs:annotation><xs:documentation>Job type for the listener worker.</xs:documentation></xs:annotation>
|
|
484
|
+
</xs:attribute>
|
|
485
|
+
</xs:complexType>
|
|
486
|
+
|
|
487
|
+
<!-- ================================================================
|
|
488
|
+
12. PROPERTIES (generic key-value)
|
|
489
|
+
================================================================ -->
|
|
490
|
+
|
|
491
|
+
<!--
|
|
492
|
+
properties (allowedIn: any element via extensionElements)
|
|
493
|
+
Arbitrary name/value metadata.
|
|
494
|
+
-->
|
|
495
|
+
<xs:element name="properties">
|
|
496
|
+
<xs:annotation>
|
|
497
|
+
<xs:documentation>
|
|
498
|
+
Container for arbitrary key/value extension properties.
|
|
499
|
+
May appear in extension elements of any BPMN element.
|
|
500
|
+
</xs:documentation>
|
|
501
|
+
</xs:annotation>
|
|
502
|
+
<xs:complexType>
|
|
503
|
+
<xs:sequence>
|
|
504
|
+
<xs:element name="property" type="zenbpm:tProperty"
|
|
505
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
506
|
+
</xs:sequence>
|
|
507
|
+
</xs:complexType>
|
|
508
|
+
</xs:element>
|
|
509
|
+
|
|
510
|
+
<xs:complexType name="tProperty">
|
|
511
|
+
<xs:attribute name="name" type="xs:string" use="optional"/>
|
|
512
|
+
<xs:attribute name="value" type="xs:string" use="optional"/>
|
|
513
|
+
</xs:complexType>
|
|
514
|
+
|
|
515
|
+
<!-- ================================================================
|
|
516
|
+
13. VERSION TAG
|
|
517
|
+
================================================================ -->
|
|
518
|
+
|
|
519
|
+
<!--
|
|
520
|
+
versionTag (allowedIn: bpmn:Process)
|
|
521
|
+
Human-readable version tag for the process.
|
|
522
|
+
-->
|
|
523
|
+
<xs:element name="versionTag">
|
|
524
|
+
<xs:annotation>
|
|
525
|
+
<xs:documentation>
|
|
526
|
+
Attaches a human-readable version tag to a process definition.
|
|
527
|
+
Allowed inside extension elements of bpmn:Process.
|
|
528
|
+
</xs:documentation>
|
|
529
|
+
</xs:annotation>
|
|
530
|
+
<xs:complexType>
|
|
531
|
+
<xs:attribute name="value" type="xs:string" use="optional"/>
|
|
532
|
+
</xs:complexType>
|
|
533
|
+
</xs:element>
|
|
534
|
+
|
|
535
|
+
<!-- ================================================================
|
|
536
|
+
14. LINKED RESOURCES
|
|
537
|
+
================================================================ -->
|
|
538
|
+
|
|
539
|
+
<!--
|
|
540
|
+
linkedResources (allowedIn: bpmn:ServiceTask)
|
|
541
|
+
Collection of external resource references.
|
|
542
|
+
-->
|
|
543
|
+
<xs:element name="linkedResources">
|
|
544
|
+
<xs:annotation>
|
|
545
|
+
<xs:documentation>
|
|
546
|
+
Container for external resource references attached to a service task.
|
|
547
|
+
Allowed inside extension elements of bpmn:ServiceTask.
|
|
548
|
+
</xs:documentation>
|
|
549
|
+
</xs:annotation>
|
|
550
|
+
<xs:complexType>
|
|
551
|
+
<xs:sequence>
|
|
552
|
+
<xs:element name="linkedResource" type="zenbpm:tLinkedResource"
|
|
553
|
+
minOccurs="0" maxOccurs="unbounded"/>
|
|
554
|
+
</xs:sequence>
|
|
555
|
+
</xs:complexType>
|
|
556
|
+
</xs:element>
|
|
557
|
+
|
|
558
|
+
<xs:complexType name="tLinkedResource">
|
|
559
|
+
<xs:attribute name="resourceId" type="xs:string" use="optional"/>
|
|
560
|
+
<xs:attribute name="resourceType" type="xs:string" use="optional"/>
|
|
561
|
+
<xs:attribute name="linkName" type="xs:string" use="optional"/>
|
|
562
|
+
<xs:attribute name="bindingType" type="xs:string" use="optional" default="latest"/>
|
|
563
|
+
<xs:attribute name="versionTag" type="xs:string" use="optional"/>
|
|
564
|
+
</xs:complexType>
|
|
565
|
+
|
|
566
|
+
<!-- ================================================================
|
|
567
|
+
15. AD-HOC SUB-PROCESS
|
|
568
|
+
================================================================ -->
|
|
569
|
+
|
|
570
|
+
<!--
|
|
571
|
+
adHoc (allowedIn: bpmn:AdHocSubProcess)
|
|
572
|
+
Runtime collection expressions for ad-hoc sub-processes.
|
|
573
|
+
-->
|
|
574
|
+
<xs:element name="adHoc">
|
|
575
|
+
<xs:annotation>
|
|
576
|
+
<xs:documentation>
|
|
577
|
+
Configures variable collection for an ad-hoc sub-process.
|
|
578
|
+
Allowed inside extension elements of bpmn:AdHocSubProcess.
|
|
579
|
+
</xs:documentation>
|
|
580
|
+
</xs:annotation>
|
|
581
|
+
<xs:complexType>
|
|
582
|
+
<xs:attribute name="activeElementsCollection" type="xs:string" use="optional">
|
|
583
|
+
<xs:annotation><xs:documentation>FEEL expression evaluating to the set of active elements.</xs:documentation></xs:annotation>
|
|
584
|
+
</xs:attribute>
|
|
585
|
+
<xs:attribute name="outputCollection" type="xs:string" use="optional"/>
|
|
586
|
+
<xs:attribute name="outputElement" type="xs:string" use="optional"/>
|
|
587
|
+
</xs:complexType>
|
|
588
|
+
</xs:element>
|
|
589
|
+
|
|
590
|
+
<!-- ================================================================
|
|
591
|
+
16. CONDITIONAL FILTER
|
|
592
|
+
================================================================ -->
|
|
593
|
+
|
|
594
|
+
<!--
|
|
595
|
+
conditionalFilter (allowedIn: bpmn:ConditionalEventDefinition)
|
|
596
|
+
Restricts which variable changes trigger a conditional event.
|
|
597
|
+
-->
|
|
598
|
+
<xs:element name="conditionalFilter">
|
|
599
|
+
<xs:annotation>
|
|
600
|
+
<xs:documentation>
|
|
601
|
+
Filters which variable updates trigger a conditional event.
|
|
602
|
+
Allowed inside extension elements of bpmn:ConditionalEventDefinition.
|
|
603
|
+
</xs:documentation>
|
|
604
|
+
</xs:annotation>
|
|
605
|
+
<xs:complexType>
|
|
606
|
+
<xs:attribute name="variableNames" type="xs:string" use="optional">
|
|
607
|
+
<xs:annotation><xs:documentation>Comma-separated list of variable names that may trigger the event.</xs:documentation></xs:annotation>
|
|
608
|
+
</xs:attribute>
|
|
609
|
+
<xs:attribute name="variableEvents" type="xs:string" use="optional">
|
|
610
|
+
<xs:annotation><xs:documentation>Comma-separated event types: "create", "update", "delete".</xs:documentation></xs:annotation>
|
|
611
|
+
</xs:attribute>
|
|
612
|
+
</xs:complexType>
|
|
613
|
+
</xs:element>
|
|
614
|
+
|
|
615
|
+
<!-- ================================================================
|
|
616
|
+
17. MODELER TEMPLATE ATTRIBUTES (abstract — applied via xs:anyAttribute in tools)
|
|
617
|
+
These are declared as global attributes so validators can reference them.
|
|
618
|
+
================================================================ -->
|
|
619
|
+
|
|
620
|
+
<!-- ================================================================
|
|
621
|
+
18. ZEN FORM
|
|
622
|
+
================================================================ -->
|
|
623
|
+
|
|
624
|
+
<!--
|
|
625
|
+
zenForm (allowedIn: bpmn:UserTask)
|
|
626
|
+
Configuration for zenForm.
|
|
627
|
+
-->
|
|
628
|
+
<xs:element name="zenForm">
|
|
629
|
+
<xs:annotation>
|
|
630
|
+
<xs:documentation>
|
|
631
|
+
Zen form configuration.
|
|
632
|
+
Allowed inside extension elements of bpmn:UserTask.
|
|
633
|
+
</xs:documentation>
|
|
634
|
+
</xs:annotation>
|
|
635
|
+
<xs:complexType>
|
|
636
|
+
<xs:attribute name="formId" type="xs:string" use="optional"/>
|
|
637
|
+
</xs:complexType>
|
|
638
|
+
</xs:element>
|
|
639
|
+
|
|
640
|
+
<xs:attribute name="modelerTemplate" type="xs:string"/>
|
|
641
|
+
<xs:attribute name="modelerTemplateVersion" type="xs:integer"/>
|
|
642
|
+
<xs:attribute name="modelerTemplateIcon" type="xs:string"/>
|
|
643
|
+
|
|
644
|
+
</xs:schema>
|