To design and implement effective workflows in Circuit, you should understand how Circuit processes input and output as the data passes through its States.
When an execution is initiated, the input to the Circuit is provided as key value pairs in JSON format and then it is passed to the first state of the Circuit. Each state receives JSON as input and passes the output mostly in JSON format.
Input and output data can be filtered, controlled and manipulated using the below fields when the data flows from one state to another.
Input Path
Output Path
Result path
Parameters
In Circuit, Path is a string beginning with $ that identifies components within JSON text. Specific parts of a JSON can be accessed by denoting their attributes in Input Path, Output Path, and Result Path.
Let us take the following JSON input:
Input path allows you to filter and control the actual input passed to the state. You can select a portion of the JSON input and pass it to the state for processing. The received JSON input is filtered using JsonPath notation.
Let the following JSON be the state input:
Parameters allow you to modify the input by inserting a collection of key-value pairs to the input. The values of Parameters can either be static or parts of the JSON input selected as a Path.
For example, you are providing the following JSON input:
Result Path allows you to manipulate the output of a state. In result path, you can define the output of a state as the state's input or the state's result or a combination of both. In other words, you can append the state's result to the JSON input provided to the state and modify it. You can then pass this modified JSON as the state's output to the next state for processing.
Result Path can be defined to generate an output for the following state types.
Pass
Parallel
Batch
Function
Webhook
Circuit
By default, if Result Path is not defined, the output of the previous state will be completely passed as the input of the new state.
For example, let the following JSON be the state input for your execution:Output Path allows you to select a portion of the state's output and pass it to the next state for processing by removing the unwanted objects from JSON output. If Output Path is not specified, then the entire JSON node (determined by the state input, state result and Result Path) will be sent as the state output to the next state.
For example, let the below JSON is received as state's output from Result path:
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.