Execution occurs when you Test Run a circuit. Each circuit can have multiple simultaneous executions. A copy of all the executions is maintained in Zoho Circuit. This means you can select and re-run a specific execution at any time.
Execution Page consists of the following features:
- View Graph - To observe the circuit execution as it runs visually
- Execution Details - To learn more information about the running execution
- Run Again - To re-run the execution in case of failure or data mismatch
- View Code - To navigate to the code view of the circuit
- View Logs - To see the changes in input output data flow at each state
- All executions - To view all the previously run executions
View Graph
After selecting Test Run, your circuit starts the execution with the test data provided from the first state, and traverses from one state to another. You can observe this flow visually.
If your execution takes more than the expected time or seems running in a loop, you can terminate it using the option 'Stop Execution'.
Execution Details
Execution details provide the following additional information:
- Status - Based on the execution, status can be Running, Success, or Failure.
- Started At - Time at which the execution started.
- Ended At - Time at which the execution was completed.
- Duration - Total time taken for running the execution.
- Input - Input JSON provided for the test run.
- Output - Output data received at the end state.
- Exception - Reason due to which the execution failed.
A sample success execution details are displayed below.
In case of failure, no Output details will be displayed. Instead information about Exception will be provided by the system.
Run Again
Using the Run Again option available at the bottom of Execution details, you can run the execution again with a different input, or the same one. Rerunning the execution is also possible by clicking the Test Run option in the top-left corner.
View Code
Navigate to Code View of the circuit from the execution page using this option. This helps to instantly modify the circuit code once you observe the execution.
View Logs
All the events that take place within a state and the transitions between different states can be viewed in Logs. This is useful to resolve issues and fix errors with the Payload details displayed for each state event, such as State Entered, Input Processing, Result Processing, and State Exited.
All executions
All the executions run for a circuit are listed. To view, click the All executions option in the top-left corner, or select Executions on the top horizontal menu in the Executions page.
The execution list is displayed with following details: Execution Name, Start Time, End Time, Duration, and Status.
- To run the execution again with a different test input, select the execution and click Run Again.
- To retry a failed or aborted execution with the same test input, select the execution and click Retry Execution.