Add a Callable Flow Template to an Integration
Follow these steps to add a callable flow template to a customized customer deployment.
Pass Data from a Parent Flow to a Callable Flow
If you need to pass data from a parent flow to a callable flow, you can define a custom schema.
Here is an example schema to start with.
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"required": [
"JCCo",
"Job"
],
"properties": {
"JCCo":
{ "type": "integer", "title": "Vista JCCo" }
,
"Job":
{ "type": "string", "title": "Vista Job" }
}
}
When passing data back to a parent flow from a callable flow, you must use the Stop Flow step. Use the Result Details section of this step to define what is sent back to the parent flow. This section can function like a Map step if you add a property and the Select Array Map. You can also create a single property and then write code in the value to determine what you want to pass back.
It is best practice to create a property called result,
then build it to the desired shape. The above example sends an object back to the parent
flow. You can then reference these values in subsequent steps using
flow.step('call-a-flow-step-id').output.result.success
.
Was this helpful? Give us feedback.