Automation Engine Script Guide > Ordered by Function > Read or Modify Objects > GET_OBJECT_TYPE

GET_OBJECT_TYPE

Script function: Returns a task's object type

Syntax

GET_OBJECT_TYPE(Object name)

Syntax

Description/Format

Object name

Name of the object whose type should be retrieved
Format: script literal or script variable


Return codes

Short form of the object type
"20223" - The object does not exist.

Comments

This script function first searches the object in the client in which the script is processed and then in system client 0000.

The script statement :ON_ERROR may be used to determine the reaction to an erroneous object name. The error may be analyzed using the script functions for error handling. Script processing continues but may also be canceled if required.

Example

The following example returns "JOBP" because MM.DAY is a workflow.

:SET &OBJECT_TYPE# = GET_OBJECT_TYPE("MM.DAY")

 

See also:

Script Elements - Reading or Modifying Objects

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function