Script Elements for Handling Tasks
You can write scripts to activate or deactivate tasks, retrieve information about tasks and manage other aspects of tasks.
This page includes the following:
Execute or Deactivate a Task
The following script elements execute or deactivate objects.
-
Executes an object
-
Terminates an active task
-
Executes an object again.
See also: Script Elements for Restarting Tasks
-
Deactivates a completed task
-
Executes an action defined in a Sync object
Information about an Activated Task
-
Determines if a task was activated in a workflow.
Predefined variable: &$IN_PROCESSFLOW#
-
Returns the value or PromptSet variable of a task
-
Returns the RunID of an activated object
-
Returns the status of an activated object
-
Returns the name of the host
-
Returns the execution data of an executable object
Information about the Current Task
The following functions retrieve details of the task that the script is written in.
-
Returns the sequence number of the current task
-
Returns the name of the current task
-
Returns the RunID of the current task.
Predefined variable: &$RUNID#
-
Returns the object type of the current task.
Predefined variable: &$OBJECT_TYPE#
-
Returns the partner type of the user that a Job is run by.
Predefined variable: &$PARTNER_TYPE#
-
Returns the User ID that a Job is run by from the Login object
Check Object Status
-
Returns the number of all activated objects
-
Checks if an object has already been activated
-
Checks if a Job has already been activated
-
Returns the number of Jobs that are registered in a Group
-
Checks if a Workflow has already been activated
-
Stops or starts the automatic processing of several object types
Modify a Task
The following script elements manage workflows and tasks in workflows.
-
Assigns a Sync object to a task
-
Modifies the return code or status text of a job when the job has finished
-
Modifies a task in an active workflow, letting you change a wide variety of task properties
Set or Retrieve Task Start Times
-
Returns the earliest start times in a workflow
-
Sets the earliest start time for tasks in a workflow
Task Forecasts
The following script functions create or manage forecasts for tasks.
-
Generates a forecast for a particular active task
-
Generates a forecast for a particular object
-
Removes one or more specific forecasts stored in the Automation Engine database
-
Calculates forecast data for future activities
Rollback
The following script elements let you roll back tasks or handle tasks after a rollback.
-
Runs the rollback of a particular task
-
Continue a workflow by restarting all child tasks after a rollback
See also: