During execution, a Unit may sometimes fail due to system messages, validation errors, or conditions defined by the user.
Understanding how PerfecTwin handles these situations helps you design Scenarios that behave exactly as intended when failures occur.
⚙️ How it works
A Unit can be marked as Fail in two main situations:
The Unit does not complete execution successfully.
The Unit reaches an End Unit condition that you configured to evaluate the result as Fail.
When a Unit fails, what happens next depends on how the Scenario Flow has been designed.
You can control the behavior in several ways:
End the Scenario immediately
If you want execution to stop when a Unit fails, connect the Fail path to an 'End' node in the Scenario.Continue with another Unit
If you want the process to continue, you can connect the Fail path to the next Unit you want to execute.You can design different flows depending on the result:
One Unit runs when the previous Unit passes
A different Unit runs when it fails
This allows you to create flexible logic, such as retry flows, exception handling, or alternative process paths.
Comments
0 comments
Please sign in to leave a comment.