Skip to content

bpmn-server / IScriptHandler

Interface: IScriptHandler#

Implemented by#

Table of contents#

Properties#

Methods#

Properties#

context#

• Optional context: Record\<string, (scope: { data: any }) => any>

variables scripts see besides their own

Defined in#

packages/bpmn-server/src/interfaces/engine.ts:17

Methods#

evaluateExpression#

▸ evaluateExpression(scope, expression, label?): any

label: what the expression is (a condition, an assignment): its name for debuggers and errors

Parameters#

Name Type
scope IToken | IItem
expression any
label? string

Returns#

any

Defined in#

packages/bpmn-server/src/interfaces/engine.ts:13


evaluateCondition#

▸ evaluateCondition(scope, expression, language?, label?): any

a sequence flow's condition, in its language attribute's language (FEEL, else JavaScript); without it, evaluateExpression

Parameters#

Name Type
scope IToken | IItem
expression any
language? string
label? string

Returns#

any

Defined in#

packages/bpmn-server/src/interfaces/engine.ts:15


executeScript#

▸ executeScript(scope, script, label?): any

label: which script it is (an event's, a script task's): its name for debuggers and errors

Parameters#

Name Type
scope IExecution | IItem
script any
label? string

Returns#

any

Defined in#

packages/bpmn-server/src/interfaces/engine.ts:19

Comments