Siebel Business Process Designer Administration Guide > For Developers: Understanding How Workflow Processes Are Designed > Handling Errors >
Assigning Error Processes to Subprocesses
If a subprocess encounters an error and there is an error process defined for the subprocess, the error process completes with one of the following outcomes:
- The error process handles the error successfully.
The error handling is considered successful if the error process arrives at an End step. In this case, the error process is in the Completed state. The subprocess also terminates with a Completed state, and the control returns to the main process instance. The main process instance continues to execute from the next step.
- The error process tries to handle the error, but fails with a different error.
The error handling is considered failed if the error process arrives at a Stop step. In this case, the error process will be in the In Error state. The new error code, which you have selected in the Stop step, is returned to the subprocess. Both the subprocess and the main process will terminate with the In Error state.