RERUN_UC_OBJECT

Use the RERUN_UC_OBJECT script function to continue a Workflow that has been rolled back. The function reruns all child tasks with the following statuses in the Workflow:

Notes:

More Information:

Syntax

RERUN_UC_OBJECT (RunID)

Parameters

Return Codes

Example

The following example retrieves the status of a Job. If the status is 1904 (ENDED_ROLLBACKED), the script retrieves the RunID of the Workflow that contains the Job, and reruns the Workflow.

:SET &RET# = GET_UC_OBJECT_STATUS(, &RUNID#, "STATUS")

:IF &RET# = 1904
:SET &PARENT# = GET_PARENT_NR(&RUNID#)
:SET &RB# = RERUN_UC_OBJECT(&PARENT#)
:ENDIF

See also:

seealso

Script Elements for Handling Tasks