bpmn-elements 7.0.0 → 8.0.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/CHANGELOG.md +13 -0
- package/dist/src/Context.js +50 -40
- package/dist/src/Environment.js +39 -19
- package/dist/src/MessageFormatter.js +11 -11
- package/dist/src/activity/Activity.js +91 -91
- package/dist/src/activity/ActivityExecution.js +35 -35
- package/dist/src/definition/Definition.js +50 -50
- package/dist/src/definition/DefinitionExecution.js +114 -125
- package/dist/src/eventDefinitions/CancelEventDefinition.js +16 -16
- package/dist/src/eventDefinitions/CompensateEventDefinition.js +24 -24
- package/dist/src/eventDefinitions/ConditionalEventDefinition.js +8 -8
- package/dist/src/eventDefinitions/ErrorEventDefinition.js +26 -26
- package/dist/src/eventDefinitions/EscalationEventDefinition.js +20 -20
- package/dist/src/eventDefinitions/EventDefinitionExecution.js +14 -14
- package/dist/src/eventDefinitions/LinkEventDefinition.js +15 -15
- package/dist/src/eventDefinitions/MessageEventDefinition.js +23 -23
- package/dist/src/eventDefinitions/SignalEventDefinition.js +24 -24
- package/dist/src/eventDefinitions/TimerEventDefinition.js +21 -21
- package/dist/src/events/BoundaryEvent.js +20 -20
- package/dist/src/events/EndEvent.js +3 -3
- package/dist/src/events/IntermediateCatchEvent.js +3 -3
- package/dist/src/events/IntermediateThrowEvent.js +3 -3
- package/dist/src/events/StartEvent.js +9 -9
- package/dist/src/flows/Association.js +7 -7
- package/dist/src/flows/MessageFlow.js +9 -9
- package/dist/src/flows/SequenceFlow.js +7 -7
- package/dist/src/gateways/EventBasedGateway.js +11 -11
- package/dist/src/io/InputOutputSpecification.js +4 -4
- package/dist/src/io/Properties.js +9 -9
- package/dist/src/process/Process.js +64 -61
- package/dist/src/process/ProcessExecution.js +93 -90
- package/dist/src/tasks/ReceiveTask.js +16 -16
- package/dist/src/tasks/SubProcess.js +16 -18
- package/package.json +9 -9
- package/src/Context.js +48 -40
- package/src/Environment.js +48 -20
- package/src/EventBroker.js +1 -1
- package/src/MessageFormatter.js +11 -11
- package/src/activity/Activity.js +91 -91
- package/src/activity/ActivityExecution.js +34 -34
- package/src/definition/Definition.js +51 -50
- package/src/definition/DefinitionExecution.js +111 -113
- package/src/eventDefinitions/CancelEventDefinition.js +16 -16
- package/src/eventDefinitions/CompensateEventDefinition.js +25 -24
- package/src/eventDefinitions/ConditionalEventDefinition.js +8 -8
- package/src/eventDefinitions/ErrorEventDefinition.js +26 -26
- package/src/eventDefinitions/EscalationEventDefinition.js +20 -20
- package/src/eventDefinitions/EventDefinitionExecution.js +14 -14
- package/src/eventDefinitions/LinkEventDefinition.js +15 -15
- package/src/eventDefinitions/MessageEventDefinition.js +23 -23
- package/src/eventDefinitions/SignalEventDefinition.js +24 -24
- package/src/eventDefinitions/TimerEventDefinition.js +21 -21
- package/src/events/BoundaryEvent.js +20 -20
- package/src/events/EndEvent.js +3 -3
- package/src/events/IntermediateCatchEvent.js +3 -3
- package/src/events/IntermediateThrowEvent.js +3 -3
- package/src/events/StartEvent.js +9 -9
- package/src/flows/Association.js +7 -7
- package/src/flows/MessageFlow.js +9 -9
- package/src/flows/SequenceFlow.js +7 -7
- package/src/gateways/EventBasedGateway.js +11 -11
- package/src/io/BpmnIO.js +5 -1
- package/src/io/InputOutputSpecification.js +4 -4
- package/src/io/Properties.js +9 -9
- package/src/process/Process.js +62 -58
- package/src/process/ProcessExecution.js +86 -88
- package/src/tasks/ReceiveTask.js +16 -16
- package/src/tasks/SubProcess.js +16 -16
package/src/flows/Association.js
CHANGED
|
@@ -3,7 +3,7 @@ import {EventBroker} from '../EventBroker';
|
|
|
3
3
|
import {FlowApi} from '../Api';
|
|
4
4
|
import {getUniqueId} from '../shared';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const kCounters = Symbol.for('counters');
|
|
7
7
|
|
|
8
8
|
export default function Association(associationDef, {environment}) {
|
|
9
9
|
const {id, type = 'association', name, parent, targetId, sourceId, behaviour = {}} = associationDef;
|
|
@@ -19,7 +19,7 @@ export default function Association(associationDef, {environment}) {
|
|
|
19
19
|
this.environment = environment;
|
|
20
20
|
const logger = this.logger = environment.Logger(type.toLowerCase());
|
|
21
21
|
|
|
22
|
-
this[
|
|
22
|
+
this[kCounters] = {
|
|
23
23
|
complete: 0,
|
|
24
24
|
take: 0,
|
|
25
25
|
discard: 0,
|
|
@@ -39,13 +39,13 @@ const proto = Association.prototype;
|
|
|
39
39
|
Object.defineProperty(proto, 'counters', {
|
|
40
40
|
enumerable: true,
|
|
41
41
|
get() {
|
|
42
|
-
return {...this[
|
|
42
|
+
return {...this[kCounters]};
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
proto.take = function take(content = {}) {
|
|
47
47
|
this.logger.debug(`<${this.id}> take target <${this.targetId}>`);
|
|
48
|
-
++this[
|
|
48
|
+
++this[kCounters].take;
|
|
49
49
|
|
|
50
50
|
this._publishEvent('take', content);
|
|
51
51
|
|
|
@@ -54,7 +54,7 @@ proto.take = function take(content = {}) {
|
|
|
54
54
|
|
|
55
55
|
proto.discard = function discard(content = {}) {
|
|
56
56
|
this.logger.debug(`<${this.id}> discard target <${this.targetId}>`);
|
|
57
|
-
++this[
|
|
57
|
+
++this[kCounters].discard;
|
|
58
58
|
|
|
59
59
|
this._publishEvent('discard', content);
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ proto.discard = function discard(content = {}) {
|
|
|
63
63
|
|
|
64
64
|
proto.complete = function complete(content = {}) {
|
|
65
65
|
this.logger.debug(`<${this.id}> completed target <${this.targetId}>`);
|
|
66
|
-
++this[
|
|
66
|
+
++this[kCounters].complete;
|
|
67
67
|
|
|
68
68
|
this._publishEvent('complete', content);
|
|
69
69
|
|
|
@@ -78,7 +78,7 @@ proto.getState = function getState() {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
proto.recover = function recover(state) {
|
|
81
|
-
Object.assign(this[
|
|
81
|
+
Object.assign(this[kCounters], state.counters);
|
|
82
82
|
this.broker.recover(state.broker);
|
|
83
83
|
};
|
|
84
84
|
|
package/src/flows/MessageFlow.js
CHANGED
|
@@ -2,8 +2,8 @@ import {brokerSafeId} from '../shared';
|
|
|
2
2
|
import {cloneParent} from '../messageHelper';
|
|
3
3
|
import {MessageFlowBroker} from '../EventBroker';
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const kCounters = Symbol.for('counters');
|
|
6
|
+
const kSourceElement = Symbol.for('sourceElement');
|
|
7
7
|
|
|
8
8
|
export default function MessageFlow(flowDef, context) {
|
|
9
9
|
const {id, type = 'messageflow', name, target, source, behaviour, parent} = flowDef;
|
|
@@ -18,7 +18,7 @@ export default function MessageFlow(flowDef, context) {
|
|
|
18
18
|
this.environment = context.environment;
|
|
19
19
|
this.context = context;
|
|
20
20
|
|
|
21
|
-
this[
|
|
21
|
+
this[kCounters] = {
|
|
22
22
|
messages: 0,
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ export default function MessageFlow(flowDef, context) {
|
|
|
29
29
|
this.emit = emit;
|
|
30
30
|
this.waitFor = waitFor;
|
|
31
31
|
|
|
32
|
-
this[
|
|
32
|
+
this[kSourceElement] = context.getActivityById(source.id) || context.getProcessById(source.processId);
|
|
33
33
|
this.logger = context.environment.Logger(type.toLowerCase());
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -38,7 +38,7 @@ const proto = MessageFlow.prototype;
|
|
|
38
38
|
Object.defineProperty(proto, 'counters', {
|
|
39
39
|
enumerable: true,
|
|
40
40
|
get() {
|
|
41
|
-
return {...this[
|
|
41
|
+
return {...this[kCounters]};
|
|
42
42
|
},
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -51,7 +51,7 @@ proto.getState = function getState() {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
proto.recover = function recover(state) {
|
|
54
|
-
Object.assign(this[
|
|
54
|
+
Object.assign(this[kCounters], state.counters);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
proto.getApi = function getApi() {
|
|
@@ -59,21 +59,21 @@ proto.getApi = function getApi() {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
proto.activate = function activate() {
|
|
62
|
-
const sourceElement = this[
|
|
62
|
+
const sourceElement = this[kSourceElement];
|
|
63
63
|
const safeId = brokerSafeId(this.id);
|
|
64
64
|
sourceElement.on('message', this.deactivate.bind(this), {consumerTag: `_message-on-message-${safeId}`});
|
|
65
65
|
sourceElement.on('end', this._onSourceEnd.bind(this), {consumerTag: `_message-on-end-${safeId}`});
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
proto.deactivate = function deactivate() {
|
|
69
|
-
const sourceElement = this[
|
|
69
|
+
const sourceElement = this[kSourceElement];
|
|
70
70
|
const safeId = brokerSafeId(this.id);
|
|
71
71
|
sourceElement.broker.cancel(`_message-on-end-${safeId}`);
|
|
72
72
|
sourceElement.broker.cancel(`_message-on-message-${safeId}`);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
proto._onSourceEnd = function onSourceEnd({content}) {
|
|
76
|
-
++this[
|
|
76
|
+
++this[kCounters].messages;
|
|
77
77
|
const source = this.source;
|
|
78
78
|
const target = this.target;
|
|
79
79
|
this.logger.debug(`<${this.id}> sending message from <${source.processId}.${source.id}> to <${target.id ? `${target.processId}.${target.id}` : target.processId}>`);
|
|
@@ -4,7 +4,7 @@ import {getUniqueId} from '../shared';
|
|
|
4
4
|
import {EventBroker} from '../EventBroker';
|
|
5
5
|
import {FlowApi} from '../Api';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const kCounters = Symbol.for('counters');
|
|
8
8
|
|
|
9
9
|
export default SequenceFlow;
|
|
10
10
|
|
|
@@ -23,7 +23,7 @@ function SequenceFlow(flowDef, {environment}) {
|
|
|
23
23
|
this.environment = environment;
|
|
24
24
|
const logger = this.logger = environment.Logger(type.toLowerCase());
|
|
25
25
|
|
|
26
|
-
this[
|
|
26
|
+
this[kCounters] = {
|
|
27
27
|
looped: 0,
|
|
28
28
|
take: 0,
|
|
29
29
|
discard: 0,
|
|
@@ -45,7 +45,7 @@ const proto = SequenceFlow.prototype;
|
|
|
45
45
|
Object.defineProperty(proto, 'counters', {
|
|
46
46
|
enumerable: true,
|
|
47
47
|
get() {
|
|
48
|
-
return {...this[
|
|
48
|
+
return {...this[kCounters]};
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ proto.take = function take(content = {}) {
|
|
|
55
55
|
const {sequenceId} = content;
|
|
56
56
|
|
|
57
57
|
this.logger.debug(`<${sequenceId} (${this.id})> take, target <${this.targetId}>`);
|
|
58
|
-
++this[
|
|
58
|
+
++this[kCounters].take;
|
|
59
59
|
|
|
60
60
|
this._publishEvent('take', content);
|
|
61
61
|
|
|
@@ -66,7 +66,7 @@ proto.discard = function discard(content = {}) {
|
|
|
66
66
|
const {sequenceId = getUniqueId(this.id)} = content;
|
|
67
67
|
const discardSequence = content.discardSequence = (content.discardSequence || []).slice();
|
|
68
68
|
if (discardSequence.indexOf(this.targetId) > -1) {
|
|
69
|
-
++this[
|
|
69
|
+
++this[kCounters].looped;
|
|
70
70
|
this.logger.debug(`<${this.id}> discard loop detected <${this.sourceId}> -> <${this.targetId}>. Stop.`);
|
|
71
71
|
return this._publishEvent('looped', content);
|
|
72
72
|
}
|
|
@@ -74,7 +74,7 @@ proto.discard = function discard(content = {}) {
|
|
|
74
74
|
discardSequence.push(this.sourceId);
|
|
75
75
|
|
|
76
76
|
this.logger.debug(`<${sequenceId} (${this.id})> discard, target <${this.targetId}>`);
|
|
77
|
-
++this[
|
|
77
|
+
++this[kCounters].discard;
|
|
78
78
|
this._publishEvent('discard', content);
|
|
79
79
|
};
|
|
80
80
|
|
|
@@ -86,7 +86,7 @@ proto.getState = function getState() {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
proto.recover = function recover(state) {
|
|
89
|
-
Object.assign(this[
|
|
89
|
+
Object.assign(this[kCounters], state.counters);
|
|
90
90
|
this.broker.recover(state.broker);
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Activity from '../activity/Activity';
|
|
2
2
|
import {cloneContent} from '../messageHelper';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const kCompleted = Symbol.for('completed');
|
|
5
|
+
const kTargets = Symbol.for('targets');
|
|
6
6
|
|
|
7
7
|
export default function EventBasedGateway(activityDef, context) {
|
|
8
8
|
return new Activity(EventBasedGatewayBehaviour, activityDef, context);
|
|
@@ -14,27 +14,27 @@ export function EventBasedGatewayBehaviour(activity, context) {
|
|
|
14
14
|
this.activity = activity;
|
|
15
15
|
this.broker = activity.broker;
|
|
16
16
|
this.context = context;
|
|
17
|
-
this[
|
|
17
|
+
this[kTargets] = activity.outbound.map((flow) => context.getActivityById(flow.targetId));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
EventBasedGatewayBehaviour.prototype.execute = function execute(executeMessage) {
|
|
21
21
|
const executeContent = executeMessage.content;
|
|
22
22
|
const {executionId, outbound = [], outboundTaken} = executeContent;
|
|
23
23
|
|
|
24
|
-
const targets = this[
|
|
25
|
-
this[
|
|
24
|
+
const targets = this[kTargets];
|
|
25
|
+
this[kCompleted] = false;
|
|
26
26
|
if (!targets.length) return this._complete(executeContent);
|
|
27
27
|
|
|
28
28
|
for (const flow of this.activity.outbound) {
|
|
29
29
|
outbound.push({id: flow.id, action: 'take'});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
if (!this[
|
|
32
|
+
if (!this[kCompleted] && outboundTaken) return;
|
|
33
33
|
|
|
34
34
|
const targetConsumerTag = `_gateway-listener-${this.id}`;
|
|
35
35
|
|
|
36
36
|
const onTargetCompleted = this._onTargetCompleted.bind(this, executeMessage);
|
|
37
|
-
for (const target of this[
|
|
37
|
+
for (const target of this[kTargets]) {
|
|
38
38
|
target.broker.subscribeOnce('event', 'activity.end', onTargetCompleted, {consumerTag: targetConsumerTag});
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ EventBasedGatewayBehaviour.prototype.execute = function execute(executeMessage)
|
|
|
44
44
|
consumerTag: '_api-stop-execution',
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
this[
|
|
47
|
+
this[kCompleted] = false;
|
|
48
48
|
if (!executeMessage.fields.redelivered) return broker.publish('execution', 'execute.outbound.take', cloneContent(executeContent, {outboundTaken: true}));
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -55,7 +55,7 @@ EventBasedGatewayBehaviour.prototype._onTargetCompleted = function onTargetCompl
|
|
|
55
55
|
this.activity.logger.debug(`<${executionId} (${this.id})> <${targetExecutionId}> completed run, discarding the rest`);
|
|
56
56
|
|
|
57
57
|
this._stop();
|
|
58
|
-
for (const target of this[
|
|
58
|
+
for (const target of this[kTargets]) {
|
|
59
59
|
if (target === owner) continue;
|
|
60
60
|
target.discard();
|
|
61
61
|
}
|
|
@@ -72,13 +72,13 @@ EventBasedGatewayBehaviour.prototype._onTargetCompleted = function onTargetCompl
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
EventBasedGatewayBehaviour.prototype._complete = function complete(completedContent) {
|
|
75
|
-
this[
|
|
75
|
+
this[kCompleted] = true;
|
|
76
76
|
this.broker.publish('execution', 'execute.completed', cloneContent(completedContent));
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
EventBasedGatewayBehaviour.prototype._stop = function stop() {
|
|
80
80
|
const targetConsumerTag = `_gateway-listener-${this.id}`;
|
|
81
|
-
for (const target of this[
|
|
81
|
+
for (const target of this[kTargets]) target.broker.cancel(targetConsumerTag);
|
|
82
82
|
this.broker.cancel('_api-stop-execution');
|
|
83
83
|
};
|
|
84
84
|
|
package/src/io/BpmnIO.js
CHANGED
|
@@ -2,7 +2,11 @@ export default function BpmnIO(activity, context) {
|
|
|
2
2
|
this.activity = activity;
|
|
3
3
|
this.context = context;
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const {
|
|
6
|
+
ioSpecification: ioSpecificationDef,
|
|
7
|
+
properties: propertiesDef,
|
|
8
|
+
} = activity.behaviour;
|
|
9
|
+
|
|
6
10
|
this.specification = ioSpecificationDef && new ioSpecificationDef.Behaviour(activity, ioSpecificationDef, context);
|
|
7
11
|
this.properties = propertiesDef && new propertiesDef.Behaviour(activity, propertiesDef, context);
|
|
8
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import getPropertyValue from '../getPropertyValue';
|
|
2
2
|
import {brokerSafeId} from '../shared';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const kConsuming = Symbol.for('consuming');
|
|
5
5
|
|
|
6
6
|
export default function IoSpecification(activity, ioSpecificationDef, context) {
|
|
7
7
|
const {id, type = 'iospecification', behaviour = {}} = ioSpecificationDef;
|
|
@@ -16,12 +16,12 @@ export default function IoSpecification(activity, ioSpecificationDef, context) {
|
|
|
16
16
|
const proto = IoSpecification.prototype;
|
|
17
17
|
|
|
18
18
|
proto.activate = function activate() {
|
|
19
|
-
if (this[
|
|
20
|
-
this[
|
|
19
|
+
if (this[kConsuming]) return;
|
|
20
|
+
this[kConsuming] = this.broker.subscribeTmp('event', 'activity.#', this._onActivityEvent.bind(this), {noAck: true});
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
proto.deactivate = function deactivate() {
|
|
24
|
-
if (this[
|
|
24
|
+
if (this[kConsuming]) this[kConsuming] = this[kConsuming].cancel();
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
proto._onActivityEvent = function onActivityEvent(routingKey, message) {
|
package/src/io/Properties.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import getPropertyValue from '../getPropertyValue';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const
|
|
3
|
+
const kProperties = Symbol.for('properties');
|
|
4
|
+
const kConsuming = Symbol.for('consuming');
|
|
5
5
|
|
|
6
6
|
export default function Properties(activity, propertiesDef, context) {
|
|
7
7
|
this.activity = activity;
|
|
8
8
|
this.broker = activity.broker;
|
|
9
9
|
|
|
10
|
-
const props = this[
|
|
10
|
+
const props = this[kProperties] = {
|
|
11
11
|
properties: [],
|
|
12
12
|
dataInputObjects: [],
|
|
13
13
|
dataOutputObjects: [],
|
|
@@ -61,17 +61,17 @@ export default function Properties(activity, propertiesDef, context) {
|
|
|
61
61
|
const proto = Properties.prototype;
|
|
62
62
|
|
|
63
63
|
proto.activate = function activate(message) {
|
|
64
|
-
if (this[
|
|
64
|
+
if (this[kConsuming]) return;
|
|
65
65
|
|
|
66
66
|
if (message.fields.redelivered && message.content.properties) {
|
|
67
67
|
this._onActivityEvent('activity.extension.resume', message);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
this[
|
|
70
|
+
this[kConsuming] = this.broker.subscribeTmp('event', 'activity.#', this._onActivityEvent.bind(this), {noAck: true});
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
proto.deactivate = function deactivate() {
|
|
74
|
-
if (this[
|
|
74
|
+
if (this[kConsuming]) this[kConsuming] = this[kConsuming].cancel();
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
proto._onActivityEvent = function onActivityEvent(routingKey, message) {
|
|
@@ -91,7 +91,7 @@ proto._onActivityEvent = function onActivityEvent(routingKey, message) {
|
|
|
91
91
|
proto._formatOnEnter = function formatOnEnter(message) {
|
|
92
92
|
const startRoutingKey = 'run.enter.bpmn-properties';
|
|
93
93
|
|
|
94
|
-
const dataInputObjects = this[
|
|
94
|
+
const dataInputObjects = this[kProperties].dataInputObjects;
|
|
95
95
|
const broker = this.broker;
|
|
96
96
|
if (!dataInputObjects.length) {
|
|
97
97
|
return broker.getQueue('format-run-q').queueMessage({routingKey: startRoutingKey}, {
|
|
@@ -118,7 +118,7 @@ proto._formatOnComplete = function formatOnComplete(message) {
|
|
|
118
118
|
const messageOutput = getPropertyValue(message, 'content.output.properties') || {};
|
|
119
119
|
const outputProperties = this._getProperties(message, messageOutput);
|
|
120
120
|
|
|
121
|
-
const dataOutputObjects = this[
|
|
121
|
+
const dataOutputObjects = this[kProperties].dataOutputObjects;
|
|
122
122
|
const broker = this.broker;
|
|
123
123
|
if (!dataOutputObjects.length) {
|
|
124
124
|
return broker.getQueue('format-run-q').queueMessage({routingKey: startRoutingKey}, {
|
|
@@ -146,7 +146,7 @@ proto._getProperties = function getProperties(message, values) {
|
|
|
146
146
|
response = {...message.content.properties};
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
for (const {id, type, name} of this[
|
|
149
|
+
for (const {id, type, name} of this[kProperties].properties) {
|
|
150
150
|
if (!(id in response)) {
|
|
151
151
|
response[id] = {id, type, name};
|
|
152
152
|
}
|