ftos.data.patchFlowData
(FintechOS v24.5.0 to later)
Updates the flow instance data with the specified object that you want to change.
Syntax
Copy
(method) Data.patchFlowData(flowName: string, instanceId: string, objectToChange: any): void
| Parameter | Description |
|---|---|
flowName
|
The name of the flow. |
instanceId
|
The id of the flow instance. |
objectToChange
|
The object to change. |
Example
You have a flow instance for LoanApplicationFlow, and you want to update just the amount and status fields on its data.
Copy
var flowName = "LoanApplicationFlow";
var instanceId = "3f4a9a8c-12ab-4cde-9f01-234567890abc";
var objectToChange = {
amount: 15000,
status: "Approved"
};
ftos.data.patchFlowData(flowName, instanceId, objectToChange);
}