forked from nitram509/lib-bpmn-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bpmn_structs.go
137 lines (120 loc) · 5.86 KB
/
bpmn_structs.go
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
package BPMN20
import "github.com/github.com/SLio-Secure/lib-bpmn-engine/pkg/spec/BPMN20/extensions"
type TDefinitions struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
TargetNamespace string `xml:"targetNamespace,attr"`
ExpressionLanguage string `xml:"expressionLanguage,attr"`
TypeLanguage string `xml:"typeLanguage,attr"`
Exporter string `xml:"exporter,attr"`
ExporterVersion string `xml:"exporterVersion,attr"`
Process TProcess `xml:"process"`
Messages []TMessage `xml:"message"`
}
type TProcess struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
ProcessType string `xml:"processType,attr"`
IsClosed bool `xml:"isClosed,attr"`
IsExecutable bool `xml:"isExecutable,attr"`
DefinitionalCollaborationRef string `xml:"definitionalCollaborationRef,attr"`
StartEvents []TStartEvent `xml:"startEvent"`
EndEvents []TEndEvent `xml:"endEvent"`
SequenceFlows []TSequenceFlow `xml:"sequenceFlow"`
ServiceTasks []TServiceTask `xml:"serviceTask"`
UserTasks []TUserTask `xml:"userTask"`
ParallelGateway []TParallelGateway `xml:"parallelGateway"`
ExclusiveGateway []TExclusiveGateway `xml:"exclusiveGateway"`
IntermediateCatchEvent []TIntermediateCatchEvent `xml:"intermediateCatchEvent"`
EventBasedGateway []TEventBasedGateway `xml:"eventBasedGateway"`
}
type TSequenceFlow struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
SourceRef string `xml:"sourceRef,attr"`
TargetRef string `xml:"targetRef,attr"`
ConditionExpression []TExpression `xml:"conditionExpression"`
}
type TExpression struct {
Text string `xml:",innerxml"`
}
type TStartEvent struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IsInterrupting bool `xml:"isInterrupting,attr"`
ParallelMultiple bool `xml:"parallelMultiple,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
}
type TEndEvent struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
}
type TServiceTask struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
Default string `xml:"default,attr"`
CompletionQuantity int `xml:"completionQuantity,attr"`
IsForCompensation bool `xml:"isForCompensation,attr"`
OperationRef string `xml:"operationRef,attr"`
Implementation string `xml:"implementation,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
Input []extensions.TIoMapping `xml:"extensionElements>ioMapping>input"`
Output []extensions.TIoMapping `xml:"extensionElements>ioMapping>output"`
TaskDefinition extensions.TTaskDefinition `xml:"extensionElements>taskDefinition"`
}
type TUserTask struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
Input []extensions.TIoMapping `xml:"extensionElements>ioMapping>input"`
Output []extensions.TIoMapping `xml:"extensionElements>ioMapping>output"`
AssignmentDefinition extensions.TAssignmentDefinition `xml:"extensionElements>assignmentDefinition"`
}
type TParallelGateway struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
}
type TExclusiveGateway struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
}
type TIntermediateCatchEvent struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
MessageEventDefinition TMessageEventDefinition `xml:"messageEventDefinition"`
TimerEventDefinition TTimerEventDefinition `xml:"timerEventDefinition"`
ParallelMultiple bool `xml:"parallelMultiple"`
Output []extensions.TIoMapping `xml:"extensionElements>ioMapping>output"`
}
type TEventBasedGateway struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
IncomingAssociation []string `xml:"incoming"`
OutgoingAssociation []string `xml:"outgoing"`
}
type TMessageEventDefinition struct {
Id string `xml:"id,attr"`
MessageRef string `xml:"messageRef,attr"`
}
type TTimerEventDefinition struct {
Id string `xml:"id,attr"`
TimeDuration TTimeDuration `xml:"timeDuration"`
}
type TMessage struct {
Id string `xml:"id,attr"`
Name string `xml:"name,attr"`
}
type TTimeDuration struct {
XMLText string `xml:",innerxml"`
}