ftos.flow.getContext

(FintechOS v24.5.0 to later)

Gets the flow context.

Syntax

Copy
(method) Flow.getContext(): IWkfFlowContext
 
Parameter Description
IWkfFlowContext Interface that provides read‑only information about the current flow execution, including the flow instance identifier, flow identifier and name, current business state identifier, and process status.

Result

From the flow execution, returns the instanceId, flowId, flowName, businessStateId, processStatus.

Example

This example gets the immutable flow context for the current flow execution and reads its instanceId, flowName, and processStatus properties into local variables.

Copy
var ctx = ftos.flow.getContext();

var instanceId    = ctx.instanceId;
var flowName      = ctx.flowName;
var processStatus = ctx.processStatus;