B4A.BASE.JOBI.SETTINGS
Summary
- Object type
- JOBI
- Object Folder
- PACKAGES/BEST4AUTOMIC/B4A.BASE/SOURCE/SETTINGS
- Title
- Reads b4a settings for the specific platform
- Archive Key 1
- -
- Archive Key 2
- -
- Created
- WRITER/B4A am: 2022-03-24 08:01:45
- Last Modified
- WRITER/B4A am: 2024-01-09 10:09:56 14 x
- Last Used
- -
Description
The include reads the basic configuration, interprete agent and login and set them if called in a job or publishes the values in workflows
Parameter
Input
Output
- If called in workflow objects the output variables are:
-
&B4AB_AGENT_O# name of selected agent
-
&B4AB_LOGIN_O# name of the login object
Example
:include B4A.BASE.JOBI.SETTINGS
Process
:inc B4A.BASE.JOBI.VARIABLES
:inc B4A.BASE.JOBI.RESOLVE-AGENTGROUP $AGENT$ = "&B4AB_AGENT_O#"
:if &$OBJECT_TYPE# = "JOBS"
: p "set agent &B4AB_AGENT_O#"
: put_att HOST = &B4AB_AGENT_O#
: p "set login &B4AB_LOGIN_O#"
: put_att LOGIN = &B4AB_LOGIN_O#
:endif
:if &$OBJECT_TYPE# = "JOBP"
: p "publish agent &B4AB_AGENT_O#"
: publish &B4AB_AGENT_O#, , TASK
: p "publish login &B4AB_LOGIN_O#"
: publish &B4AB_LOGIN_O#, , TASK
:endif