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