The Include objects REGISTER_VARIABLE.WINDOWS and REGISTER_VARIABLE.UNIX are used to define external interpreters and their scripts.
These definitions will be called by the scriptA particular Automation Engine object type. statement :REGISTER_VARIABLE, which has to be used with the script statement :BEGIN_EXT_INTERPRETERS and :END_EXT_INTERPRETERS in the Process tab of a Job objectAutomation Engine controlled activities and processes are structured in the form of objects. See also: Task (JOBS), available on Windows and UNIX.
|
REGISTER_VARIABLE.WINDOWS
|
These two objects are available on the system clientA closed environment within an Automation Engine system where you can create and run objects. A client name consists of a 4-digit number that must be indicated when a user logs on to the Automation Engine system. Users and their rights are also defined in clients. A particular Automation Engine object type. 0000 only and should be configured by the administrator. Their settings will be available system-wide.
The two Include objects may be used as other Include objects in the Automation EngineThis component drives an Automation Engine system and consists of different types of server processes.. For particulars about the available tabs see the general chapter on Include objects.
The Include objectAn Automation Engine object type for a script that is frequently used in more than one object. REGISTER_VARIABLE.WINDOWS is delivered with the following default script:
:set &uc_register_varname = sys_last_registeredThis is the status of a task that runs within a group and is waiting for its start._varname()
:set &uc_register_valuename = sys_last_registered_valuename()
:set &uc_register_otype# = sys_act_me_type()
:if &uc_register_otype# = 'JOBS'
: set &uc_windows_typ = get_att(win_typ)
: IF &UC_WINDOWS_TYP = "BAT"
&UC_JOBMD JNR=&UC_REALNR MNR=&UC_MANDANT PNR=&UC_IP_PORT IPA=&UC_IP_ADR TYP=V VTYPE=T NAME=&uc_register_varname VALUE=&uc_register_valuename
: ENDIF
!:DATA @set retcodemsg=%errorlevel%
!:DATA @set retcode=0
!:DATA @if NOT %retcodemsg% == 0 GOTO :MSGABORT
: ENDIF
:endif
Example: Perl as external interpreter on Windows:
If you want to use Perl as an external interpreter on Windows, you would enter the following script in the default script above between the :IF and :ENDIF statements defining the &UC_WINDOWS_TYP variableIt stores or retrieves values dynamically at runtime. An individual Automation Engine object type.:
: IF &$EXT_INTERPRETER# = 'PERL'
: SET &UC_PATH_JOBMD# = STR_SUB("&UC_JOBMD", "\", "\\")
system("&UC_PATH_JOBMD# JNR=&UC_REALNR MNR=&UC_MANDANT PNR=&UC_IP_PORT IPA=&UC_IP_ADR TYP=V VTYPE=T NAME=&uc_register_varname
VALUE=&uc_register_valuename");
: ELSE
The Include object REGISTER_VARIABLE.UNIX is delivered with the following default script:
:set &uc_register_varname = sys_last_registered_varname()
:set &uc_register_valuename = sys_last_registered_valuename()
:set &uc_register_otype# = sys_act_me_type()
:if &uc_register_otype# = 'JOBS'
&UC_JOBMD JNR=&UC_REALNR MNR=&UC_MANDANT PNR=&UC_IP_PORT IPA=&UC_IP_ADDR TYP=V VTYPE=T NAME=&uc_register_varname VALUE=&uc_register_valuename
:endif
See also:
:BEGIN_EXT_INTERPRETER... :END_EXT_INTERPRETER
:REGISTER_VARIABLE
Job object
How to use an External Interpreter
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |