GET_STATISTIC_DETAIL

Use the GET_STATISTIC_DETAIL script function to retrieve a detail from the execution data of an object. Execution lists store a broad range of data on executed objects. For more information, see Execution Data.

Note: You need authorization (S) to access the execution data of the given object to execute this script function. For more information, see Granting Automation Engine Authorizations.

Syntax

GET_STATISTIC_DETAIL ([RunID] , Detail [, Object name])

Parameters

Return Codes

GET_STATISTIC_DETAIL returns a detail from the list of execution data depending on the parameters that you specify:

Important! The following default values are returned when the specified detail is not available at the time of the script execution:

Notes:

All Object Types

The following details from the execution data are available for all types of executable objects.

General Details

Activation and Execution Details

Restarts

Information about Parent Tasks and Activators

Event Objects

The following details from the execution data are available for Event objects only.

File Transfer Objects

The following details from the execution data are available for File Transfer objects only.

Job Objects

The following details relate to the consumed resources for the run, and are available for Job objects only.

Examples

The following example in a File Transfer object reads the name of the file to transfer from the current execution data.

:SET &SOURCE_FILE# = GET_STATISTIC_DETAIL(,SRC_FILE_NAME)

The following example reads the start time of the parent task:

:SET &NAME# = SYS_ACT_PARENT_NAME()
 :
SET &START# = GET_STATISTIC_DETAIL(,START_TIME, &NAME#)

The following example retrieves the activation time of an object that is called MM.DAY:

:SET &RUNNR# = GET_UC_OBJECT_NR("MM.DAY")
 :
SET &ACTIVATION# = GET_STATISTIC_DETAIL(&RUNNR#, ACTIVATION_TIME)

The following example reads and prints the alias of the executable object in the activation report.

:SET &ALIAS# = GET_STATISTIC_DETAIL(&RUNID#,ALIAS)

:PRINT &ALIAS#

See also:

seealso

Script Elements for Workflows and Tasks in Workflows