ftos.flow.getProcessStatus
(FintechOS v24.5.0 to later)
Gets the process status of a flow instance.
This is a business logic method for business service components.
Syntax
Copy
(method) Flow.forceClose(flowName: string, instanceId: string, statusName: string): void
| Parameter | Description |
|---|---|
flowName
|
The name of the flow. |
instanceId
|
The id of the flow instance. |
statusName
|
The status name. |
Example
This example reads the current process status of an existing LoanApplicationFlow instance and stores the returned status string (defined in the workflow) in a variable.
Copy
var flowName = "LoanApplicationFlow";
var instanceId = "3f4a9a8c-12ab-4cde-9f01-234567890abc";
var statusName = ftos.flow.getProcessStatus(flowName, instanceId);