Hi Team,
We are calling call mail notification from the post process of jobs using the below code.
:SET &RETCODE# = GET_UC_OBJECT_STATUS(,,"RETCODE")
:IF &RETCODE# > 0
:SET &ACTOBJ# = ACTIVATE_UC_OBJECT(JOBS,CALL.MAIL.HTML.FINAL)
:ENDIF
In the call notification itself we have defined the variables as below:
:SET &UC_CAUSE_NAME = GET_PARENT_NAME(&RUN#, ACT)
:SET &UC_CAUSE_NR = GET_PARENT_NR(&RUN#,ACT)
:SET &UC_CAUSE_STATE = GET_UC_OBJECT_STATUS(,&UC_CAUSE_NR,"STATUS_TEXT")
:SET &UC_CAUSE_RETCODE = GET_UC_OBJECT_STATUS(,&UC_CAUSE_NR,"RETCODE")
:set &parentname# = GET_PARENT_NAME(&UC_CAUSE_NR, ACT)
:set &parentnr# = GET_PARENT_NR(&UC_CAUSE_NR, ACT)
:set &parenttyp# = SYS_ACT_PARENT_TYP('ACT')
:set &date# = SYS_DATE_PHYSICAL('YYYY-MM-DD')
:set &time# = SYS_TIME_PHYSICAL("HH:MM:SS")
However when the notification is triggered it is giving the status text as (Job Ended with Return Code) instead of the actual state of the job like Ended_Not_OK
So is there any way to get the correct status?
Note:- We cant use the Call notification from the Work flow task properties because of some issue.
------------------------------
Thanks,
Kumar
------------------------------