@5minds/processcube_engine_sdk 7.0.0-beta.3 → 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 +16 -5
- package/dist/EngineConfiguration.d.ts +5 -0
- package/package.json +1 -1
package/dist/Engine.d.ts
CHANGED
|
@@ -277,9 +277,12 @@ export type Engine = {
|
|
|
277
277
|
* @param identity Optional: The requesting users identity.
|
|
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
|
+
* @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.
|
|
282
|
+
*
|
|
280
283
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
281
284
|
*/
|
|
282
|
-
triggerMessageEvent: <TPayload extends object>(messageName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, messageChannel?: 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>;
|
|
283
286
|
/**
|
|
284
287
|
* Triggers a message start event.
|
|
285
288
|
*
|
|
@@ -289,9 +292,12 @@ export type Engine = {
|
|
|
289
292
|
* @param identity Optional: The requesting users identity.
|
|
290
293
|
* @param correlationId Optional: The ID of a correlation to which the message should belong.
|
|
291
294
|
* @param messageChannel Optional: The message channel to which the message is being sent.
|
|
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.
|
|
297
|
+
*
|
|
292
298
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
293
299
|
*/
|
|
294
|
-
triggerMessageStartEvent: <TPayload extends object>(messageName: string, payload?: TPayload, identity?: Identity, correlationId?: string, messageChannel?: string) => Promise<string>;
|
|
300
|
+
triggerMessageStartEvent: <TPayload extends object>(messageName: string, payload?: TPayload, identity?: Identity, correlationId?: string, messageChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
295
301
|
/**
|
|
296
302
|
* Triggers a signal event.
|
|
297
303
|
*
|
|
@@ -302,9 +308,12 @@ export type Engine = {
|
|
|
302
308
|
* @param identity Optional: The requesting users identity.
|
|
303
309
|
* @param correlationId Optional: The ID of a correlation to which the signal should belong.
|
|
304
310
|
* @param signalChannel Optional: The signal channel to which the signal is being sent.
|
|
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.
|
|
313
|
+
*
|
|
305
314
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
306
315
|
*/
|
|
307
|
-
triggerSignalEvent: <TPayload extends object>(signalName: string, payload?: TPayload, processInstanceId?: string, identity?: Identity, correlationId?: string, signalChannel?: 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>;
|
|
308
317
|
/**
|
|
309
318
|
* Triggers a signal start event.
|
|
310
319
|
*
|
|
@@ -314,10 +323,12 @@ export type Engine = {
|
|
|
314
323
|
* @param identity Optional: The requesting users identity.
|
|
315
324
|
* @param correlationId Optional: The ID of a correlation to which the signal should belong.
|
|
316
325
|
* @param signalChannel Optional: The signal channel to which the signal is being sent.
|
|
317
|
-
|
|
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.
|
|
328
|
+
*
|
|
318
329
|
* @returns A guid to identify the corresponding acknowledgement event.
|
|
319
330
|
*/
|
|
320
|
-
triggerSignalStartEvent: <TPayload extends object>(signalName: string, payload?: TPayload, identity?: Identity, correlationId?: string, signalChannel?: string) => Promise<string>;
|
|
331
|
+
triggerSignalStartEvent: <TPayload extends object>(signalName: string, payload?: TPayload, identity?: Identity, correlationId?: string, signalChannel?: string, eventId?: string, resolver?: Function) => Promise<string>;
|
|
321
332
|
/**
|
|
322
333
|
* Returns a distinct list of all message events currently deployed to the engine.
|
|
323
334
|
*
|
|
@@ -9,6 +9,7 @@ export declare interface IConfigurator {
|
|
|
9
9
|
}
|
|
10
10
|
export declare type EngineConfiguration = {
|
|
11
11
|
application?: ApplicationConfig;
|
|
12
|
+
extensions?: ExtensionsConfig;
|
|
12
13
|
httpServer?: HttpServerConfig;
|
|
13
14
|
httpClient?: HttpClientConfig;
|
|
14
15
|
iam: IAMConfiguration;
|
|
@@ -24,6 +25,10 @@ export declare type ApplicationConfig = {
|
|
|
24
25
|
touchFileOnReady?: string;
|
|
25
26
|
defaultResponseLimit?: number;
|
|
26
27
|
};
|
|
28
|
+
export declare type ExtensionsConfig = {
|
|
29
|
+
include?: string[];
|
|
30
|
+
exclude?: string[];
|
|
31
|
+
};
|
|
27
32
|
export declare type RuntimeExpressionConfig = {
|
|
28
33
|
timeoutInMiliseconds?: number;
|
|
29
34
|
workerPoolSize?: number;
|