If Last Step

Description

Controls Workflow flow depending on whether the last step was a success, general failure, or failed because of a specific error. Causes the steps following this action to execute if the previous step meets the specified condition. If not, execution follows the next Else or End If action, whichever comes first. Used to provide custom error handling on steps that are set to ”continue on error”. This action introduces conditional steps depending on the outcome of the previous step. It is commonly used to introduce a block of steps to be carried out if the previous step fails.

Declaration

<AMIF LASTSTEP="Text" RESULTCODE="Text">

Example

<AMIF LASTSTEP="failedwithcode" RESULTCODE="20074, 20089">

General Tab Parameters

If last step: Specifies the condition to be met. Options are:

  • succeeded: step succeeded

  • failed: step failed for any reason

  • failedwithcode: Failed with specified error codes. Step failed with one of the error codes specified in the Error codes field.

Text [options], Optional - Default "Succeeded"
MARKUP: LASTSTEP="failed"

Error Codes: (Available only when "Failed with specified error code" selected.) Specifies the error codes to match.

Text, Required if LASTSTEP="failedwithcode"
MARKUP: RESULTCODE="24007, 30098"=