SYS_ACT_PTTYP() returns undocumented "W"
search cancel

SYS_ACT_PTTYP() returns undocumented "W"

book

Article ID: 396687

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation Automic SaaS

Issue/Introduction

In version 24.X, when running a script from within the AWI that uses the SYS_ACT_PTTYP() function, the script returns a "W".  This return code was not present in 21.0 or earlier and the documentation only mentions the return codes "A" and "C".

Steps to reproduce:

  1. Create a script object
  2. Insert the following code into the script:

    :SET &PTTYP# = SYS_ACT_PTTYP()
    :p &PTTYP#

  3. Check the activation report for the return code.

Expected behavior:
The activation report should show one of the documented return codes - "C" or "A"

Actual behavior:
The activation report shows a "W" like in the following output:
2025-04-30 16:05:40 - U00020408 W

Environment

Automation Engine V24.X

Resolution

This behavior is as designed and a documentation change will be made to show something like:

The script function has the following return codes:

    • C
      Task was activated through the CallAPI
    • A
      Task was activated through one of the following interfaces:
      • Java Application Interface
      • Deployment Descriptor
    • W
      Task was activated through the Automic Web Interface