Agent Group defined by PromptSet does not resolve as Agent

book

Article ID: 87580

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
N/A

It is not possible to use a PromptSet to define an Agent Group since the Agent Group is resolved before the prompt is evaluated.

 

Cause

Cause type:
By design

Environment

Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Component:

Resolution

This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: No Fix

Additional Information

Workaround :
A script can be used on the pre process tab as follows::SET &IS_OVERWRITE_GROUP# = GET_OBJECT_TYPE("&OVERWRITE_AGENT#"):IF &IS_OVERWRITE_GROUP# = "HOSTG": SET &HND# = PREP_PROCESS_HOSTGROUP(&OVERWRITE_AGENT#,"*",BY_RULE): PROCESS &HND#: SET &OVERWRITE_AGENT# = GET_PROCESS_LINE(&HND#,1): SET &STATUS# = GET_PROCESS_LINE(&HND#,2): PRINT "HEADER: overwrite agent with agent from AGENTGROUP: >&OVERWRITE_AGENT#< - Status: >&STATUS#