BBC.SHARED.JOBI.RESOLVE-HOSTG
Summary
- Object type
- JOBI
- Object Folder
- PACKAGES/BEST-BLU/BBC.SHARED/SOURCE
- Title
- Resolve agent groups if necessary and sets agent for JOBS objects
- Archive Key 1
- -
- Archive Key 2
- -
- Created
- WRITER/B4A am: 2022-02-28 14:47:11
- Last Modified
- WRITER/B4A am: 2024-01-09 09:57:39 18 x
- Last Used
- -
Description
This include is capable of resolving an agent group. If the given parameter points to ana getn group it will be resolved. The resulting agent will be set if the calling object is a JOBS.
Parameter
- $AGENT$
- agent or agent group
Input
Output
- &BBCS_AGENT_O#
- the agent resolved from the given agent group
Example
:include BBC.SHARED.JOBI.RESOLVE_HOSTG $AGENT$ = "<value>"
Process
:set &HOST# = "$AGENT$"
:if get_object_type( &HOST# )= 'HOSTG'
: if sys_act_restart() = "Y"
: p '### Hinweis HOSTG-Manage: Aufgabe ist im Restart-Modus'
: endif
: set &HSTGHND# = prep_process_agentgroup( &HOST# )
: process &HSTGHND#
: set &AGENT# = get_process_line( &HSTGHND#, 1 )
: p '### &HOST# -> Agent &AGENT#'
: term_process
: endprocess
: close_process &HSTGHND#
:else
: set &AGENT# = '&HOST#'
:endif
:if &$OBJECT_TYPE# = "JOBS"
: p "set agent &AGENT#"
: put_att HOST = &AGENT#
:endif
:publish &AGENT#, BBCS_AGENT_O#, TASK
Variable Publications
Found 1 variable publications (TASK)
Zeilennummer | Scriptzeile |
---|---|
22 | :publish &AGENT#, BBCS_AGENT_O#, TASK |