In some situations it is helpful to use the scripts of executable objects to read specific variables from the read buffer. The supplied values are derived from the activating objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task.
Values for read buffer variables are only available if the object has been activated via:
If the task has been activated in a different way, the variables do not include a value.
The following read buffer variables are available:
You can retrieve the values using the scriptA particular Automation Engine object type. statement :READ. The following example reads all variables and then outputs their values in the reportA report provides more detailed information about a task's execution or a component.:
:READ &UC_CAUSE_NAME,,
:READ &UC_CAUSE_NR,,
:READ &UC_CAUSE_STATE,,
:READ &UC_CAUSE_RETCODE,,
:PRINT "Causing task:"
:PRINT "Name: &UC_CAUSE_NAME"
:PRINT "RunID: &UC_CAUSE_NR"
:PRINT "Status: &UC_CAUSE_STATE"
:PRINT "Return code: &UC_CAUSE_RETCODE"
Notification objects of type ALARM include a script which can be used to read this data and write it to the notificationAn Automation Engine object type used to send messages to users and user groups. [Formerly called "CallOperator."] text.
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |