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.

Information about an Activated Task

Information about the Current Task

The following functions retrieve details of the task that the script is written in.

  • SYS_ACT_ME_LNR
    Returns the sequence number of the current task

  • SYS_ACT_ME_NAME
    Returns the name of the current task

  • SYS_ACT_ME_NR
    Returns the RunID of the current task
    Predefined variable: &$RUNID#

  • SYS_ACT_ME_TYPE
    Returns the object type of the current task
    Predefined variable: &$OBJECT_TYPE#

  • SYS_ACT_PTTYP
    Returns the partner type of the user that a Job is run by
    Predefined variable: &$PARTNER_TYPE#

  • SYS_ACT_USERID
    Returns the User ID that a Job is run by from the Login object

Check Object Status

Modify a Task

The following script elements manage workflows and tasks in workflows.

  • :ATTACH_SYNC

    Assigns a Sync object to a task

  • :MODIFY_STATE

    Modifies the return code or status text of a job when the job has finished

  • MODIFY_TASK

    Modifies a task in an active workflow, letting you change a wide variety of task properties

Set or Retrieve Task Start Times

Task Forecasts

The following script functions create or manage forecasts for tasks.

  • FORECAST_TASK

    Generates a forecast for a particular active task

  • FORECAST_OBJECT

    Generates a forecast for a particular object

  • DELETE_FORECAST

    Removes one or more specific forecasts stored in the Automation Engine database

  • AUTOFORECAST
    Calculates forecast data for future activities

Rollback

The following script elements let you roll back tasks or handle tasks after a rollback.

See also: