bpmn-elements 13.1.1 → 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,9 +1,13 @@
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
+
4
8
  # 13.1.1
5
9
 
6
- - found the real reason for massive state size - `activity.leave` messages where not acked by process execution. Doh!
10
+ - found the real reason behind ever groving state size - `activity.leave` messages were not acked by process execution. Doh!
7
11
 
8
12
  # 13.1.0
9
13
 
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-elements",
3
- "version": "13.1.1",
3
+ "version": "13.1.2",
4
4
  "description": "Executable workflow elements based on BPMN 2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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
  };