bpmn-elements 13.1.0 → 13.1.2
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
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
# 13.1.2
|
|
5
|
+
|
|
6
|
+
- fix another lingering leave message. Now it was the definition execution that kept `process.leave` messages around for sentimental reasons
|
|
7
|
+
|
|
8
|
+
# 13.1.1
|
|
9
|
+
|
|
10
|
+
- found the real reason behind ever groving state size - `activity.leave` messages were not acked by process execution. Doh!
|
|
11
|
+
|
|
4
12
|
# 13.1.0
|
|
5
13
|
|
|
6
14
|
- introduce `disableTrackState` setting. Tracking of elements is done by counters, e.g. activity taken or discarded, sequence flow taken and discarded. Counters are saved when getting state. If you run really big flows the state will keep all elements just to be able to recover the number of times an element has been touched. Needless to say it the state will grow out of it's comfort zone. Setting `disableTrackState` to true will only return state for elements that are actually running
|
|
@@ -412,6 +412,7 @@ DefinitionExecution.prototype._onProcessMessage = function onProcessMessage(rout
|
|
|
412
412
|
}
|
|
413
413
|
case 'process.error':
|
|
414
414
|
{
|
|
415
|
+
// message.ack();
|
|
415
416
|
if (inbound && inbound.length) {
|
|
416
417
|
const calledFrom = inbound[0];
|
|
417
418
|
this._getProcessApi({
|
|
@@ -454,13 +455,13 @@ DefinitionExecution.prototype._onProcessCompleted = function onProcessCompleted(
|
|
|
454
455
|
type,
|
|
455
456
|
inbound
|
|
456
457
|
} = message.content;
|
|
458
|
+
message.ack();
|
|
457
459
|
this._debug(`left <${executionId} (${id})> (${type}), pending runs ${this.postponedCount}`);
|
|
458
460
|
if (inbound && inbound.length) {
|
|
459
461
|
const bp = this._removeProcessByExecutionId(executionId);
|
|
460
462
|
this._deactivateProcess(bp);
|
|
461
463
|
}
|
|
462
464
|
if (!this.postponedCount) {
|
|
463
|
-
message.ack();
|
|
464
465
|
this._complete('completed');
|
|
465
466
|
}
|
|
466
467
|
};
|
|
@@ -641,6 +641,7 @@ ProcessExecution.prototype._onChildCompleted = function onChildCompleted(message
|
|
|
641
641
|
message.ack();
|
|
642
642
|
return this._complete('completed');
|
|
643
643
|
}
|
|
644
|
+
message.ack();
|
|
644
645
|
this._debug(`left <${id}> (${type}), pending runs ${postponedCount}, ${postponed.map(a => a.content.id).join(',')}`);
|
|
645
646
|
if (postponedCount && postponedCount === detachedActivities.length) {
|
|
646
647
|
return this[kActivityQ].queueMessage({
|
package/package.json
CHANGED
|
@@ -422,6 +422,7 @@ DefinitionExecution.prototype._onProcessMessage = function onProcessMessage(rout
|
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
case 'process.error': {
|
|
425
|
+
// message.ack();
|
|
425
426
|
if (inbound && inbound.length) {
|
|
426
427
|
const calledFrom = inbound[0];
|
|
427
428
|
|
|
@@ -458,6 +459,7 @@ DefinitionExecution.prototype._onProcessCompleted = function onProcessCompleted(
|
|
|
458
459
|
if (message.fields.redelivered) return message.ack();
|
|
459
460
|
|
|
460
461
|
const {id, executionId, type, inbound} = message.content;
|
|
462
|
+
message.ack();
|
|
461
463
|
this._debug(`left <${executionId} (${id})> (${type}), pending runs ${this.postponedCount}`);
|
|
462
464
|
|
|
463
465
|
if (inbound && inbound.length) {
|
|
@@ -466,7 +468,6 @@ DefinitionExecution.prototype._onProcessCompleted = function onProcessCompleted(
|
|
|
466
468
|
}
|
|
467
469
|
|
|
468
470
|
if (!this.postponedCount) {
|
|
469
|
-
message.ack();
|
|
470
471
|
this._complete('completed');
|
|
471
472
|
}
|
|
472
473
|
};
|
|
@@ -635,6 +635,7 @@ ProcessExecution.prototype._onChildCompleted = function onChildCompleted(message
|
|
|
635
635
|
return this._complete('completed');
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
message.ack();
|
|
638
639
|
this._debug(`left <${id}> (${type}), pending runs ${postponedCount}, ${postponed.map((a) => a.content.id).join(',')}`);
|
|
639
640
|
|
|
640
641
|
if (postponedCount && postponedCount === detachedActivities.length) {
|