You use this action to do the following:
Terminate a transaction at a particular point during execution
Test sequences of actions without executing the entire transaction
Use a Conditional action to terminate the execution of the transaction when a specific condition is met
When configured to terminate with an error, the termination message is the error message that is returned by the transaction.
The properties for this action are listed in the following table:
Property | Data Type | Access | Use |
TerminationMessage | String | In and out | Returns this error message when TerminateWithError is set to true. The default value is Transaction Execution Terminated Upon Request. This message is also exposed to the LastErrorMessage property of the Transaction Call action and can provide targeted error handling when using embedded or modular transactions. |
TerminateWithError | Boolean | In and out | Determines if the action exits successfully or produces an error. When set to true, the action produces a transaction error. When set to false, the transaction stops logic processing. |
Success | Boolean | Out | Indicates whether the transaction succeeded or failed. If it failed, errors are displayed in the server trace log. |