Process flows

Process flow tools manage process flow definitions, run and monitor their executions, and act on pending user tasks.

Required access: the following tools of the Process Flows section in one of your roles:

  • Process Flow Designer (processflows) for the process flow definition tools. Display access is enough to list and read. Saving and deleting require Edit access.

  • Process Flows Overview (process flows overview) to list and read executions and to read a user task. Display access is enough.

Running a flow, stopping an execution, listing your assigned user tasks, and continuing a user task do not check tool access. They require a signed-in user and follow the role-based access of process flows.

If none of your roles includes the tool with the required access, the call fails immediately with an access denied error. Contact an administrator to request access, or see Access control for more information on how access is enforced.

Available tools

Process flow definitions

Tool Description

list_processflows

List process flow definitions. The graph, testdata, and interface of a flow are never included in the list. Use get_processflow to read them. Without field selection, each entry contains id, name, description, package, and updatedAt. Supports filtering, field selection, and sorting through listOptions.

get_processflow

Return a process flow by its ID, including its full graph definition, interface, and test data. The response has the form { data, validation }. validation reports graph validation errors found in the stored definition.

save_processflow

Create or update a process flow. Include id to update an existing flow. The fields that you send are merged with the stored flow. Omit id to create a new flow, in which case name is required. The response has the form { data, validation }.

delete_processflow

Delete a process flow by its ID. The deletion fails with a conflict error if the flow has running executions.

Executions

Tool Description

run_processflow

Run a process flow with optional start data, which starts a new execution. The response contains the executionId.

stop_processflow_execution

Force-stop a running execution.

list_processflow_executions

List process flow executions. Supports paging and filtering by process flow, start date range, triggering app or user, and status. By default, 50 executions are returned per page.

get_processflow_execution

Return an execution, including its graph, timeline events, and status.

For the meaning of each execution status, see Execution and node statuses.

User tasks

list_assigned_processflow_user_tasks returns the user tasks assigned to you. Administrators see every user task.

Tool Description

list_assigned_processflow_user_tasks

List the user tasks assigned to you across all executions. Supports filtering by change date range and status.

get_processflow_user_task

Return a user task.

continue_processflow_user_task

Complete a pending user task and resume the execution. The decision in payload.approverDecision must be the value of one of the actions configured for the task. Otherwise, the call fails, and the error lists the allowed values.

Gateway conditions

For the conditions of exclusive and inclusive gateways, save_processflow treats the expression of each condition as the source of truth. On save, it rebuilds the condition builder data from the expression, so the condition opens correctly in the condition builder of the Cockpit. The builder has no raw expression mode, so isExpression is always set to false.

An expression is rebuilt only if it uses the same form that the condition builder produces. If an expression does not match that form, the condition keeps its existing builder data, and the Cockpit does not show the new expression in the condition builder.

The expression has the form {= <clause> }. You can join clauses with && (and) or || (or). Grouping clauses in parentheses is not supported. An operand is one of the following:

  • A binding to the interface data, for example, ${InterfaceData>/order/amount}

  • A binding to a task output, for example, ${Outputs>/approval/approved}

  • A string in single quotes, for example, 'EUR'

  • A number, for example, 100 or -2.5

  • true or false

The following clause forms are supported:

Clause Condition builder label Type

a === b

is equal to

Any

a !== b

is not equal to

Any

a < b, a <= b, a > b, a >= b

is lower than, is lower or equal to, is greater than, is greater or equal to

Number

(typeof a !== 'undefined')

exists

Any

(typeof a === 'undefined')

does not exist

Any

(!!a)

is true

Boolean

(!a)

is false

Boolean

a.includes(b), !(a.includes(b))

contains, does not contain

String

a.startsWith(b), !(a.startsWith(b))

starts with, does not start with

String

a.endsWith(b), !(a.endsWith(b))

ends with, does not end with

String

Example: {= ${InterfaceData>/amount} > 1000 && ${InterfaceData>/currency} === 'EUR' }

Was this page helpful?

What made the biggest difference for you?
What went wrong? (Your feedback helps us fix it.)

Please don't include personal or sensitive data.