Circuit enables you to create automated workflows for IT and business by organizing a sequence of tasks. In certain cases, a process might include complex sub-processes that can be constructed as separate standalone circuits. These circuits can be activated from your primary circuit when required.
Prerequisite
Create a circuit with required states by giving relevant field details. Click here to learn how to create a circuit.
Example Use Case:
In employee onboarding, the Circuit state can be applied in two situations:
One case is to create a distinct circuit for the asset allocation process. This Circuit can be nested within the circuit designed for New Employee Onboarding in one of the Parallel states. By utilizing the Circuit state, this Asset Allocation circuit can be invoked to facilitate employee provisioning.
Similarly, when onboarding multiple employees, a batch process can be initiated where multiple New Employee Onboarding circuits are invoked in groups. Within each circuit, the Asset Allocation circuit can be invoked again.
Builder View
In Builder View, to integrate a circuit into a circuit:
Drag and drop the Circuit state from the left pane into your circuit or click the required Circuit state in your circuit.
Type Circuit is selected by default. Select the Circuit Name to be added to the circuit from the drop-down list.
Specify the Error Handling options for the state. Learn more about Error Handling.
Click Save and Execute.
Specify the test data as Input JSON for your test run, then click Next.
Name your test run by providing a unique name for this execution. Click Run.
Check for the data received from the circuit.
Modify your circuit settings if failure or data mismatch is encountered.
Repeat this test until you get the required result using your circuit.
Code View
In Code View, the JSON to configure the Circuit state is given below:
"Asset Allocation": {
"type": "circuit",
"next": "End",
"circuit_id": "employee_asset_allocation_30",
"on_error": [
{
"error_type": "execution_failure",
"retry": {
"delay": 5,
"attempt": 3,
"step_delay": 2
}
}
]
}