Configure Success state in Circuit | Qntrl | Circuit | Online Help

Success

A Success state can be used to terminate an execution. It is used to represent a successful execution for the user's reference. As Success states are end states, they don't have any configuration or properties, such as Next state or End fields. You cannot configure a Success state as a 'Start' state.
 
In a Branch state, you can use the Success state along with the Failure state to indicate the outcome of two processes based on different conditions or use it to indicate the success of a Function after it has been executed.
 
Example Use Case: In the employee onboarding scenario, when all the necessary states for the onboarding process have been completed, you can utilize the Success state to indicate the successful completion of the employee onboarding, thereby ending the process.

Builder View

To configure a Success state to your circuit:
  1. In Builder View, drag and drop the Success state from the left pane into your circuit or click the required Success state in your circuit.
  2. Under Configuration, you have the option to update the name of the state.
NotesYou will not be able to configure an input path or output path for a Success state.   

      

Code View

  In Code View, the JSON to configure the Success state for the above example is:

"Onboarded Successfully": {
           "type": "success"
}






Next : Failure state


    • Related Articles

    • Execution Logs

      A record of all tested executions is maintained in Circuit, allowing you to access and re-run specific executions anytime. Follow these steps to access the execution history of a circuit: Access Execution History Go to the left pane and click on the ...
    • Result Selector and Result Path

      Result Path and Result Selector are employed to extract dynamic data from the state's result when the execution is successful. Result Selector Result Selector lets you retrieve and process the runtime data, enabling flexible and dynamic data ...
    • Failure

      The Failure state is also an end state that signifies the failure of the previous task executed in the Circuit and stops its execution, marking it as a failure. It is used to represent a failed execution for the user's reference. Example Use Case: In ...
    • Parallel

      Parallel state allows you to process multiple states in parallel and perform simultaneous executions. The executions are initiated at the same time, and their input, output, and results are processed and generated concurrently. Additionally, the ...
    • Branch

      The Branch state allows you to add conditions to the circuit's workflow and execute tasks based on those conditions. It decides the path of execution based on input to this Branch state. This is similar to having an 'If else' or 'switch' case. A ...

    You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.