bpmn-engine 12.0.4 → 13.0.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 ADDED
@@ -0,0 +1,279 @@
1
+ Changelog
2
+ =========
3
+
4
+ # 13.0.1
5
+
6
+ ## Type definition
7
+ - fix: set the correct `Logger` type in `BpmnEngineOptions` by @leon19
8
+
9
+ # 13.0.0
10
+
11
+ - 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
12
+
13
+ # 12.0.5
14
+
15
+ - Prettify and actualize ts types
16
+
17
+ # 12.0.4
18
+
19
+ Update package.json to reflect what was stated in v12.0.3.
20
+
21
+ - And add tests for issue #142
22
+
23
+ # 12.0.3
24
+
25
+ - Bump [`bpmn-elements@5.2.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) with support for bpmn:Property (#139)
26
+ - Bump [`smqp@5`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
27
+
28
+ # 12.0.2
29
+
30
+ - Bump [`bpmn-elements@5.1.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
31
+ - Bump [`smqp@4`](https://github.com/paed01/smqp/blob/default/CHANGELOG.md)
32
+
33
+ # 12.0.1
34
+
35
+ - 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.
36
+
37
+ # 12.0.0
38
+
39
+ - 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 (∞)?
40
+
41
+ # 11.4.2
42
+
43
+ - Bump [`bpmn-elements@4.4.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
44
+ - 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)
45
+
46
+ # 11.4.1
47
+
48
+ - Patch `moddle-context-serializer@0.16.1`
49
+ - Patch [`bpmn-elements@4.3.4`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
50
+
51
+ # 11.4.0
52
+
53
+ - Expose execution api on property `engine.execution` since it is basically the same as when returned on events
54
+
55
+ # 11.3.2
56
+
57
+ - Bump [`bpmn-elements@4.3.2`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
58
+ - Add tests for issue #125
59
+
60
+ # 11.3.1
61
+
62
+ ## Type definition
63
+ - Engine.resume returns Promise that resolves BpmnEngineExecutionApi by @mdwheele
64
+
65
+ ## Misc
66
+ - Pick recovered definition source from passed sources if not present on definition state
67
+
68
+ # 11.3.0
69
+
70
+ - Bump [`bpmn-elements@4.3.1`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md) to version with timer tracking
71
+ - Add the above timers, i.e. `setTimeout` and `clearTimeout`, to inline script context
72
+ - Clear all timers when execution is stopped
73
+
74
+ # 11.2.1
75
+
76
+ - [`bpmn-elements@4.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
77
+ - `bpmn-moddle` patch
78
+
79
+ # 11.2.0
80
+
81
+ - 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
82
+
83
+ # 11.1.0
84
+
85
+ - [`bpmn-elements@3.1.0`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
86
+
87
+ # 11.0.0
88
+
89
+ All conditional flows from `bpmn-elements@3`.
90
+
91
+ ## Breaking
92
+ - Outbound sequence flow with script condition requires `next(err, result)` to be called where result decides if it should be taken or discarded
93
+
94
+ ## Addititions
95
+ - Outbound sequence flow conditions are evaluated for all activities, as well as default flow
96
+ - Process now also have `cancelActivity` function for facilitation
97
+
98
+ # 10.1.2-3
99
+
100
+ Type definitions courtesy of @saeedtabrizi.
101
+
102
+ - Some type fix and add engine broker types
103
+
104
+ # 10.1.1
105
+
106
+ - Add type definition to package.json
107
+
108
+ # 10.1.0
109
+
110
+ - 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)
111
+
112
+ # 10.0.0
113
+
114
+ Untangle issue #105 which resulted in refactoring outbound sequence flow handling.
115
+
116
+ - Bump bpmn-elements from 1.6 to 2, see [change log](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
117
+
118
+ ## Breaking
119
+ - No more `flow.pre-flight` events from sequence flows, not sure that anyone used them, but still
120
+ - Activities now publish (or emit) `activity.leave` when all outbound flows have been taken/discarded
121
+
122
+ # 9.2.0
123
+
124
+ - Bump bpmn-elements from 1.2 to 1.6, see [change log](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
125
+ - Support adding definition source with `addSource` function
126
+
127
+ # 9.1.1
128
+
129
+ - Bump bpmn-elements to version with ability to signal waiting start event from definition
130
+
131
+ # 9.1.0
132
+
133
+ - Bump bpmn-elements to version with shake activity functionality
134
+ - Bump moddle-context-serializer@0.16 with scripts and timers
135
+
136
+ ## Additions
137
+ - Add engine option `sourceContext` to hold pre-serialized context
138
+
139
+ # 9.0.0
140
+
141
+ ## Additions
142
+ - Add signal function to engine execution api
143
+
144
+ ## Breaking changes
145
+ - 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
146
+
147
+ # 8.7.0
148
+
149
+ - Bump bpmn-moddle, bpmn-elements, and smqp to latest
150
+
151
+ # 8.6.0
152
+
153
+ - Add typescript declaration file (Saeed Tabrizi)
154
+
155
+ # 8.5.0
156
+
157
+ - Bump [bpmn-elements@0.12.1](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md#0121)
158
+
159
+ # 8.4.0
160
+
161
+ - Bump bpmn-elements@0.11.0 with new ability to use process extensions
162
+
163
+ # 8.3.0
164
+
165
+ - Bump bpmn-elements@0.9.0 to support compensation
166
+
167
+ # 8.2.1
168
+
169
+ - Bump bpmn-elements@0.8.1 that expose sequence flow name
170
+
171
+ # 8.2.0
172
+
173
+ - Bump bpmn-elements@0.8.0 and moddle-context-serializer to support StandardLoopCharacteristics
174
+
175
+ # 8.1.0
176
+
177
+ - Bump bpmn-elements@0.7.0 to support LinkEventDefinition
178
+
179
+ # 8.0.0
180
+
181
+ ## Breaking changes
182
+ - Bump bpmn-elements to v0.6.0 with refactored MessageEventDefinition, ReceiveTask, and some bug fixes from @TallaInc
183
+
184
+ ## Additions
185
+ - Recover takes optional options that completely overrides environment and passes it along to the recovered definitions
186
+
187
+ # 7.1.0
188
+
189
+ - Bump bpmn-elements to v0.5.0
190
+
191
+ # 7.0.0
192
+
193
+ Bump bpmn-elements and bpmn-moddle (which now has a node dist :).
194
+
195
+ ## Breaking changes
196
+ - Implementation of ErrorEventDefinition is now closer to the BPMN 2.0 spec
197
+
198
+ ## Additions
199
+ - Start sub-process' sub-process if sub-process throws an error
200
+ - Expose the name of the element that emitted event
201
+
202
+ # 6.2.0
203
+
204
+ ## Additions
205
+ - Bump bpmn-elements and serializer and thereby add support for ConditionalEventDefinition
206
+
207
+ # 6.1.0
208
+
209
+ ## Additions
210
+ - Expose humanPerformer and potentialOwner
211
+
212
+ # 6.0.0
213
+
214
+ Use [bpmn-elements](https://github.com/paed01/bpmn-elements) to execute elements.
215
+
216
+ Behind the scenes the entire definition execution is replaced with [bpmn-elements](https://github.com/paed01/bpmn-elements)
217
+
218
+ ## Breaking changes
219
+ - Node version >= 10 is required
220
+ - Events are not emitted with name of the activity, i.e. no more `enter-task_a8dje7` emits
221
+ - 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`
222
+ - `getPendingActivities()` is renamed to `getPostponed()`
223
+
224
+ ## Changes
225
+ - Change license to MIT
226
+
227
+ # 5.0.0
228
+
229
+ ## Breaking changes
230
+ - Engine `execute` callback is called when execution completes
231
+ - Node version >= 8.9 is supported
232
+ - `SendTask` message requires output
233
+ - `ParallelGateway` emits `start` on first taken inbound, i.e. discarded inbound are just registered
234
+ - Extensions have been moved to separate project [bpmn-engine-extensions](https://github.com/paed01/bpmn-engine-extensions)
235
+
236
+ ## Additions
237
+ - Support for parallell task loop
238
+
239
+ # 4.0.0
240
+
241
+ ## Breaking changes
242
+ - Parallel gateway `getState()` returns pending inbound and/or pending outbound, so old states are not supported
243
+
244
+ ## Changes
245
+ - Add support for Manual task
246
+ - Support camunda input/output for Exclusive Gateways, input is passed to conditional flows
247
+ - Support camunda errorCodeVariable and errorMessageVariable for Error Events
248
+
249
+ # 3.2.0
250
+
251
+ - Add support for SendTask and ReceiveTask
252
+
253
+ # 3.1.0
254
+
255
+ ## Changes
256
+ - A start event with form key will also emit wait
257
+
258
+ # 3.0.0
259
+
260
+ ## Breaking changes
261
+ - The `Engine` now handles definitions instead of processes, hence:
262
+ - `execute(callback)` returns executed definition in callback instead of process
263
+ - `getState()` returns executing definition instead of processes
264
+ - Engine `getState()` and `resume(state)` does no longer return or need the actual definition source. They work with moddle contexts.
265
+ - `Transformer` is now called `transformer` since it is not called with `new`
266
+ - Engine instance `resume()` is now a "static" function on engine, i.e. `Engine.resume`
267
+
268
+ ## Changes
269
+ - `Definition` is exposed and can be executed with moddle context and options, see [documentation](/docs/Definition.md)
270
+ - `validation` is exposed and harbours functions for validating moddle context and execute options
271
+ - Support camunda input forms for user task and start event
272
+
273
+ # 2.0.0
274
+
275
+ - 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.
276
+
277
+ ## Changes
278
+ - Support service connector (#4)
279
+ - Support map and list input/output types from modeller (#5)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bpmn-engine",
3
3
  "description": "BPMN 2.0 execution engine. Open source javascript workflow engine.",
4
- "version": "12.0.4",
4
+ "version": "13.0.1",
5
5
  "main": "index.js",
6
6
  "types": "types/bpmn-engine.d.ts",
7
7
  "repository": {
@@ -51,21 +51,21 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "bent": "^7.3.12",
54
- "camunda-bpmn-moddle": "^5.0.0",
54
+ "camunda-bpmn-moddle": "^6.1.0",
55
55
  "chai": "^4.3.0",
56
56
  "chronokinesis": "^3.0.0",
57
57
  "eslint": "^7.23.0",
58
58
  "markdown-toc": "^1.2.0",
59
- "mocha": "^9.1.1",
59
+ "mocha": "^9.1.2",
60
60
  "mocha-cakes-2": "^3.3.0",
61
61
  "nock": "^13.0.7",
62
62
  "nyc": "^15.1.0"
63
63
  },
64
64
  "dependencies": {
65
- "bpmn-elements": "^5.2.0",
65
+ "bpmn-elements": "^6.0.1",
66
66
  "bpmn-moddle": "^7.0.4",
67
67
  "debug": "^4.3.1",
68
68
  "moddle-context-serializer": "^1.1.1",
69
- "smqp": "^5.0.0"
69
+ "smqp": "^5.1.0"
70
70
  }
71
71
  }