bpmn-elements 6.0.1 → 8.0.1
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/CHANGELOG.md +341 -0
- package/README.md +3 -0
- package/dist/index.js +52 -44
- package/dist/src/Api.js +77 -76
- package/dist/src/Context.js +176 -172
- package/dist/src/Environment.js +110 -102
- package/dist/src/EventBroker.js +89 -88
- package/dist/src/ExtensionsMapper.js +2 -2
- package/dist/src/MessageFormatter.js +164 -95
- package/dist/src/Scripts.js +6 -2
- package/dist/src/activity/Activity.js +1105 -916
- package/dist/src/activity/ActivityExecution.js +342 -297
- package/dist/src/activity/Dummy.js +3 -3
- package/dist/src/definition/Definition.js +498 -444
- package/dist/src/definition/DefinitionExecution.js +710 -408
- package/dist/src/error/Errors.js +17 -7
- package/dist/src/eventDefinitions/CancelEventDefinition.js +190 -150
- package/dist/src/eventDefinitions/CompensateEventDefinition.js +194 -161
- package/dist/src/eventDefinitions/ConditionalEventDefinition.js +197 -135
- package/dist/src/eventDefinitions/ErrorEventDefinition.js +207 -165
- package/dist/src/eventDefinitions/EscalationEventDefinition.js +175 -141
- package/dist/src/eventDefinitions/EventDefinitionExecution.js +157 -129
- package/dist/src/eventDefinitions/LinkEventDefinition.js +174 -149
- package/dist/src/eventDefinitions/MessageEventDefinition.js +213 -176
- package/dist/src/eventDefinitions/SignalEventDefinition.js +203 -161
- package/dist/src/eventDefinitions/TerminateEventDefinition.js +21 -23
- package/dist/src/eventDefinitions/TimerEventDefinition.js +243 -228
- package/dist/src/events/BoundaryEvent.js +180 -144
- package/dist/src/events/EndEvent.js +18 -23
- package/dist/src/events/IntermediateCatchEvent.js +44 -58
- package/dist/src/events/IntermediateThrowEvent.js +18 -23
- package/dist/src/events/StartEvent.js +109 -94
- package/dist/src/flows/Association.js +94 -100
- package/dist/src/flows/MessageFlow.js +86 -103
- package/dist/src/flows/SequenceFlow.js +173 -182
- package/dist/src/gateways/EventBasedGateway.js +88 -84
- package/dist/src/gateways/ExclusiveGateway.js +13 -16
- package/dist/src/gateways/InclusiveGateway.js +11 -14
- package/dist/src/gateways/ParallelGateway.js +11 -14
- package/dist/src/getPropertyValue.js +34 -34
- package/dist/src/io/BpmnIO.js +17 -14
- package/dist/src/io/EnvironmentDataObject.js +33 -29
- package/dist/src/io/EnvironmentDataStore.js +33 -29
- package/dist/src/io/EnvironmentDataStoreReference.js +35 -31
- package/dist/src/io/InputOutputSpecification.js +177 -168
- package/dist/src/io/Properties.js +117 -124
- package/dist/src/messageHelper.js +1 -1
- package/dist/src/process/Process.js +439 -362
- package/dist/src/process/ProcessExecution.js +748 -646
- package/dist/src/shared.js +2 -2
- package/dist/src/tasks/CallActivity.js +160 -0
- package/dist/src/tasks/LoopCharacteristics.js +309 -330
- package/dist/src/tasks/ReceiveTask.js +233 -182
- package/dist/src/tasks/ScriptTask.js +35 -41
- package/dist/src/tasks/ServiceImplementation.js +13 -20
- package/dist/src/tasks/ServiceTask.js +82 -75
- package/dist/src/tasks/SignalTask.js +97 -93
- package/dist/src/tasks/StandardLoopCharacteristics.js +1 -1
- package/dist/src/tasks/SubProcess.js +193 -175
- package/dist/src/tasks/Task.js +17 -19
- package/index.js +2 -0
- package/package.json +16 -16
- package/src/Api.js +65 -59
- package/src/Context.js +145 -140
- package/src/Environment.js +116 -100
- package/src/EventBroker.js +67 -68
- package/src/ExtensionsMapper.js +2 -2
- package/src/MessageFormatter.js +132 -74
- package/src/activity/Activity.js +914 -776
- package/src/activity/ActivityExecution.js +293 -247
- package/src/activity/Dummy.js +2 -2
- package/src/definition/Definition.js +437 -401
- package/src/definition/DefinitionExecution.js +598 -340
- package/src/error/Errors.js +11 -6
- package/src/eventDefinitions/CancelEventDefinition.js +164 -121
- package/src/eventDefinitions/CompensateEventDefinition.js +159 -124
- package/src/eventDefinitions/ConditionalEventDefinition.js +147 -104
- package/src/eventDefinitions/ErrorEventDefinition.js +190 -131
- package/src/eventDefinitions/EscalationEventDefinition.js +139 -101
- package/src/eventDefinitions/EventDefinitionExecution.js +127 -95
- package/src/eventDefinitions/LinkEventDefinition.js +160 -129
- package/src/eventDefinitions/MessageEventDefinition.js +178 -121
- package/src/eventDefinitions/SignalEventDefinition.js +162 -106
- package/src/eventDefinitions/TerminateEventDefinition.js +19 -19
- package/src/eventDefinitions/TimerEventDefinition.js +202 -167
- package/src/events/BoundaryEvent.js +156 -115
- package/src/events/EndEvent.js +15 -18
- package/src/events/IntermediateCatchEvent.js +40 -44
- package/src/events/IntermediateThrowEvent.js +15 -18
- package/src/events/StartEvent.js +84 -50
- package/src/flows/Association.js +98 -112
- package/src/flows/MessageFlow.js +81 -97
- package/src/flows/SequenceFlow.js +146 -160
- package/src/gateways/EventBasedGateway.js +75 -68
- package/src/gateways/ExclusiveGateway.js +8 -13
- package/src/gateways/InclusiveGateway.js +8 -13
- package/src/gateways/ParallelGateway.js +8 -13
- package/src/getPropertyValue.js +34 -33
- package/src/io/BpmnIO.js +20 -15
- package/src/io/EnvironmentDataObject.js +29 -18
- package/src/io/EnvironmentDataStore.js +29 -18
- package/src/io/EnvironmentDataStoreReference.js +31 -20
- package/src/io/InputOutputSpecification.js +154 -157
- package/src/io/Properties.js +95 -97
- package/src/process/Process.js +378 -333
- package/src/process/ProcessExecution.js +603 -553
- package/src/tasks/CallActivity.js +130 -0
- package/src/tasks/LoopCharacteristics.js +290 -289
- package/src/tasks/ReceiveTask.js +174 -107
- package/src/tasks/ScriptTask.js +27 -30
- package/src/tasks/ServiceImplementation.js +13 -18
- package/src/tasks/ServiceTask.js +67 -60
- package/src/tasks/SignalTask.js +77 -52
- package/src/tasks/StandardLoopCharacteristics.js +1 -1
- package/src/tasks/SubProcess.js +184 -157
- package/src/tasks/Task.js +15 -19
|
@@ -9,197 +9,239 @@ var _shared = require("../shared");
|
|
|
9
9
|
|
|
10
10
|
var _messageHelper = require("../messageHelper");
|
|
11
11
|
|
|
12
|
+
const kCompleted = Symbol.for('completed');
|
|
13
|
+
const kMessageQ = Symbol.for('messageQ');
|
|
14
|
+
const kExecuteMessage = Symbol.for('executeMessage');
|
|
15
|
+
const kReferenceElement = Symbol.for('referenceElement');
|
|
16
|
+
const kReferenceInfo = Symbol.for('referenceInfo');
|
|
17
|
+
|
|
12
18
|
function ErrorEventDefinition(activity, eventDefinition) {
|
|
13
19
|
const {
|
|
14
20
|
id,
|
|
15
21
|
broker,
|
|
16
22
|
environment,
|
|
17
|
-
getActivityById,
|
|
18
23
|
isThrowing
|
|
19
24
|
} = activity;
|
|
20
25
|
const {
|
|
21
26
|
type = 'ErrorEventDefinition',
|
|
22
27
|
behaviour = {}
|
|
23
28
|
} = eventDefinition;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const referenceElement = reference.id && getActivityById(reference.id);
|
|
31
|
-
const errorId = referenceElement ? referenceElement.id : 'anonymous';
|
|
32
|
-
const errorQueueName = `error-${(0, _shared.brokerSafeId)(id)}-${(0, _shared.brokerSafeId)(errorId)}-q`;
|
|
33
|
-
if (!isThrowing) setupCatch();
|
|
34
|
-
const source = {
|
|
35
|
-
type,
|
|
36
|
-
reference: { ...reference,
|
|
37
|
-
referenceType: 'throw'
|
|
38
|
-
},
|
|
39
|
-
execute: isThrowing ? executeThrow : executeCatch
|
|
29
|
+
this.id = id;
|
|
30
|
+
this.type = type;
|
|
31
|
+
const reference = this.reference = {
|
|
32
|
+
name: 'anonymous',
|
|
33
|
+
...behaviour.errorRef,
|
|
34
|
+
referenceType: 'throw'
|
|
40
35
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
const {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
broker.consume(errorQueueName, onThrowApiMessage, {
|
|
56
|
-
noAck: true,
|
|
57
|
-
consumerTag: `_onthrow-${executionId}`
|
|
36
|
+
this.isThrowing = isThrowing;
|
|
37
|
+
this.activity = activity;
|
|
38
|
+
this.environment = environment;
|
|
39
|
+
this.broker = broker;
|
|
40
|
+
this.logger = environment.Logger(type.toLowerCase());
|
|
41
|
+
const referenceElement = this[kReferenceElement] = reference.id && activity.getActivityById(reference.id);
|
|
42
|
+
|
|
43
|
+
if (!isThrowing) {
|
|
44
|
+
this[kCompleted] = false;
|
|
45
|
+
const referenceId = referenceElement ? referenceElement.id : 'anonymous';
|
|
46
|
+
const messageQueueName = `${reference.referenceType}-${(0, _shared.brokerSafeId)(id)}-${(0, _shared.brokerSafeId)(referenceId)}-q`;
|
|
47
|
+
this[kMessageQ] = broker.assertQueue(messageQueueName, {
|
|
48
|
+
autoDelete: false,
|
|
49
|
+
durable: true
|
|
58
50
|
});
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
consumerTag: `_api-${executionId}`
|
|
51
|
+
broker.bindQueue(messageQueueName, 'api', `*.${reference.referenceType}.#`, {
|
|
52
|
+
durable: true,
|
|
53
|
+
priority: 300
|
|
63
54
|
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
64
57
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
broker.subscribeOnce('execution', expectRoutingKey, onErrorMessage, {
|
|
73
|
-
consumerTag: `_onerror-${executionId}`
|
|
74
|
-
});
|
|
75
|
-
}
|
|
58
|
+
const proto = ErrorEventDefinition.prototype;
|
|
59
|
+
Object.defineProperty(proto, 'executionId', {
|
|
60
|
+
get() {
|
|
61
|
+
const message = this[kExecuteMessage];
|
|
62
|
+
return message && message.content.executionId;
|
|
63
|
+
}
|
|
76
64
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
proto.execute = function execute(executeMessage) {
|
|
68
|
+
return this.isThrowing ? this.executeThrow(executeMessage) : this.executeCatch(executeMessage);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
proto.executeCatch = function executeCatch(executeMessage) {
|
|
72
|
+
this[kExecuteMessage] = executeMessage;
|
|
73
|
+
this[kCompleted] = false;
|
|
74
|
+
const executeContent = executeMessage.content;
|
|
75
|
+
const {
|
|
76
|
+
executionId,
|
|
77
|
+
parent
|
|
78
|
+
} = executeContent;
|
|
79
|
+
const parentExecutionId = parent && parent.executionId;
|
|
80
|
+
|
|
81
|
+
const info = this[kReferenceInfo] = this._getReferenceInfo(executeMessage);
|
|
82
|
+
|
|
83
|
+
this[kMessageQ].consume(this._onThrowApiMessage.bind(this), {
|
|
84
|
+
noAck: true,
|
|
85
|
+
consumerTag: `_onthrow-${executionId}`
|
|
86
|
+
});
|
|
87
|
+
if (this[kCompleted]) return;
|
|
88
|
+
|
|
89
|
+
this._debug(`expect ${info.description}`);
|
|
90
|
+
|
|
91
|
+
const broker = this.broker;
|
|
92
|
+
broker.subscribeTmp('api', `activity.#.${executionId}`, this._onApiMessage.bind(this), {
|
|
93
|
+
noAck: true,
|
|
94
|
+
consumerTag: `_api-${executionId}`
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
if (!this.environment.settings.strict) {
|
|
98
|
+
const expectRoutingKey = `execute.throw.${executionId}`;
|
|
99
|
+
broker.subscribeTmp('execution', expectRoutingKey, this._onErrorMessage.bind(this), {
|
|
100
|
+
noAck: true,
|
|
101
|
+
consumerTag: `_onerror-${executionId}`
|
|
84
102
|
});
|
|
103
|
+
broker.publish('execution', 'execute.expect', (0, _messageHelper.cloneContent)(executeContent, {
|
|
104
|
+
expectRoutingKey,
|
|
105
|
+
expect: { ...info.message
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
if (this[kCompleted]) return this._stop();
|
|
109
|
+
}
|
|
85
110
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (!error) return;
|
|
90
|
-
if ('' + error.code !== '' + referenceMessage.code) return;
|
|
91
|
-
return catchError(routingKey, message, error);
|
|
111
|
+
const waitContent = (0, _messageHelper.cloneContent)(executeContent, {
|
|
112
|
+
executionId: parentExecutionId,
|
|
113
|
+
expect: { ...info.message
|
|
92
114
|
}
|
|
115
|
+
});
|
|
116
|
+
waitContent.parent = (0, _messageHelper.shiftParent)(parent);
|
|
117
|
+
broker.publish('event', 'activity.wait', waitContent);
|
|
118
|
+
};
|
|
93
119
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
120
|
+
proto.executeThrow = function executeThrow(executeMessage) {
|
|
121
|
+
const executeContent = executeMessage.content;
|
|
122
|
+
const {
|
|
123
|
+
executionId,
|
|
124
|
+
parent
|
|
125
|
+
} = executeContent;
|
|
100
126
|
|
|
101
|
-
|
|
102
|
-
completed = true;
|
|
103
|
-
stop();
|
|
104
|
-
debug(`<${executionId} (${id})> caught ${description}`);
|
|
105
|
-
broker.publish('event', 'activity.catch', { ...messageContent,
|
|
106
|
-
source: {
|
|
107
|
-
id: message.content.id,
|
|
108
|
-
type: message.content.type,
|
|
109
|
-
executionId: message.content.executionId
|
|
110
|
-
},
|
|
111
|
-
error,
|
|
112
|
-
executionId: parentExecutionId,
|
|
113
|
-
parent: (0, _messageHelper.shiftParent)(executeMessage.content.parent)
|
|
114
|
-
}, {
|
|
115
|
-
type: 'catch'
|
|
116
|
-
});
|
|
117
|
-
return broker.publish('execution', 'execute.completed', { ...messageContent,
|
|
118
|
-
output: error,
|
|
119
|
-
cancelActivity: true,
|
|
120
|
-
state: 'catch'
|
|
121
|
-
});
|
|
122
|
-
}
|
|
127
|
+
const info = this._getReferenceInfo(executeMessage);
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
}
|
|
129
|
+
this.logger.debug(`<${executionId} (${this.activity.id})> throw ${info.description}`);
|
|
130
|
+
const broker = this.broker;
|
|
131
|
+
const throwContent = (0, _messageHelper.cloneContent)(executeContent, {
|
|
132
|
+
executionId: parent.executionId,
|
|
133
|
+
message: { ...info.message
|
|
134
|
+
},
|
|
135
|
+
state: 'throw'
|
|
136
|
+
});
|
|
137
|
+
throwContent.parent = (0, _messageHelper.shiftParent)(parent);
|
|
138
|
+
this.broker.publish('event', 'activity.throw', throwContent, {
|
|
139
|
+
type: 'throw',
|
|
140
|
+
delegate: true
|
|
141
|
+
});
|
|
142
|
+
return broker.publish('execution', 'execute.completed', (0, _messageHelper.cloneContent)(executeContent, {
|
|
143
|
+
message: { ...info.message
|
|
141
144
|
}
|
|
145
|
+
}));
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
proto._onErrorMessage = function onErrorMessage(routingKey, message) {
|
|
149
|
+
const error = message.content.error;
|
|
150
|
+
if (!this[kReferenceElement]) return this._catchError(routingKey, message, error);
|
|
151
|
+
if (!error) return;
|
|
152
|
+
const info = this[kReferenceInfo];
|
|
153
|
+
if ('' + error.code !== '' + info.message.code) return;
|
|
154
|
+
return this._catchError(routingKey, message, error);
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
proto._onThrowApiMessage = function onThrowApiMessage(routingKey, message) {
|
|
158
|
+
const error = message.content.message;
|
|
159
|
+
if (!this[kReferenceElement]) return this._catchError(routingKey, message, error);
|
|
160
|
+
const info = this[kReferenceInfo];
|
|
161
|
+
if (info.message.id !== (error && error.id)) return;
|
|
162
|
+
return this._catchError(routingKey, message, error);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
proto._catchError = function catchError(routingKey, message, error) {
|
|
166
|
+
this[kCompleted] = true;
|
|
167
|
+
|
|
168
|
+
this._stop();
|
|
169
|
+
|
|
170
|
+
this._debug(`caught ${this[kReferenceInfo].description}`);
|
|
171
|
+
|
|
172
|
+
const executeContent = this[kExecuteMessage].content;
|
|
173
|
+
const parent = executeContent.parent;
|
|
174
|
+
const catchContent = (0, _messageHelper.cloneContent)(executeContent, {
|
|
175
|
+
source: {
|
|
176
|
+
id: message.content.id,
|
|
177
|
+
type: message.content.type,
|
|
178
|
+
executionId: message.content.executionId
|
|
179
|
+
},
|
|
180
|
+
error,
|
|
181
|
+
executionId: parent.executionId
|
|
182
|
+
});
|
|
183
|
+
catchContent.parent = (0, _messageHelper.shiftParent)(parent);
|
|
184
|
+
const broker = this.broker;
|
|
185
|
+
broker.publish('event', 'activity.catch', catchContent, {
|
|
186
|
+
type: 'catch'
|
|
187
|
+
});
|
|
188
|
+
return broker.publish('execution', 'execute.completed', (0, _messageHelper.cloneContent)(executeContent, {
|
|
189
|
+
output: error,
|
|
190
|
+
cancelActivity: true,
|
|
191
|
+
state: 'catch'
|
|
192
|
+
}));
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
proto._onApiMessage = function onApiMessage(routingKey, message) {
|
|
196
|
+
const messageType = message.properties.type;
|
|
197
|
+
|
|
198
|
+
switch (messageType) {
|
|
199
|
+
case 'discard':
|
|
200
|
+
{
|
|
201
|
+
this[kCompleted] = true;
|
|
202
|
+
|
|
203
|
+
this._stop();
|
|
204
|
+
|
|
205
|
+
return this.broker.publish('execution', 'execute.discard', (0, _messageHelper.cloneContent)(this[kExecuteMessage].content));
|
|
206
|
+
}
|
|
142
207
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
broker.cancel(`_api-${executionId}`);
|
|
147
|
-
broker.purgeQueue(errorQueueName);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
208
|
+
case 'stop':
|
|
209
|
+
{
|
|
210
|
+
this._stop();
|
|
150
211
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const {
|
|
154
|
-
executionId,
|
|
155
|
-
parent
|
|
156
|
-
} = messageContent;
|
|
157
|
-
const parentExecutionId = parent && parent.executionId;
|
|
158
|
-
const {
|
|
159
|
-
message: referenceMessage,
|
|
160
|
-
description
|
|
161
|
-
} = resolveMessage(executeMessage);
|
|
162
|
-
debug(`<${executionId} (${id})> throw ${description}`);
|
|
163
|
-
broker.publish('event', 'activity.throw', { ...(0, _messageHelper.cloneContent)(messageContent),
|
|
164
|
-
executionId: parentExecutionId,
|
|
165
|
-
parent: (0, _messageHelper.shiftParent)(parent),
|
|
166
|
-
message: { ...referenceMessage
|
|
167
|
-
},
|
|
168
|
-
state: 'throw'
|
|
169
|
-
}, {
|
|
170
|
-
type: 'throw',
|
|
171
|
-
delegate: true
|
|
172
|
-
});
|
|
173
|
-
return broker.publish('execution', 'execute.completed', { ...messageContent,
|
|
174
|
-
message: referenceMessage
|
|
175
|
-
});
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
176
214
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
proto._stop = function stop() {
|
|
218
|
+
const broker = this.broker,
|
|
219
|
+
executionId = this.executionId;
|
|
220
|
+
broker.cancel(`_onthrow-${executionId}`);
|
|
221
|
+
broker.cancel(`_onerror-${executionId}`);
|
|
222
|
+
broker.cancel(`_api-${executionId}`);
|
|
223
|
+
this[kMessageQ].purge();
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
proto._getReferenceInfo = function getReferenceInfo(message) {
|
|
227
|
+
const referenceElement = this[kReferenceElement];
|
|
228
|
+
|
|
229
|
+
if (!referenceElement) {
|
|
230
|
+
return {
|
|
231
|
+
message: { ...this.reference
|
|
232
|
+
},
|
|
233
|
+
description: 'anonymous error'
|
|
189
234
|
};
|
|
190
|
-
result.description = `${result.message.name} <${result.message.id}>`;
|
|
191
|
-
if (result.message.code) result.description += ` code ${result.message.code}`;
|
|
192
|
-
return result;
|
|
193
235
|
}
|
|
194
236
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
}
|
|
237
|
+
const result = {
|
|
238
|
+
message: referenceElement.resolve(message)
|
|
239
|
+
};
|
|
240
|
+
result.description = `${result.message.name} <${result.message.id}>`;
|
|
241
|
+
if (result.message.code) result.description += ` code ${result.message.code}`;
|
|
242
|
+
return result;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
proto._debug = function debug(msg) {
|
|
246
|
+
this.logger.debug(`<${this.executionId} (${this.activity.id})> ${msg}`);
|
|
247
|
+
};
|