ftos.flow.goToStep
(FintechOS v24.5.0 to later)
Navigate to a specific step in the flow. It moves the flow instance to a specific step, for example: screen1, screen2, etc.
This is a business logic method for business service components.
Syntax
Copy
(method) Flow.goToStep(flowName: string, instanceId: string, stepName: string): void
| Parameter | Description |
|---|---|
flowName
|
The name of the flow. |
instanceId
|
The id of the flow instance. |
stepName
|
The step name. |
Example
This example moves an existing LoanApplicationFlow instance directly to the "Screen2" step (for example, from screen1 to screen2) by calling ftos.flow.goToStep with the flow name, the instance id, and the target step name.
Copy
var flowName = "LoanApplicationFlow";
var instanceId = "3f4a9a8c-12ab-4cde-9f01-234567890abc";
var stepName = "screen2";
ftos.flow.goToStep(flowName, instanceId, stepName);