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

RERUN_UC_OBJECT

Script Function: Continues a particular workflowAn object of the Automation Engine that can include several executable objects and which runs them in a specified order. [Formerly called "ProcessFlow" and "JobPlan."].

Syntax

RERUN_UC_OBJECT(RunID)

Syntax

Description/Format

RunIDShort for "run number". It is a number that provides unique information about a task's execution. The RunID can include 7 to 10 digits. It is assigned by the Automation Engine component .

The RunID of the workflow whose tasks should be continued.
Format: script variable, number without inverted commas or scriptA particular Automation Engine object type. literal.

Return code

12113 - The specified taskAn executable object that is running. Tasks are also referred to as activities. is not a workflow. You can only rerunAfter you rollback part(s) of a workflow, we'll provide the ability to re-run, i.e. to start from those tasks that have been successfully rolled back or not yet executed. in a workflow.
20282 - The objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task 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 restartA restart refers to the repetition of an object's execution. This action differs from a new start in some parts. all its childA subordinate task (such as a task that runs in a workflow). tasks that have the statusThis represents the condition of a task (such as active, blocked, generating). ENDED_ROLLBACKED, ENDED_ROLLBACK_EMPTY and / or "Waiting for rollback.

Examples

The following example retrieves the status of a jobAn Automation Engine object type for a process that runs on a target system.. 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.

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH