Variables in automation scripts that run as cron tasks
You can use only variables of type IN because automation scripts that run as cron tasks are unassociated with Maximo® business objects. You can also use the implicit variables scriptName, qName, and runAsUserInfo.
The following limitations apply to using type IN variables with automation scripts that run as
cron tasks:
- You can use variables with a literal binding to send parameters into an automation script that is run as a cron task.
- You can use variables with a System Property binding to send parameters.
- You can use variables with a MAXVAR binding with variables that are of SYSTEM MAXVAR. You cannot use MAXVAR variables at the site or organization level.
You can use the following implicit variables in automation scripts that run as cron
tasks:
Implicit variable | Description |
---|---|
scriptName | Name of the automation script that is run as a cron task. |
qName | Name of the cron task instance that is running the automation script as a cron task. |
runAsUserInfo | Handle for the UserInfo Java™ object. You can use this object to get additional information about the user that is associated with the cron task. |