@5minds/processcube_engine_sdk
Advanced tools
Comparing version 6.1.0-develop-0a5bc8-m3sq1dk0 to 6.1.0-develop-13fafd-m7ki3bcz
@@ -42,2 +42,3 @@ "use strict"; | ||
FlowNodeInstanceSortableColumns["embeddedProcessModelId"] = "embeddedProcessModelId"; | ||
FlowNodeInstanceSortableColumns["processModelName"] = "processModelName"; | ||
FlowNodeInstanceSortableColumns["processInstanceId"] = "processInstanceId"; | ||
@@ -44,0 +45,0 @@ FlowNodeInstanceSortableColumns["correlationId"] = "correlationId"; |
@@ -14,3 +14,4 @@ "use strict"; | ||
canWriteProcessModel: 'can_write_process_model', | ||
canObserveEngine: 'can_observe_engine', | ||
}; | ||
//# sourceMappingURL=Claims.js.map |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -27,0 +37,0 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); |
@@ -17,3 +17,2 @@ "use strict"; | ||
(function (EngineEventType) { | ||
EngineEventType["OnActivityError"] = "OnActivityError"; | ||
EngineEventType["OnEventProcessed"] = "OnEventProcessed"; | ||
@@ -38,5 +37,3 @@ EngineEventType["OnMessageTriggered"] = "OnMessageTriggered"; | ||
EngineEventType["OnFlowNodeCallActivityResponseReceived"] = "OnFlowNodeCallActivityResponseReceived"; | ||
EngineEventType["OnFlowNodeEventSending"] = "OnFlowNodeEventSending"; | ||
EngineEventType["OnFlowNodeEventRetrySending"] = "OnFlowNodeEventRetrySending"; | ||
EngineEventType["OnFlowNodeEventResponseReceived"] = "OnFlowNodeEventResponseReceived"; | ||
EngineEventType["OnFlowNodeSubProcessResponseReceived"] = "OnFlowNodeSubProcessResponseReceived"; | ||
EngineEventType["OnFlowNodeTimerStarted"] = "OnFlowNodeTimerStarted"; | ||
@@ -43,0 +40,0 @@ EngineEventType["OnFlowNodeTimerRemoved"] = "OnFlowNodeTimerRemoved"; |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -27,0 +37,0 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.BaseError = void 0; |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -27,0 +37,0 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.BpmnModelParser = void 0; |
@@ -27,2 +27,4 @@ "use strict"; | ||
* A service that parses, validates and filters ProcessDefinitions and ProcessModels. | ||
* | ||
* @deprecated This service has been decommissioned and will be removed in a future major release. | ||
*/ | ||
@@ -133,3 +135,2 @@ class BpmnParserService { | ||
* | ||
* @async | ||
* @param identity The identity for which to filter out inaccessible elements. | ||
@@ -139,3 +140,3 @@ * @param processModel The ProcessModel to filter. | ||
*/ | ||
async filterInaccessibleProcessModelElements(identity, processModel) { | ||
filterInaccessibleProcessModelElements(identity, processModel) { | ||
const processModelCopy = (0, lodash_clonedeep_1.default)(processModel); | ||
@@ -146,3 +147,3 @@ const processModelHasNoLanes = !(processModel?.laneSet?.lanes?.length > 0); | ||
} | ||
processModelCopy.laneSet = await this.filterOutInaccessibleLanes(processModelCopy.laneSet, identity); | ||
processModelCopy.laneSet = this.filterOutInaccessibleLanes(processModelCopy.laneSet, identity); | ||
processModelCopy.flowNodes = this.getFlowNodesForLaneSet(processModelCopy.laneSet, processModel.flowNodes); | ||
@@ -165,5 +166,4 @@ const userCannotAccessAnyStartEvents = !this.checkIfProcessModelHasAccessibleStartEvents(processModelCopy); | ||
*/ | ||
async filterOutInaccessibleLanes(laneSet, identity) { | ||
const userHasAdminPrivileges = await this.checkifUserHasAdminPrivileges(identity); | ||
if (userHasAdminPrivileges) { | ||
filterOutInaccessibleLanes(laneSet, identity) { | ||
if (this.isUserAnAdminOrObserver(identity)) { | ||
return laneSet; | ||
@@ -173,3 +173,3 @@ } | ||
filteredLaneSet.lanes = []; | ||
const checkIfUserHasLaneClaim = async (laneName) => { | ||
const checkIfUserHasLaneClaim = (laneName) => { | ||
try { | ||
@@ -179,3 +179,3 @@ if (!laneName) { | ||
} | ||
await this.iamService.ensureHasClaim(identity, laneName); | ||
this.iamService.ensureHasClaim(identity, laneName); | ||
return true; | ||
@@ -189,3 +189,3 @@ } | ||
const filteredLane = (0, lodash_clonedeep_1.default)(lane); | ||
const userCanNotAccessLane = !(await checkIfUserHasLaneClaim(lane.name)); | ||
const userCanNotAccessLane = !checkIfUserHasLaneClaim(lane.name); | ||
if (userCanNotAccessLane) { | ||
@@ -197,3 +197,3 @@ filteredLane.flowNodeReferences = []; | ||
if (laneHasChildLanes) { | ||
filteredLane.childLaneSet = await this.filterOutInaccessibleLanes(filteredLane.childLaneSet, identity); | ||
filteredLane.childLaneSet = this.filterOutInaccessibleLanes(filteredLane.childLaneSet, identity); | ||
} | ||
@@ -251,9 +251,12 @@ filteredLaneSet.lanes.push(filteredLane); | ||
} | ||
async checkifUserHasAdminPrivileges(identity) { | ||
isUserAnAdminOrObserver(identity) { | ||
try { | ||
const userIsRoot = this.iamService.checkIfTokenIsRootAccessToken(identity.token); | ||
if (userIsRoot) { | ||
if (this.iamService.checkIfUserIsSuperAdmin(identity)) { | ||
return true; | ||
} | ||
return this.iamService.checkIfUserIsSuperAdmin(identity); | ||
// This function was only added with Engine v19. | ||
if (typeof this.iamService.checkIfUserIsObserver === 'function') { | ||
return this.iamService.checkIfUserIsObserver(identity); | ||
} | ||
return false; | ||
} | ||
@@ -260,0 +263,0 @@ catch (error) { |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.ActivityParsers = void 0; |
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -27,0 +37,0 @@ exports.FlowNodeParsers = void 0; |
@@ -13,4 +13,2 @@ "use strict"; | ||
condition; | ||
messageChannel; | ||
signalChannel; | ||
constructor(boundaryEvent, processModel) { | ||
@@ -17,0 +15,0 @@ super(boundaryEvent, processModel); |
@@ -35,4 +35,2 @@ "use strict"; | ||
errorMessage; | ||
messageChannel; | ||
signalChannel; | ||
constructor(endEvent, processModel) { | ||
@@ -39,0 +37,0 @@ super(endEvent, processModel); |
@@ -18,4 +18,6 @@ "use strict"; | ||
messageId; | ||
messageChannel; | ||
signalName; | ||
signalId; | ||
signalChannel; | ||
constructor(event, processModel) { | ||
@@ -25,4 +27,6 @@ super(event, processModel); | ||
this.messageId = event.messageEventDefinition?.id; | ||
this.messageChannel = event.messageChannel; | ||
this.signalName = event.signalEventDefinition?.name; | ||
this.signalId = event.signalEventDefinition?.id; | ||
this.signalChannel = event.signalChannel; | ||
} | ||
@@ -29,0 +33,0 @@ } |
@@ -11,4 +11,2 @@ "use strict"; | ||
condition; | ||
messageChannel; | ||
signalChannel; | ||
constructor(intermediateCatchEvent, processModel) { | ||
@@ -15,0 +13,0 @@ super(intermediateCatchEvent, processModel); |
@@ -7,4 +7,2 @@ "use strict"; | ||
linkName; | ||
messageChannel; | ||
signalChannel; | ||
constructor(intermediateThrowEvent, processModel) { | ||
@@ -11,0 +9,0 @@ super(intermediateThrowEvent, processModel); |
@@ -32,4 +32,2 @@ "use strict"; | ||
timerValue; | ||
messageChannel; | ||
signalChannel; | ||
constructor(startEvent, processModel) { | ||
@@ -36,0 +34,0 @@ super(startEvent, processModel); |
@@ -81,2 +81,5 @@ import { BpmnType, EventType } from '../../ProcessModel/index'; | ||
* type: string | ||
* processModelName: | ||
* description: The Name of the ProcessModel that contains this FlowNodeInstance | ||
* type: string | ||
* processInstanceId: | ||
@@ -149,2 +152,3 @@ * description: The ID of the ProcessInstance that contains this FlowNodeInstance | ||
embeddedProcessModelId?: string; | ||
processModelName?: string; | ||
processInstanceId: string; | ||
@@ -210,2 +214,3 @@ correlationId: string; | ||
embeddedProcessModelId = "embeddedProcessModelId", | ||
processModelName = "processModelName", | ||
processInstanceId = "processInstanceId", | ||
@@ -212,0 +217,0 @@ correlationId = "correlationId", |
@@ -12,2 +12,3 @@ import { BpmnType, EventType } from '../../ProcessModel/index'; | ||
embeddedProcessModelId?: Array<string> | string; | ||
processModelName?: Array<string> | string; | ||
processInstanceId?: Array<string> | string; | ||
@@ -14,0 +15,0 @@ correlationId?: Array<string> | string; |
@@ -11,2 +11,3 @@ export declare const claims: { | ||
canWriteProcessModel: string; | ||
canObserveEngine: string; | ||
}; |
@@ -18,5 +18,2 @@ /** | ||
* type: string | ||
* anonymousSessionId: | ||
* description: The ID of an anonymous session. | ||
* type: string | ||
*/ | ||
@@ -38,4 +35,5 @@ /** | ||
* Should be set, when the auth token belongs to an anonymous user. | ||
* @deprecated As of v18, Anonymous Sessions are no longer handled by the Engine, but by the authority. | ||
*/ | ||
anonymousSessionId?: string; | ||
}; |
import { Identity } from './Identity'; | ||
export interface IIamService { | ||
getAuthorityAddress(): string; | ||
ensureHasClaim(identity: Identity, claimName: string, claimValue?: string): Promise<void>; | ||
checkIfUserIsSuperAdmin(identity: Identity): Promise<boolean>; | ||
ensureHasClaim(identity: Identity, claimName: string, claimValue?: string): void | Promise<void>; | ||
checkIfUserIsSuperAdmin(identity: Identity): boolean | Promise<boolean>; | ||
checkIfUserIsObserver(identity: Identity): boolean; | ||
checkIfTokenIsInternalToken(token: string): boolean; | ||
checkIfTokenIsRootAccessToken(token: string): boolean; | ||
} |
@@ -165,2 +165,9 @@ import * as express from 'express'; | ||
correlationMetadata?: any; | ||
processModel?: { | ||
definitionId: string; | ||
definitionHash: string; | ||
id: string; | ||
name?: string; | ||
version?: string; | ||
}; | ||
identity?: { | ||
@@ -167,0 +174,0 @@ token: string; |
@@ -16,2 +16,3 @@ import { LogLevel } from './EngineEvents'; | ||
database: DatabaseConfig; | ||
runtimeExpressions?: RuntimeExpressionConfig; | ||
logging?: LoggingConfiguration; | ||
@@ -27,2 +28,6 @@ tls?: TlsConfig; | ||
}; | ||
export declare type RuntimeExpressionConfig = { | ||
timeoutInMiliseconds?: number; | ||
workerPoolSize?: number; | ||
}; | ||
export declare type DatabaseConfig = { | ||
@@ -83,2 +88,3 @@ username?: string; | ||
host?: string; | ||
allowedCorsOrigins?: string[]; | ||
}; | ||
@@ -85,0 +91,0 @@ export declare type IAMConfiguration = { |
@@ -18,3 +18,5 @@ import { RuntimeExpressionParameters } from '..'; | ||
export declare type EngineEvent = { | ||
eventId?: string; | ||
eventType: EngineEventType; | ||
logLevel: LogLevel; | ||
timestamp: Date; | ||
@@ -30,12 +32,38 @@ processStartedAt?: Date; | ||
processDefinitionHash: string; | ||
processInstanceId: string; | ||
parentProcessInstanceId?: string; | ||
correlationId: string; | ||
/** | ||
* Only included with OnFlowNodeXX events. | ||
*/ | ||
flowNodeId?: string; | ||
/** | ||
* Only included with OnFlowNodeXX events. | ||
*/ | ||
flowNodeInstanceId?: string; | ||
/** | ||
* Only included with OnFlowNodeXX events. | ||
*/ | ||
flowNodeType?: BpmnType; | ||
/** | ||
* Only included with OnFlowNodeXX events. | ||
*/ | ||
currentFlowNode?: BaseElementViewModel; | ||
processInstanceId: string; | ||
parentProcessInstanceId?: string; | ||
correlationId: string; | ||
logLevel: LogLevel; | ||
tokenPayload?: object; | ||
eventId?: string; | ||
/** | ||
* For "OnFlowNodeXX" Events, this will contain the current token on the FlowNodeInstance. | ||
* For "OnProcessXX" Events, this will contain either the ProcessInstance's initial token, or its end token. | ||
*/ | ||
tokenPayload?: Record<string, any>; | ||
/** | ||
* Only included with OnFlowNodeExited events. | ||
*/ | ||
writtenDataObjectValues?: Record<string, any>; | ||
/** | ||
* Only included with OnFlowNodeEntered events. | ||
*/ | ||
writtenCorrelationMetadata?: Record<string, string>; | ||
/** | ||
* Only included with OnFlowNodeEntered events. | ||
*/ | ||
writtenProcessInstanceMetadata?: Record<string, string>; | ||
messageChannel?: string; | ||
@@ -53,3 +81,2 @@ signalChannel?: string; | ||
export declare enum EngineEventType { | ||
OnActivityError = "OnActivityError", | ||
OnEventProcessed = "OnEventProcessed", | ||
@@ -74,5 +101,3 @@ OnMessageTriggered = "OnMessageTriggered", | ||
OnFlowNodeCallActivityResponseReceived = "OnFlowNodeCallActivityResponseReceived", | ||
OnFlowNodeEventSending = "OnFlowNodeEventSending", | ||
OnFlowNodeEventRetrySending = "OnFlowNodeEventRetrySending", | ||
OnFlowNodeEventResponseReceived = "OnFlowNodeEventResponseReceived", | ||
OnFlowNodeSubProcessResponseReceived = "OnFlowNodeSubProcessResponseReceived", | ||
OnFlowNodeTimerStarted = "OnFlowNodeTimerStarted", | ||
@@ -79,0 +104,0 @@ OnFlowNodeTimerRemoved = "OnFlowNodeTimerRemoved" |
@@ -22,2 +22,8 @@ import { DataModels, Identity, Messages, Subscription } from '../index'; | ||
}): Promise<void>; | ||
/** | ||
* @requires Engine v19 | ||
*/ | ||
triggerTimerEvent(flowNodeInstanceId: string, options?: { | ||
identity?: Identity; | ||
}): Promise<void>; | ||
onBoundaryEventTriggered(callback: Messages.CallbackTypes.OnBoundaryEventTriggeredCallback, options?: { | ||
@@ -24,0 +30,0 @@ subscribeOnce?: boolean; |
@@ -15,3 +15,2 @@ import { EngineEventType } from './EngineEvents/index'; | ||
export declare const LogEventType: { | ||
OnActivityError: EngineEventType.OnActivityError; | ||
OnEventProcessed: EngineEventType.OnEventProcessed; | ||
@@ -36,7 +35,5 @@ OnMessageTriggered: EngineEventType.OnMessageTriggered; | ||
OnFlowNodeCallActivityResponseReceived: EngineEventType.OnFlowNodeCallActivityResponseReceived; | ||
OnFlowNodeEventSending: EngineEventType.OnFlowNodeEventSending; | ||
OnFlowNodeEventRetrySending: EngineEventType.OnFlowNodeEventRetrySending; | ||
OnFlowNodeEventResponseReceived: EngineEventType.OnFlowNodeEventResponseReceived; | ||
OnFlowNodeSubProcessResponseReceived: EngineEventType.OnFlowNodeSubProcessResponseReceived; | ||
OnFlowNodeTimerStarted: EngineEventType.OnFlowNodeTimerStarted; | ||
OnFlowNodeTimerRemoved: EngineEventType.OnFlowNodeTimerRemoved; | ||
}; |
@@ -16,2 +16,4 @@ import { IIamService, Identity } from '../../DataModels/Iam/index'; | ||
* A service that parses, validates and filters ProcessDefinitions and ProcessModels. | ||
* | ||
* @deprecated This service has been decommissioned and will be removed in a future major release. | ||
*/ | ||
@@ -70,3 +72,2 @@ export declare class BpmnParserService { | ||
* | ||
* @async | ||
* @param identity The identity for which to filter out inaccessible elements. | ||
@@ -76,3 +77,3 @@ * @param processModel The ProcessModel to filter. | ||
*/ | ||
filterInaccessibleProcessModelElements(identity: Identity, processModel: Model.Process): Promise<Model.Process>; | ||
filterInaccessibleProcessModelElements(identity: Identity, processModel: Model.Process): Model.Process; | ||
/** | ||
@@ -85,3 +86,3 @@ * Takes a laneSet and filters out all lanes that the given identity is not allowed to access. | ||
*/ | ||
filterOutInaccessibleLanes(laneSet: Model.ProcessElements.LaneSet, identity: Identity): Promise<Model.ProcessElements.LaneSet>; | ||
filterOutInaccessibleLanes(laneSet: Model.ProcessElements.LaneSet, identity: Identity): Model.ProcessElements.LaneSet; | ||
/** | ||
@@ -103,3 +104,3 @@ * Compares a laneSet against a list of FlowNodes and returns all FlowNodes that are on any of the given lanes. | ||
checkIfProcessModelHasAccessibleStartEvents(processModel: Model.Process): boolean; | ||
private checkifUserHasAdminPrivileges; | ||
private isUserAnAdminOrObserver; | ||
} |
@@ -11,5 +11,3 @@ import { BoundaryEvent } from '../../Model/Events/index'; | ||
condition?: string; | ||
messageChannel?: string; | ||
signalChannel?: string; | ||
constructor(boundaryEvent: BoundaryEvent, processModel: ProcessModelLike); | ||
} |
@@ -34,5 +34,3 @@ import { EndEvent } from '../../Model/Events/index'; | ||
errorMessage?: string; | ||
messageChannel?: string; | ||
signalChannel?: string; | ||
constructor(endEvent: EndEvent, processModel: ProcessModelLike); | ||
} |
@@ -17,5 +17,7 @@ import { Event } from '../../Model/Events/index'; | ||
messageId?: string; | ||
messageChannel?: string; | ||
signalName?: string; | ||
signalId?: string; | ||
signalChannel?: string; | ||
constructor(event: Event, processModel: ProcessModelLike); | ||
} |
@@ -9,5 +9,3 @@ import { IntermediateCatchEvent } from '../../Model/Events/index'; | ||
condition?: string; | ||
messageChannel?: string; | ||
signalChannel?: string; | ||
constructor(intermediateCatchEvent: IntermediateCatchEvent, processModel: ProcessModelLike); | ||
} |
@@ -6,5 +6,3 @@ import { IntermediateThrowEvent } from '../../Model/Events/index'; | ||
linkName?: string; | ||
messageChannel?: string; | ||
signalChannel?: string; | ||
constructor(intermediateThrowEvent: IntermediateThrowEvent, processModel: ProcessModelLike); | ||
} |
@@ -30,5 +30,3 @@ import { StartEvent } from '../../Model/Events/index'; | ||
timerValue?: string; | ||
messageChannel?: string; | ||
signalChannel?: string; | ||
constructor(startEvent: StartEvent, processModel: ProcessModelLike); | ||
} |
{ | ||
"name": "@5minds/processcube_engine_sdk", | ||
"version": "6.1.0-develop-0a5bc8-m3sq1dk0", | ||
"version": "6.1.0-develop-13fafd-m7ki3bcz", | ||
"description": "Software development kit for the Engine.", | ||
@@ -41,13 +41,13 @@ "main": "dist/commonjs/index.js", | ||
"devDependencies": { | ||
"@trivago/prettier-plugin-sort-imports": "^4.2.0", | ||
"@trivago/prettier-plugin-sort-imports": "^5.0.0", | ||
"@types/express": "^5.0.0", | ||
"@types/mocha": "^10.0.3", | ||
"@types/node": "^22.7.4", | ||
"mocha": "^10.6.0", | ||
"mocha": "^11.0.0", | ||
"prettier": "^3.3.2", | ||
"reflect-metadata": "^0.2.0", | ||
"should": "^13.2.3", | ||
"ts-mocha": "^10.0.0", | ||
"typescript": "~5.6.0" | ||
"ts-mocha": "^11.0.0", | ||
"typescript": "~5.7.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
652570
11548