/
common-case-management-3.xsd
921 lines (889 loc) · 35.9 KB
/
common-case-management-3.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<xsd:schema targetNamespace="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
elementFormDefault="qualified"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="2.0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
<!-- Don't provide schemaLocation here, as it causes xjc to really contact the URIs (!) -->
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/annotation-3"/>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/types-3"/>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/query-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-core-3" />
<xsd:complexType name="CaseType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:object/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:ObjectType">
<xsd:sequence>
<!-- TODO payload -->
<xsd:element name="state" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcome" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="closeTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When was this case closed?
(Note that the creation timestamp is present in the object metadata.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="event" type="tns:CaseEventType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Events that occurred during lifetime of this process instance.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="workItem" type="tns:CaseWorkItemType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- stage number -->
<!-- deadline -->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="case" type="tns:CaseType"/>
<xsd:complexType name="AbstractWorkItemType">
<xsd:annotation>
<xsd:documentation>
Common superclass for workflow (approval) work item, certification work item and case management work item.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Descriptive name of the work item. E.g. "Assign role1 to user1".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="stageNumber" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Number of the stage this work item is part of.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="createTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When was this work item created?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="deadline" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When is this work to be done? May be moved via escalation(s).
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="originalAssigneeRef" type="tns:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Original assignee for this work item.
</xsd:documentation>
<!-- TODO allow also roles/orgs here. -->
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="assigneeRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Users to which the work item is assigned. Other users do not see such a work item in their work lists.
Normally the work item is assigned to a single user. However, when delegating (directly or via escalation)
more assignees could be added.
</xsd:documentation>
<!-- TODO allow also roles/orgs here. -->
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="candidateRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Users and abstract roles to which the work item MAY BE assigned.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:FocusType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="performerRef" type="tns:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User who actually executed (completed) this work item.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevel" type="tns:WorkItemEscalationLevelType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="output" type="tns:AbstractWorkItemOutputType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Work item output (if any).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="closeTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When was this work item closed. (If null, it is considered open.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:long" use="optional"/>
</xsd:complexType>
<xsd:complexType name="AbstractWorkItemOutputType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="outcome" type="xsd:anyURI" minOccurs="0" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CaseWorkItemType">
<xsd:annotation>
<xsd:documentation>
A work item for a (generic) case.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AbstractWorkItemType">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CaseEventType">
<xsd:annotation>
<xsd:documentation>
Any event occurring during case lifetime that needs to be recorded, e.g. an action done by a user.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="timestamp" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>
Time in which the event occurred.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- TODO rename to performerRef ? -->
<xsd:element name="initiatorRef" type="c:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User who initiated this action. (Typically, a user who performed an action.)
Might be null if unknown.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="stageNumber" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Number of the stage at which this event occurred (if the case resolution can be conceptually divided into stages).
Starts at 1. Null if not applicable.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="WorkItemEventCauseInformationType">
<xsd:annotation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="type" type="tns:WorkItemEventCauseTypeType" minOccurs="0" />
<xsd:element name="name" type="xsd:string" minOccurs="0" />
<xsd:element name="displayName" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="WorkItemEventCauseTypeType">
<xsd:annotation>
<xsd:documentation>
Type of event cause.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="userAction">
<xsd:annotation>
<xsd:documentation>
This event was caused by a user action.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="USER_ACTION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="timedAction">
<xsd:annotation>
<xsd:documentation>
This event was caused by a timed action.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="TIMED_ACTION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="WorkItemEventType">
<xsd:annotation>
<xsd:documentation>
Process event related to a specific work item.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:CaseEventType">
<xsd:sequence>
<xsd:element name="workItemId" type="xsd:long" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
MidPoint container ID of the work item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="externalWorkItemId" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Activiti ID of the work item (activiti task) this event is related to. Null for
work items that have no external representation (i.e. they are present in midPoint repo only).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="originalAssigneeRef" type="c:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User to which this work item was originally assigned.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevel" type="tns:WorkItemEscalationLevelType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cause" type="tns:WorkItemEventCauseInformationType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Cause of the event occurring. E.g. user action, timed action (and which one).
EXPERIMENTAL; TO BE DECIDED ABOUT THIS BEFORE 3.6 RELEASE
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- TODO reason? e.g. when doing escalation? -->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="WorkItemCompletionEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the work item completion.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:WorkItemEventType">
<xsd:sequence>
<xsd:element name="output" type="tns:AbstractWorkItemOutputType" minOccurs="0" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="WorkItemDelegationEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the fact of delegation.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:WorkItemEventType">
<xsd:sequence>
<xsd:element name="assigneeBefore" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="delegatedTo" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="delegationMethod" type="tns:WorkItemDelegationMethodType" minOccurs="0" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="WorkItemEscalationEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the fact of escalation.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:WorkItemDelegationEventType">
<xsd:sequence>
<xsd:element name="newEscalationLevel" type="tns:WorkItemEscalationLevelType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="StageCompletionEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the completion of a workflow process instance stage.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:CaseEventType">
<xsd:sequence>
<xsd:element name="outcome" type="xsd:anyURI" minOccurs="0" />
<xsd:element name="automatedDecisionReason" type="tns:AutomatedCompletionReasonType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Reason for automated decision, if applicable.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="AutomatedCompletionReasonType">
<xsd:annotation>
<xsd:documentation>
Reason for automated decision.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="autoCompletionCondition">
<xsd:annotation>
<xsd:documentation>
Completed automatically by the auto-completion or auto-approval condition.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="AUTO_COMPLETION_CONDITION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="noAssigneesFound">
<xsd:annotation>
<xsd:documentation>
Completed automatically because there were no assignees found.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="NO_ASSIGNEES_FOUND"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="CaseCompletionEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the completion of a workflow process instance.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:CaseEventType">
<xsd:sequence>
<!-- TODO -->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CaseCreationEventType">
<xsd:annotation>
<xsd:documentation>
Event describing the creation of a workflow process instance.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:CaseEventType">
<xsd:sequence>
<xsd:element name="businessContext" type="tns:OperationBusinessContextType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Business context of the operation, if provided.
TODO move to CaseEventType?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="WorkItemEscalationLevelType">
<xsd:annotation>
<xsd:documentation>
Description of an escalation level the processing is at.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="number" type="xsd:int" minOccurs="0" />
<xsd:element name="name" type="xsd:string" minOccurs="0" />
<xsd:element name="displayName" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<!-- =================================== TIMED ACTIONS =================================== -->
<xsd:complexType name="WorkItemTimedActionsType">
<xsd:annotation>
<xsd:documentation>
Actions that should be applied to a work item in given moments (relative to work item creation
or work item deadline).
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Name given to this "timed actions" entry.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="displayName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Display name given to this "timed actions" entry.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Description of this "timed actions" entry.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="time" type="tns:TimedActionTimeSpecificationType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Time(s) at which these actions are to be executed. No time or zero time means they are executed
at the work item deadline.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="actions" type="tns:WorkItemActionsType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
What actions to execute.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="condition" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Should these actions be scheduled?
NOT IMPLEMENTED YET.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevelFrom" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Apply only if current escalation level is greater or equal to this value.
If both escalationLevelFrom and escalationLevelTo are missing, they are considered both to be 0.
If only escalationLevelFrom is missing, it is considered 0 (i.e. no restriction).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevelTo" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Apply only if current escalation level is not greater than this value.
If both escalationLevelFrom and escalationLevelTo are missing, they are considered both to be 0.
If only escalationLevelTo is missing, it is considered "infinity" (i.e. no restriction).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="WorkItemActionsType">
<xsd:annotation>
<xsd:documentation>
Actions to execute.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="complete" type="tns:CompleteWorkItemActionType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Complete this work item with a given result.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!-- TODO maybe also completeStage -->
<xsd:element name="notify" type="tns:WorkItemNotificationActionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Send a notification.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="delegate" type="tns:DelegateWorkItemActionType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Delegate this work item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalate" type="tns:EscalateWorkItemActionType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Escalate this work item. Basically the same as "delegate" but increases the escalation level.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AbstractWorkItemActionType">
<xsd:annotation>
<xsd:documentation>
TODO
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="displayName" type="xsd:string" minOccurs="0"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="condition" type="tns:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Should this action be executed?
NOT IMPLEMENTED YET
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CompleteWorkItemActionType">
<xsd:annotation>
<xsd:documentation>
TODO
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AbstractWorkItemActionType">
<xsd:sequence>
<xsd:element name="outcome" type="xsd:anyURI" minOccurs="0" />
<xsd:element name="notifyBeforeAction" type="xsd:duration" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
If specified, sends a standard "action to be executed" notifications at given times.
(Unlike in timed action interval, here a positive time must be specified: just like for
notifyBeforeDeadline in certification.)
TODO other time units, like business days?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="WorkItemNotificationActionType">
<xsd:annotation>
<xsd:documentation>
TODO
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AbstractWorkItemActionType">
<xsd:sequence>
<xsd:element name="perAssignee" type="xsd:boolean" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>
If true (the default) creates one notification event for each assignee. Otherwise,
creates a single notification event for the whole work item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="handler" type="c:EventHandlerType" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>
Ad-hoc event handler that will be used to process these event emitted. In addition to it,
a system-wide handler for workItemCustomEvent will be invoked.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DelegateWorkItemActionType">
<xsd:annotation>
<xsd:documentation>
TODO
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AbstractWorkItemActionType">
<xsd:sequence>
<xsd:element name="approverRef" type="c:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Specific approver to replace the current one.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="approverExpression" type="c:ExpressionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Expression giving an approver to replace the current one.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcomeIfNoApprovers" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
What is the outcome (of this work item) if there is no approver to delegate/escalate to?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="duration" type="xsd:duration" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Duration of the work item after delegation. If not specified, the deadline of the work item
is not changed (this is meaningful only if the delegation occurs before the original deadline).
TODO other time units, like business days?
TODO relative to original start time, original deadline, or current time?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="delegationMethod" type="tns:WorkItemDelegationMethodType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How to delegate the work item? Default is "replace assignees".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="notifyBeforeAction" type="xsd:duration" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
If specified, sends a standard "action to be executed" notifications at given times.
(Unlike in timed action interval, here a positive time must be specified: just like for
notifyBeforeDeadline in certification.)
TODO other time units, like business days?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="EscalateWorkItemActionType">
<xsd:annotation>
<xsd:documentation>
TODO
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:DelegateWorkItemActionType">
<xsd:sequence>
<xsd:element name="escalationLevelName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Name for the new escalation level.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevelDisplayName" type="xsd:string" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>
Display name for the new escalation level.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="WorkItemDelegationMethodType">
<xsd:annotation>
<xsd:documentation>
How the delegation should be realized.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="addAssignees">
<xsd:annotation>
<xsd:documentation>
Delegate(s) should be added as new assignees, keeping original assignees and original candidates.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ADD_ASSIGNEES"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="replaceAssignees">
<xsd:annotation>
<xsd:documentation>
Delegate(s) should replace existing assignee(s). Candidates are removed.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="REPLACE_ASSIGNEES"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<!-- TODO something like "replaceCurrentAssignee" ? -->
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>