@5minds/processcube_engine_sdk 7.0.0-beta.4 → 7.0.0-beta.5
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/dist/Engine.d.ts +8 -4
- package/package.json +1 -1
package/dist/Engine.d.ts
CHANGED
|
@@ -278,10 +278,11 @@ export type Engine = {
|
|
|
278
278
|
* @param correlationId Optional: The ID of a correlation to which the message should belong.
|
|
279
279
|
* @param messageChannel Optional: The message channel to which the message is being sent.
|
|
280
280
|
* @param eventId Optional: The ID by which to identity the unique signal. Will be auto-generated, if not provided.
|
|
281
|
+
* @param resolver Optional: A function to call, after the Event has been processed.
|
|
281
282
|
*
|
|
282
283
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
283
284
|
*/
|
|
284
|
-
triggerMessageEvent: <TPayload extends object>(messageName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, messageChannel?: string, eventId?: string) => Promise<string>;
|
|
285
|
+
triggerMessageEvent: <TPayload extends object>(messageName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, messageChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
285
286
|
/**
|
|
286
287
|
* Triggers a message start event.
|
|
287
288
|
*
|
|
@@ -292,10 +293,11 @@ export type Engine = {
|
|
|
292
293
|
* @param correlationId Optional: The ID of a correlation to which the message should belong.
|
|
293
294
|
* @param messageChannel Optional: The message channel to which the message is being sent.
|
|
294
295
|
* @param eventId Optional: The ID by which to identity the unique signal. Will be auto-generated, if not provided.
|
|
296
|
+
* @param resolver Optional: A function to call, after the Event has been processed.
|
|
295
297
|
*
|
|
296
298
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
297
299
|
*/
|
|
298
|
-
triggerMessageStartEvent: <TPayload extends object>(messageName: string, payload?: TPayload, identity?: Identity, correlationId?: string, messageChannel?: string, eventId?: string) => Promise<string>;
|
|
300
|
+
triggerMessageStartEvent: <TPayload extends object>(messageName: string, payload?: TPayload, identity?: Identity, correlationId?: string, messageChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
299
301
|
/**
|
|
300
302
|
* Triggers a signal event.
|
|
301
303
|
*
|
|
@@ -307,10 +309,11 @@ export type Engine = {
|
|
|
307
309
|
* @param correlationId Optional: The ID of a correlation to which the signal should belong.
|
|
308
310
|
* @param signalChannel Optional: The signal channel to which the signal is being sent.
|
|
309
311
|
* @param eventId Optional: The ID by which to identity the unique signal. Will be auto-generated, if not provided.
|
|
312
|
+
* @param resolver Optional: A function to call, after the Event has been processed.
|
|
310
313
|
*
|
|
311
314
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
312
315
|
*/
|
|
313
|
-
triggerSignalEvent: <TPayload extends object>(signalName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, signalChannel?: string, eventId?: string) => Promise<string>;
|
|
316
|
+
triggerSignalEvent: <TPayload extends object>(signalName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, signalChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
314
317
|
/**
|
|
315
318
|
* Triggers a signal start event.
|
|
316
319
|
*
|
|
@@ -321,10 +324,11 @@ export type Engine = {
|
|
|
321
324
|
* @param correlationId Optional: The ID of a correlation to which the signal should belong.
|
|
322
325
|
* @param signalChannel Optional: The signal channel to which the signal is being sent.
|
|
323
326
|
* @param eventId Optional: The ID by which to identity the unique signal. Will be auto-generated, if not provided.
|
|
327
|
+
* @param resolver Optional: A function to call, after the Event has been processed.
|
|
324
328
|
*
|
|
325
329
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
326
330
|
*/
|
|
327
|
-
triggerSignalStartEvent: <TPayload extends object>(signalName: string, payload?: TPayload, identity?: Identity, correlationId?: string, signalChannel?: string, eventId?: string) => Promise<string>;
|
|
331
|
+
triggerSignalStartEvent: <TPayload extends object>(signalName: string, payload?: TPayload, identity?: Identity, correlationId?: string, signalChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
328
332
|
/**
|
|
329
333
|
* Returns a distinct list of all message events currently deployed to the engine.
|
|
330
334
|
*
|