Generate Error

Activity

The Generate Error activity generates an error and causes an immediate transition to any error transitions. If there are no error transitions, the process instance halts execution. This activity is useful in a group or in a called process. If you would like to catch and raise your own error conditions, you can use this activity to do so.

For example, for a process that calls a subprocess to check the credit of a customer, you can use the Generate Error activity to raise an error for any error conditions, such as the customer does not exist, or the customer has no credit available. In the called subprocess, create a transition to the Generate Error activity after detecting the error condition and the called process terminates. Processing continues with an error in the calling process. An error transition on the Call Process activity can handle the error.

Using the Generate Error activity illustrates the example described above.

Figure 74: Using the Generate Error activity

For more information about handling errors in process definitions, see TIBCO ActiveMatrix BusinessWorks™ Process Design.