@getriebe/bpmn
Import BPMN into Getriebe’s workflow model and inspect import diagnostics.
Source revision 49560371f6cd34d30383df5619df46969c594ae4.
BPMN_NAMESPACE
Section titled “BPMN_NAMESPACE”export declare const BPMN_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";BpmnActivityLoop
Section titled “BpmnActivityLoop”export interface BpmnActivityLoop { readonly testBefore: boolean; readonly maximum?: number; readonly condition: BpmnExpression;}BpmnBoundaryError
Section titled “BpmnBoundaryError”export interface BpmnBoundaryError { readonly id: string; readonly kind: "boundaryError"; readonly attachedTo: string; readonly errorCode: string;}BpmnBoundaryTimer
Section titled “BpmnBoundaryTimer”export interface BpmnBoundaryTimer { readonly id: string; readonly kind: "boundaryTimer"; readonly attachedTo: string; readonly interrupting?: false; readonly duration: BpmnExpression; readonly durationMs: number;}BpmnCallActivity
Section titled “BpmnCallActivity”export interface BpmnCallActivity { readonly id: string; readonly kind: "callActivity"; readonly target: BpmnProcessReference; readonly importLocation: string; readonly inputs: readonly BpmnDataInput[]; readonly outputs: readonly BpmnDataOutput[];}BpmnCapability
Section titled “BpmnCapability”export type BpmnCapability = "sequence" | "message-start" | "correlated-messages" | "message-or-timer" | "embedded-subprocess" | "call-activity" | "bpmn-error" | "xor" | "and" | "graph-loop" | "activity-loop" | "user-task" | "boundary-timer" | "non-interrupting-boundary-timer" | "intermediate-timer" | "subprocess-boundary-timer" | "terminate-end" | "parallel-multi-instance" | "sequential-multi-instance" | "multi-instance-fixed-role" | "multi-instance-completion-condition" | "personal-assignment" | "service-task" | "service-operation" | "http-service-fault" | "business-rule-task" | "script-task-expression" | "script-task-javascript" | "typed-data" | "expressions";BpmnConnectorBinding
Section titled “BpmnConnectorBinding”export interface BpmnConnectorBinding { readonly httpFaultRules?: readonly BpmnHttpFaultRule[]; readonly id: string; readonly version: string; readonly connection: string; readonly configuration: Readonly<Record<string, string>>;}BpmnDataInput
Section titled “BpmnDataInput”export interface BpmnDataInput { readonly name: string; readonly kind: ValueKind; readonly source: string;}BpmnDataOutput
Section titled “BpmnDataOutput”export interface BpmnDataOutput { readonly name: string; readonly kind: ValueKind; readonly target: string;}BpmnDecisionTable
Section titled “BpmnDecisionTable”export interface BpmnDecisionTable { readonly id: string; readonly xml: string; readonly rules: readonly DecisionRule[];}BpmnDiagnostic
Section titled “BpmnDiagnostic”export interface BpmnDiagnostic { readonly severity: "error"; readonly code: string; readonly message: string; readonly elementId?: string; readonly scopeId?: string; readonly line?: number; readonly column?: number;}BpmnErrorEnd
Section titled “BpmnErrorEnd”export interface BpmnErrorEnd { readonly id: string; readonly kind: "errorEnd"; readonly errorCode: string;}BpmnExpression
Section titled “BpmnExpression”export interface BpmnExpression { readonly source: string; readonly language: string;}BpmnFlow
Section titled “BpmnFlow”export interface BpmnFlow { readonly id: string; readonly source: string; readonly target: string; readonly condition?: BpmnExpression;}BpmnHttpFaultRule
Section titled “BpmnHttpFaultRule”export interface BpmnHttpFaultRule { readonly status: number; readonly field: string; readonly equals: string; readonly errorCode: string;}BpmnImportOptions
Section titled “BpmnImportOptions”export interface BpmnImportOptions { readonly schemaFiles?: Readonly<Record<string, string>>; readonly scriptEvaluators?: readonly ScriptEvaluator[]; readonly availableCapabilities?: ReadonlySet<BpmnCapability>;}BpmnImportResult
Section titled “BpmnImportResult”export type BpmnImportResult = { readonly status: "valid"; readonly model: BpmnModel; readonly diagnostics: readonly [];} | { readonly status: "invalid"; readonly diagnostics: readonly BpmnDiagnostic[];};BpmnIntermediateTimer
Section titled “BpmnIntermediateTimer”export interface BpmnIntermediateTimer { readonly id: string; readonly kind: "intermediateTimer"; readonly duration: BpmnExpression; readonly durationMs: number;}BpmnMessageCatch
Section titled “BpmnMessageCatch”export interface BpmnMessageCatch { readonly id: string; readonly kind: "messageCatch"; readonly message: MessageContract; readonly bindings: readonly MessageBinding[];}BpmnMessageExchange
Section titled “BpmnMessageExchange”export interface BpmnMessageExchange { readonly keyId: string; readonly sendTaskId: string; readonly catchEventId: string; readonly outgoingField: string; readonly incomingField: string;}BpmnMessageStart
Section titled “BpmnMessageStart”export interface BpmnMessageStart { readonly id: string; readonly kind: "messageStart"; readonly message: MessageContract; readonly bindings: readonly MessageBinding[];}BpmnModel
Section titled “BpmnModel”export interface BpmnModel extends BpmnScope { readonly targetNamespace: string; readonly processId: string; readonly processInterface?: BpmnProcessInterface; readonly originalXml: string; readonly schemaFiles?: Readonly<Record<string, string>>; readonly messages?: readonly MessageContract[]; readonly messageExchanges?: readonly BpmnMessageExchange[]; readonly hasDiagram: boolean; readonly resources: readonly { readonly id: string; readonly name?: string; }[]; readonly requiredCapabilities: readonly BpmnCapability[];}BpmnMultiInstance
Section titled “BpmnMultiInstance”export type BpmnMultiInstance = { readonly inputCollection: BpmnDataInput; readonly outputCollection: BpmnDataOutput; readonly inputItem: string; readonly outputItem: string; readonly completionCondition?: BpmnExpression; readonly sequential?: true;} & ({ readonly resourceId: string; readonly roleByItem?: never;} | { readonly resourceId?: never; readonly roleByItem: Readonly<Record<string, string>>;});bpmnNames
Section titled “bpmnNames”Display labels from the source associated with an already imported model.
export declare function bpmnNames(model: BpmnModel): ReadonlyMap<string, string>;BpmnNode
Section titled “BpmnNode”export type BpmnNode = BpmnCallActivity | BpmnMessageStart | BpmnSendTask | BpmnMessageCatch | BpmnErrorEnd | BpmnBoundaryError | BpmnBoundaryTimer | BpmnIntermediateTimer | { readonly id: string; readonly kind: "terminateEnd";} | { readonly id: string; readonly kind: "subProcess"; readonly scope: BpmnScope;} | { readonly id: string; readonly kind: "start" | "end" | "and";} | { readonly id: string; readonly kind: "eventBasedGateway";} | { readonly id: string; readonly kind: "xor"; readonly defaultFlowId?: string;} | (BpmnTask & { readonly kind: "userTask"; readonly resourceId?: string; readonly recipientField?: string; readonly multiInstance?: BpmnMultiInstance;}) | (BpmnTask & { readonly kind: "serviceTask"; readonly operation?: BpmnOperation;} & ({ readonly handler: string; readonly connector?: never;} | { readonly connector: BpmnConnectorBinding; readonly handler?: never;})) | { readonly kind: "businessRuleTask"; readonly id: string; readonly inputs: readonly [BpmnDataInput]; readonly outputs: readonly [BpmnDataOutput]; readonly decision: BpmnDecisionTable;} | { readonly kind: "scriptTask"; readonly id: string; readonly inputs: readonly BpmnDataInput[]; readonly outputs: readonly [BpmnDataOutput]; readonly scriptFormat: string; readonly script: string;};bpmnNodes
Section titled “bpmnNodes”export declare function bpmnNodes(scope: BpmnScope): Generator<BpmnNode, void, undefined>;BpmnOperation
Section titled “BpmnOperation”export interface BpmnOperation { readonly id: string; readonly interfaceId: string; readonly input: MessageContract; readonly output?: MessageContract; readonly errorCodes: readonly string[];}BpmnProcessInterface
Section titled “BpmnProcessInterface”export interface BpmnProcessInterface { readonly inputs: readonly BpmnProcessPort[]; readonly outputs: readonly BpmnProcessPort[];}BpmnProcessPort
Section titled “BpmnProcessPort”export interface BpmnProcessPort { readonly id: string; readonly name: string; readonly kind: ValueKind;}BpmnProcessReference
Section titled “BpmnProcessReference”export interface BpmnProcessReference { readonly targetNamespace: string; readonly processId: string;}BpmnScope
Section titled “BpmnScope”export interface BpmnScope { readonly nodes: readonly BpmnNode[]; readonly flows: readonly BpmnFlow[]; readonly fields: Readonly<Record<string, ValueKind>>;}BpmnSendTask
Section titled “BpmnSendTask”export interface BpmnSendTask { readonly id: string; readonly kind: "sendTask"; readonly message: MessageContract; readonly inputs: readonly BpmnDataInput[];}checkDecisionInterchange
Section titled “checkDecisionInterchange”export declare function checkDecisionInterchange(nodes: Iterable<BpmnNode>): Promise<readonly BpmnDiagnostic[]>;EXTENSION_NAMESPACE
Section titled “EXTENSION_NAMESPACE”export declare const EXTENSION_NAMESPACE = "https://tokenjanitor.github.io/getriebe/bpmn/extensions/v1";findBpmnNode
Section titled “findBpmnNode”export declare function findBpmnNode(scope: BpmnScope, id: string): BpmnNode | undefined;importBpmn
Section titled “importBpmn”export declare function importBpmn(xml: string, options?: BpmnImportOptions): BpmnImportResult;nodeUsesCapability
Section titled “nodeUsesCapability”export declare function nodeUsesCapability(node: BpmnNode, capability: BpmnCapability): boolean;noneStartScope
Section titled “noneStartScope”The part of a process that can execute through its None Start Event.
export declare function noneStartScope(scope: BpmnScope): BpmnScope;scriptTaskCapability
Section titled “scriptTaskCapability”export declare function scriptTaskCapability(format: string): "script-task-expression" | "script-task-javascript" | undefined;