bpmn-engine 19.0.1 → 20.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 DELETED
@@ -1,367 +0,0 @@
1
- Changelog
2
- =========
3
-
4
- # 19.0.1
5
-
6
- - Patch [`bpmn-elements`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
7
-
8
- # 19.0.0
9
-
10
- Upgrade is recommended since nasty evergroving state size is fixed.
11
-
12
- - Major bump [`bpmn-elements@13`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
13
- - remove enumerable flag on prototype properties
14
-
15
- # 18.0.0
16
-
17
- Only breaking if multi-instance sub-process executions are inspected after sub-process run is completed. Picture a multi-instance sequential sub-process with a cardinality of 100. One hundred items in a list occupies some memory. That will not stand. Consequently, they are now removed when iteration completes and eventually collected by gc.
18
-
19
- - Major bump [`bpmn-elements@12`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
20
-
21
- # 17.1.1
22
-
23
- - Finetuning Engine.execute and Engine.resume callback arg typization by @bestmazzo
24
- - Patch [`bpmn-elements`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
25
-
26
- # 17.1.0
27
-
28
- - Clear arbitrary engine timers on end and error, not just on stop as it was before
29
- - Bump [`smqp@8`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
30
-
31
- # 17.0.0
32
-
33
- - Even slimmer state from [`bpmn-elements@11`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md). In most cases it should be safe to update, unless you inspect element states for some reason
34
- - Remove node v14 build because it fails with `node:stream/promises` reasons. Still developing and running tests with node v14 since it works on my machine
35
-
36
- # 16.1.0
37
-
38
- - Introduce lane behaviour by upgrading [`bpmn-elements@10.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
39
- - stop apparently returns a promise, adjust type declaration to reflect that
40
-
41
- # 16.0.1
42
-
43
- - Patch [`bpmn-elements@10.0.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
44
-
45
- # 16.0.0
46
-
47
- - Refactor type declarations using types from bpmn-elements, smqp, etc
48
- - add activity status property
49
- - Bump [`bpmn-elements@9.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
50
-
51
- # 15.1.3
52
-
53
- - fix(types): add missing `settings` option
54
-
55
- # 15.1.2
56
-
57
- - Patch [`bpmn-elements@8.2.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
58
-
59
- # 15.1.1
60
-
61
- - Patch [`bpmn-elements@8.2.1`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
62
-
63
- # 15.1.0
64
-
65
- - Bump [`bpmn-elements@8.2.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
66
- - Bump [`smqp@6.1.0`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
67
-
68
- # 15.0.0
69
-
70
- ## Breaking
71
- - Drop node 12 support
72
-
73
- # 14.1.1
74
-
75
- - fix(types): add missing `moddleContext` option
76
-
77
- # 14.1.0
78
-
79
- - Bump [`bpmn-elements@8.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) with support for bound non-interrupting repeating timeCycle
80
-
81
- # 14.0.0
82
-
83
- ## Breaking
84
- - Engine is prototyped, can still be invoked without new
85
- - Bump [`bpmn-elements@8.0.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) with support for bpmn:CallActivity (#97)
86
- - Bump [`smqp@6.0.0`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
87
-
88
- # 13.0.2
89
-
90
- - fix for removing wrong listener on error by @allain
91
-
92
- # 13.0.1
93
-
94
- ## Type definition
95
- - fix: set the correct `Logger` type in `BpmnEngineOptions` by @leon19
96
-
97
- # 13.0.0
98
-
99
- - Slimmer state from [`bpmn-elements@6`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md). In most cases it should be safe to update, unless you inspect the broker states for some reason
100
-
101
- # 12.0.5
102
-
103
- - Prettify and actualize ts types
104
-
105
- # 12.0.4
106
-
107
- Update package.json to reflect what was stated in v12.0.3.
108
-
109
- - And add tests for issue #142
110
-
111
- # 12.0.3
112
-
113
- - Bump [`bpmn-elements@5.2.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) with support for bpmn:Property (#139)
114
- - Bump [`smqp@5`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
115
-
116
- # 12.0.2
117
-
118
- - Bump [`bpmn-elements@5.1.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
119
- - Bump [`smqp@4`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
120
-
121
- # 12.0.1
122
-
123
- - Bump [`bpmn-elements@5.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) with "support" for bpmn:Group and Category. Kinda bugfix for the engine to be honest.
124
-
125
- # 12.0.0
126
-
127
- - Something about loop characteristics in [`bpmn-elements@5.0.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md). Not sure that a major was necessary, but semver is semver. In most cases it should be safe to update, unless you have used parallel loops without collection or cardinality (∞)?
128
-
129
- # 11.4.2
130
-
131
- - Bump [`bpmn-elements@4.4.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
132
- - Add badge [![Coverage Status](https://coveralls.io/repos/github/paed01/bpmn-engine/badge.svg?branch=master)](https://coveralls.io/github/paed01/bpmn-engine?branch=master)
133
-
134
- # 11.4.1
135
-
136
- - Patch `moddle-context-serializer@0.16.1`
137
- - Patch [`bpmn-elements@4.3.4`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
138
-
139
- # 11.4.0
140
-
141
- - Expose execution api on property `engine.execution` since it is basically the same as when returned on events
142
-
143
- # 11.3.2
144
-
145
- - Bump [`bpmn-elements@4.3.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
146
- - Add tests for issue #125
147
-
148
- # 11.3.1
149
-
150
- ## Type definition
151
- - Engine.resume returns Promise that resolves BpmnEngineExecutionApi by @mdwheele
152
-
153
- ## Misc
154
- - Pick recovered definition source from passed sources if not present on definition state
155
-
156
- # 11.3.0
157
-
158
- - Bump [`bpmn-elements@4.3.1`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) to version with timer tracking
159
- - Add the above timers, i.e. `setTimeout` and `clearTimeout`, to inline script context
160
- - Clear all timers when execution is stopped
161
-
162
- # 11.2.1
163
-
164
- - [`bpmn-elements@4.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
165
- - `bpmn-moddle` patch
166
-
167
- # 11.2.0
168
-
169
- - Major bump of [`bpmn-elements@4`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md). No apparent breaking change to engine except that gives more power to a custom script handler
170
-
171
- # 11.1.0
172
-
173
- - [`bpmn-elements@3.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
174
-
175
- # 11.0.0
176
-
177
- All conditional flows from `bpmn-elements@3`.
178
-
179
- ## Breaking
180
- - Outbound sequence flow with script condition requires `next(err, result)` to be called where result decides if it should be taken or discarded
181
-
182
- ## Addititions
183
- - Outbound sequence flow conditions are evaluated for all activities, as well as default flow
184
- - Process now also have `cancelActivity` function for facilitation
185
-
186
- # 10.1.2-3
187
-
188
- Type definitions courtesy of @saeedtabrizi.
189
-
190
- - Some type fix and add engine broker types
191
-
192
- # 10.1.1
193
-
194
- - Add type definition to package.json
195
-
196
- # 10.1.0
197
-
198
- - Bump bpmn-elements to 2.1, adding support for Transaction and CancelEventDefinition see [change log](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
199
-
200
- # 10.0.0
201
-
202
- Untangle issue #105 which resulted in refactoring outbound sequence flow handling.
203
-
204
- - Bump bpmn-elements from 1.6 to 2, see [change log](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
205
-
206
- ## Breaking
207
- - No more `flow.pre-flight` events from sequence flows, not sure that anyone used them, but still
208
- - Activities now publish (or emit) `activity.leave` when all outbound flows have been taken/discarded
209
-
210
- # 9.2.0
211
-
212
- - Bump bpmn-elements from 1.2 to 1.6, see [change log](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
213
- - Support adding definition source with `addSource` function
214
-
215
- # 9.1.1
216
-
217
- - Bump bpmn-elements to version with ability to signal waiting start event from definition
218
-
219
- # 9.1.0
220
-
221
- - Bump bpmn-elements to version with shake activity functionality
222
- - Bump moddle-context-serializer@0.16 with scripts and timers
223
-
224
- ## Additions
225
- - Add engine option `sourceContext` to hold pre-serialized context
226
-
227
- # 9.0.0
228
-
229
- ## Additions
230
- - Add signal function to engine execution api
231
-
232
- ## Breaking changes
233
- - Bump bpmn-elements to v1.0.0 with some [breaking changes](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) regarding MessageEventDefinition and SignalEventDefinition
234
-
235
- # 8.7.0
236
-
237
- - Bump bpmn-moddle, bpmn-elements, and smqp to latest
238
-
239
- # 8.6.0
240
-
241
- - Add typescript declaration file (Saeed Tabrizi)
242
-
243
- # 8.5.0
244
-
245
- - Bump [bpmn-elements@0.12.1](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md#0121)
246
-
247
- # 8.4.0
248
-
249
- - Bump bpmn-elements@0.11.0 with new ability to use process extensions
250
-
251
- # 8.3.0
252
-
253
- - Bump bpmn-elements@0.9.0 to support compensation
254
-
255
- # 8.2.1
256
-
257
- - Bump bpmn-elements@0.8.1 that expose sequence flow name
258
-
259
- # 8.2.0
260
-
261
- - Bump bpmn-elements@0.8.0 and moddle-context-serializer to support StandardLoopCharacteristics
262
-
263
- # 8.1.0
264
-
265
- - Bump bpmn-elements@0.7.0 to support LinkEventDefinition
266
-
267
- # 8.0.0
268
-
269
- ## Breaking changes
270
- - Bump bpmn-elements to v0.6.0 with refactored MessageEventDefinition, ReceiveTask, and some bug fixes from @TallaInc
271
-
272
- ## Additions
273
- - Recover takes optional options that completely overrides environment and passes it along to the recovered definitions
274
-
275
- # 7.1.0
276
-
277
- - Bump bpmn-elements to v0.5.0
278
-
279
- # 7.0.0
280
-
281
- Bump bpmn-elements and bpmn-moddle (which now has a node dist :).
282
-
283
- ## Breaking changes
284
- - Implementation of ErrorEventDefinition is now closer to the BPMN 2.0 spec
285
-
286
- ## Additions
287
- - Start sub-process' sub-process if sub-process throws an error
288
- - Expose the name of the element that emitted event
289
-
290
- # 6.2.0
291
-
292
- ## Additions
293
- - Bump bpmn-elements and serializer and thereby add support for ConditionalEventDefinition
294
-
295
- # 6.1.0
296
-
297
- ## Additions
298
- - Expose humanPerformer and potentialOwner
299
-
300
- # 6.0.0
301
-
302
- Use [bpmn-elements](https://github.com/paed01/bpmn-elements) to execute elements.
303
-
304
- Behind the scenes the entire definition execution is replaced with [bpmn-elements](https://github.com/paed01/bpmn-elements)
305
-
306
- ## Breaking changes
307
- - Node version >= 10 is required
308
- - Events are not emitted with name of the activity, i.e. no more `enter-task_a8dje7` emits
309
- - Most events are emitted with the type of element as prefix, e.g. `activity.start`, one exception is `wait` wich is still emitted as `wait`
310
- - `getPendingActivities()` is renamed to `getPostponed()`
311
-
312
- ## Changes
313
- - Change license to MIT
314
-
315
- # 5.0.0
316
-
317
- ## Breaking changes
318
- - Engine `execute` callback is called when execution completes
319
- - Node version >= 8.9 is supported
320
- - `SendTask` message requires output
321
- - `ParallelGateway` emits `start` on first taken inbound, i.e. discarded inbound are just registered
322
- - Extensions have been moved to separate project [bpmn-engine-extensions](https://github.com/paed01/bpmn-engine-extensions)
323
-
324
- ## Additions
325
- - Support for parallell task loop
326
-
327
- # 4.0.0
328
-
329
- ## Breaking changes
330
- - Parallel gateway `getState()` returns pending inbound and/or pending outbound, so old states are not supported
331
-
332
- ## Changes
333
- - Add support for Manual task
334
- - Support camunda input/output for Exclusive Gateways, input is passed to conditional flows
335
- - Support camunda errorCodeVariable and errorMessageVariable for Error Events
336
-
337
- # 3.2.0
338
-
339
- - Add support for SendTask and ReceiveTask
340
-
341
- # 3.1.0
342
-
343
- ## Changes
344
- - A start event with form key will also emit wait
345
-
346
- # 3.0.0
347
-
348
- ## Breaking changes
349
- - The `Engine` now handles definitions instead of processes, hence:
350
- - `execute(callback)` returns executed definition in callback instead of process
351
- - `getState()` returns executing definition instead of processes
352
- - Engine `getState()` and `resume(state)` does no longer return or need the actual definition source. They work with moddle contexts.
353
- - `Transformer` is now called `transformer` since it is not called with `new`
354
- - Engine instance `resume()` is now a "static" function on engine, i.e. `Engine.resume`
355
-
356
- ## Changes
357
- - `Definition` is exposed and can be executed with moddle context and options, see [documentation](/docs/Definition.md)
358
- - `validation` is exposed and harbours functions for validating moddle context and execute options
359
- - Support camunda input forms for user task and start event
360
-
361
- # 2.0.0
362
-
363
- - Output from tasks with defined `camunda:inputOutput` now updates context variables. The previous behavior was to save result to `variables.taskInput`. That will still happen if no output is defined.
364
-
365
- ## Changes
366
- - Support service connector (#4)
367
- - Support map and list input/output types from modeller (#5)
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = function ProcessOutputDataObject(dataObjectDef, {environment}) {
4
- const {id, type, name, behaviour, parent} = dataObjectDef;
5
-
6
- const source = {
7
- id,
8
- name,
9
- type,
10
- behaviour,
11
- parent,
12
- read(broker, exchange, routingKeyPrefix, messageProperties) {
13
- const value = environment.variables.data && environment.variables.data[id];
14
- return broker.publish(exchange, `${routingKeyPrefix}response`, {id, name, type, value}, messageProperties);
15
- },
16
- write(broker, exchange, routingKeyPrefix, value, messageProperties) {
17
- environment.variables.data = environment.variables.data || {};
18
- environment.variables.data[id] = value;
19
-
20
- environment.output.data = environment.output.data || {};
21
- environment.output.data[id] = value;
22
- return broker.publish(exchange, `${routingKeyPrefix}response`, {id, name, type, value}, messageProperties);
23
- },
24
- };
25
-
26
- return source;
27
- };