ROLLBACK_UC_OBJECT

Use the ROLLBACK_UC_OBJECT script function to roll back an active task. You can roll back the following types of tasks:

Important!

More Information:

Tip: Use RERUN_UC_OBJECT to rerun tasks that have been rolled back.

Syntax

ROLLBACK_UC_OBJECT (RunID)

ROLLBACK_UC_OBJECT ([Workflow RunID], RunID2)

ROLLBACK_UC_OBJECT (Workflow RunID, START)

Parameters

Return Codes

Example

The following example activates a Job, and rolls back the task when the Job ends abnormally:

:SET &ACT# = ACTIVATE_UC_OBJECT(JOBS.TEST,WAIT)
:SET &RET# = GET_UC_OBJECT_STATUS(, &ACT#, "RETCODE")

:IF &RET# > 0
: SET &RB# = ROLLBACK_UC_OBJECT(&ACT#)
:ENDIF

See also:

seealso

Script Elements for Handling Tasks