Enforcing Specific Length for AutoSys Calendar Names via EEM
search cancel

Enforcing Specific Length for AutoSys Calendar Names via EEM

book

Article ID: 421961

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Users often require the ability to enforce strict naming conventions, such as a precise length (e.g., exactly 29 characters), for AutoSys calendar names. AutoSys Workload Automation does not provide an inherent configuration setting to directly enforce such string-length policies on calendar definitions. This leads to a need for an external mechanism to validate and control the length of calendar names during their creation or modification.

 

Environment

 * AutoSys Workload Automation

* Embedded Entitlements Manager (EEM) 

Resolution

To enforce a specific length, such as a minimum and maximum of 29 characters, for AutoSys calendar names, you can leverage Enterprise Event Manager (EEM) policies with regular expressions. 


1. Log into the EEM console with the application dropdown set to WorkloadAutomationAE. 
2. Navigate to Manage Access Policies
3. Create/Edit an as-calendar policy. 
4. In the policy definition, specify the "Resource" field with a regular expression that enforces the desired length.  For example, to enforce a name that starts with a "PRD." prefix and meets a length condition, one might use: PRD..{29,29}$
* Important: This specific regular expression, PRD..{29,29}$, will match resource names that begin with "PRD.", followed by any 29 characters repeated until the end of the string. 
5. Ensure that the checkbox labeled "Treat resource names as regular expressions" is enabled for this policy. 

By implementing this EEM policy, any attempt to create or modify an AutoSys calendar with a name that does not conform to the specified regular expression will be blocked by EEM, thereby enforcing the desired length constraint.
NOTE - This assumes the default policy is not still enabled.