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