Use the following script function at the top of SCRI_TEST to read from the buffer the name of the object that caused the trigger.
:READ &UC_CAUSE_NAME,,
:PRINT &UC_CAUSE_NAME
This will provide the name JOB_B in the variable &UC_CAUSE_NAME.-------------------------------------------
Here's the link to the
documentation on the READ function.
Original Message:
Sent: 06-07-2021 06:44 PM
From: Neeraja Ethiraj
Subject: How to retrieve the object name in a script getting triggered under Time Checkpoint
We have a requirement where we need to fetch the name of the job under whose properties(Time and dependency), we have a script getting triggered under evaluate check point. This script needs the job name.
Eg :
Workflow Name : JOBP_TEST
We have two jobs under this workflow, namely JOB_A and JOB_B
Under the properties of JOB_B -> Under Evaluate Checkpoint, we have a script(SCRI_TEST) executing if a particular time has been reached.
We want to pull the job name JOB_B in this script.
Could you please suggect how we can achieve this?
We have tried different script elements like SYS_ACT_PARENT_NR(), SYS_ACT_ME_NAME etc.. But all of them are either returning the script name SCRI_TEST or the workflow name JOBP_TEST only.