Automation Engine Script Guide > Ordered by Function > Activate Objects > RERUN_UC_OBJECT

RERUN_UC_OBJECT

Script Function: Continues a particular workflow.

Syntax

RERUN_UC_OBJECT(RunID)

Syntax

Description/Format

RunID

The RunID of the workflow whose tasks should be continued.
Format: script variable, number without inverted commas or script literal.

Return code

12113 - The specified task is not a workflow. You can only rerun in a workflow.
20282 - The object with this RunID could not be found.

Comments

"Continue" is a specific procedure that can be used for active workflow and has to with the Rollback feature. By continuing a workflow, you restart all its child tasks that have the status ENDED_ROLLBACKED, ENDED_ROLLBACK_EMPTY and / or "Waiting for rollback.

Examples

The following example retrieves the status of a job. If this status is 1904 (ENDED_ROLLBACKED), the workflow to which the job belongs will continue.

: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:

Script Element Description
ROLLBACK_UC_OBJECT Rolls back a particular task.