TOGGLE_OBJECT_STATUS

Use the TOGGLE_OBJECT_STATUS to stop or start the automatic processing of an activated task. The script function lets you stop or start the following types of tasks:

Note: You need the Modify at runtime permission for this script function. For more information, see Granting Automation Engine Authorizations.

Syntax

TOGGLE_OBJECT_STATUS (RunID, Status[, ALL])

Parameters

Return Codes

The script function has the following return codes:

Examples

The following script retrieves the RunID of an Event, and stops the Event.

:SET &RUNNR# = GET_UC_OBJECT_NR(DUMP.CONTROL)
:
SET &RET# = TOGGLE_OBJECT_STATUS(&RUNNR#, "STOP")

The following script retrieves the RunID of a Workflow, and starts the Workflow and all the child tasks in the Workflow.

:SET &RUNNR# = GET_UC_OBJECT_NR(MM.DAY)
:
SET &RET# = TOGGLE_OBJECT_STATUS(&RUNNR#, "GO", ALL)

See also: