bpmn-elements 8.2.3 → 8.2.4
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/dist/src/EventBroker.js
CHANGED
|
@@ -15,7 +15,13 @@ function ActivityBroker(activity) {
|
|
|
15
15
|
return executionBroker;
|
|
16
16
|
}
|
|
17
17
|
function ProcessBroker(owner) {
|
|
18
|
-
|
|
18
|
+
const executionBroker = ExecutionBroker(owner, 'process');
|
|
19
|
+
executionBroker.broker.assertQueue('api-q', {
|
|
20
|
+
durable: false,
|
|
21
|
+
autoDelete: false
|
|
22
|
+
});
|
|
23
|
+
executionBroker.broker.bindQueue('api-q', 'api', '#');
|
|
24
|
+
return executionBroker;
|
|
19
25
|
}
|
|
20
26
|
function DefinitionBroker(owner, onBrokerReturn) {
|
|
21
27
|
return ExecutionBroker(owner, 'definition', onBrokerReturn);
|
|
@@ -337,11 +337,19 @@ proto._activate = function activate() {
|
|
|
337
337
|
onMessageFlowEvent,
|
|
338
338
|
onActivityEvent
|
|
339
339
|
} = this[kMessageHandlers];
|
|
340
|
-
this.
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
if (!this.isSubProcess) {
|
|
341
|
+
this.broker.consume('api-q', onApiMessage, {
|
|
342
|
+
noAck: true,
|
|
343
|
+
consumerTag: `_process-api-consumer-${this.executionId}`,
|
|
344
|
+
priority: 200
|
|
345
|
+
});
|
|
346
|
+
} else {
|
|
347
|
+
this.broker.subscribeTmp('api', '#', onApiMessage, {
|
|
348
|
+
noAck: true,
|
|
349
|
+
consumerTag: `_process-api-consumer-${this.executionId}`,
|
|
350
|
+
priority: 200
|
|
351
|
+
});
|
|
352
|
+
}
|
|
345
353
|
const {
|
|
346
354
|
outboundMessageFlows,
|
|
347
355
|
flows,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-elements",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.4",
|
|
4
4
|
"description": "Executable workflow elements based on BPMN 2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"bpmn-moddle": "^7.1.2",
|
|
54
54
|
"camunda-bpmn-moddle": "^6.1.2",
|
|
55
55
|
"chai": "^4.3.7",
|
|
56
|
-
"chronokinesis": "^
|
|
56
|
+
"chronokinesis": "^4.0.1",
|
|
57
57
|
"debug": "^4.3.4",
|
|
58
58
|
"eslint": "^8.29.0",
|
|
59
|
-
"got": "^11.8.
|
|
59
|
+
"got": "^11.8.6",
|
|
60
60
|
"mocha": "^10.1.0",
|
|
61
61
|
"mocha-cakes-2": "^3.3.0",
|
|
62
62
|
"moddle-context-serializer": "^2.1.0",
|
package/src/EventBroker.js
CHANGED
|
@@ -15,7 +15,10 @@ function ActivityBroker(activity) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function ProcessBroker(owner) {
|
|
18
|
-
|
|
18
|
+
const executionBroker = ExecutionBroker(owner, 'process');
|
|
19
|
+
executionBroker.broker.assertQueue('api-q', {durable: false, autoDelete: false});
|
|
20
|
+
executionBroker.broker.bindQueue('api-q', 'api', '#');
|
|
21
|
+
return executionBroker;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
function DefinitionBroker(owner, onBrokerReturn) {
|
|
@@ -347,11 +347,19 @@ proto._start = function start() {
|
|
|
347
347
|
proto._activate = function activate() {
|
|
348
348
|
const {onApiMessage, onMessageFlowEvent, onActivityEvent} = this[kMessageHandlers];
|
|
349
349
|
|
|
350
|
-
this.
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
350
|
+
if (!this.isSubProcess) {
|
|
351
|
+
this.broker.consume('api-q', onApiMessage, {
|
|
352
|
+
noAck: true,
|
|
353
|
+
consumerTag: `_process-api-consumer-${this.executionId}`,
|
|
354
|
+
priority: 200,
|
|
355
|
+
});
|
|
356
|
+
} else {
|
|
357
|
+
this.broker.subscribeTmp('api', '#', onApiMessage, {
|
|
358
|
+
noAck: true,
|
|
359
|
+
consumerTag: `_process-api-consumer-${this.executionId}`,
|
|
360
|
+
priority: 200,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
355
363
|
|
|
356
364
|
const {outboundMessageFlows, flows, associations, startActivities, triggeredByEvent, children} = this[kElements];
|
|
357
365
|
|