@5minds/processcube_engine_sdk 6.0.0-develop-2ed20e-lzqhmwli → 6.0.0-develop-e21e9b-lzr3ilff

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 CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as express from 'express';
2
+ import { UserTaskInstance } from './DataModels';
2
3
  import { Identity } from './DataModels/Iam/index';
3
4
  import { EngineEventType, MiddlewareCallback } from './EngineEvents/index';
4
5
  import { IApplicationInfoExtensionAdapter, ICorrelationExtensionAdapter, ICronjobExtensionAdapter, IDataObjectInstanceExtensionAdapter, IEventExtensionAdapter, IExternalTaskExtensionAdapter, IFlowNodeInstanceExtensionAdapter, IIamExtensionAdapter, IManualTaskExtensionAdapter, INotificationExtensionAdapter, IProcessDefinitionExtensionAdapter, IProcessInstanceExtensionAdapter, IProcessModelExtensionAdapter, IUntypedTaskExtensionAdapter, IUserTaskExtensionAdapter } from './ExtensionAdapter';
@@ -110,6 +111,8 @@ export type HttpRedirectAction = {
110
111
  url: string;
111
112
  statusCode?: number;
112
113
  };
114
+ export type UserTaskAssignmentResolver = (UserTaskInstance: UserTaskInstance) => Array<string>;
115
+ export declare const userTaskAssignmentResolverTag = "userTaskAssignmentResolverTag";
113
116
  export type CustomHttpRouteResult = {
114
117
  action: HttpResponseAction;
115
118
  append?: {
@@ -318,6 +321,7 @@ export type Engine = {
318
321
  */
319
322
  getSignalEvents(processModelIds?: string | Array<string>): Promise<Array<EventViewModel>>;
320
323
  registerCustomServiceTask<TPayload extends object>(serviceTaskType: string, serviceTaskHandler: CustomServiceTaskHandler<TPayload>): void;
324
+ registerUserTaskAssignmentResolver(resolver: UserTaskAssignmentResolver): void;
321
325
  removeCustomServiceTask(serviceTaskType: string): void;
322
326
  /**
323
327
  * Registers a HTTP Route at the Engine Server. These routes will be hosted by the engine itself and can be used to extend the Engine's native API.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpResponseActionType = void 0;
3
+ exports.userTaskAssignmentResolverTag = exports.HttpResponseActionType = void 0;
4
4
  var HttpResponseActionType;
5
5
  (function (HttpResponseActionType) {
6
6
  HttpResponseActionType["Send"] = "send";
@@ -12,4 +12,5 @@ var HttpResponseActionType;
12
12
  HttpResponseActionType["SendStatus"] = "sendStatus";
13
13
  HttpResponseActionType["Redirect"] = "redirect";
14
14
  })(HttpResponseActionType || (exports.HttpResponseActionType = HttpResponseActionType = {}));
15
+ exports.userTaskAssignmentResolverTag = 'userTaskAssignmentResolverTag';
15
16
  //# sourceMappingURL=Engine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Engine.js","sourceRoot":"","sources":["../../src/Engine.ts"],"names":[],"mappings":";;;AAqFA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,qCAAW,CAAA;IACX,mDAAyB,CAAA;IACzB,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC"}
1
+ {"version":3,"file":"Engine.js","sourceRoot":"","sources":["../../src/Engine.ts"],"names":[],"mappings":";;;AAsFA,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,uCAAa,CAAA;IACb,uCAAa,CAAA;IACb,yCAAe,CAAA;IACf,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,qCAAW,CAAA;IACX,mDAAyB,CAAA;IACzB,+CAAqB,CAAA;AACvB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC;AAoCY,QAAA,6BAA6B,GAAG,+BAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/processcube_engine_sdk",
3
- "version": "6.0.0-develop-2ed20e-lzqhmwli",
3
+ "version": "6.0.0-develop-e21e9b-lzr3ilff",
4
4
  "description": "Software development kit for the Engine.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "dist/index.d.ts",