WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new

Automating Workflows using HCL Universal Orchestrator: A Guide to Auto-ticketing & Notifications

4/1/2024

0 Comments

 
Picture
​In the fast-paced world of technology and business operations, efficiency is key. Every minute saved can translate into increased productivity and improved outcomes. One way to achieve this is through automation, and in this blog, we will delve into the realm of auto-ticketing and notifications using HCL Universal Orchestrator (UnO), exploring how to streamline processes using tools like Jira/Service Now and REST-based notifications.
Understanding the use case
Imagine a scenario where you need to track the status of various tasks or processes within your organization. This could range from software deployments to customer support tickets. Manually monitoring these tasks can be time-consuming and prone to errors. Here is where auto-ticketing and notifications come into play.
IntroductionAt its core, auto-ticketing involves the automatic creation of tickets or tasks in a tracking system like Jira or Service Now. This can be triggered by certain events or conditions within the UnO workflow. Notifications, on the other hand, ensure that stakeholders are informed about these events in real-time, keeping everyone in the loop.
​
Internal Events for Monitoring and Notification
The key to implementing auto-ticketing and notifications lies in understanding internal events. These events satisfy event triggers, which are group of event conditions that serve as trigger for automation, allowing you to respond to changes in job, job stream, or workstation statuses. Currently with six types of internal events at your disposal, you have the flexibility to tailor automation to your specific needs. The different internal events available are:
  1. JobStatusChangeEvent: Triggered when any job in plan changes its status.
  2. JobLateEvent: Triggered when any job in plan exceeds deadline time restrictions.
  3. JobStreamStatusChangeEvent: Triggered when any job stream in plan changes its status.
  4. JobStreamLateEvent: Triggered when any job stream in plan exceeds deadline time restrictions.
  5. JobStreamCompletedEvent: Triggered when any job stream reaches ABEND, CANCL, SUCC or SUPPR status.
  6. WorkstationStatusChangeEvent: Triggered when a workstation changes its state which includes status (ONLINE/OFFLINE) and connection (LINKED/UNLINKED)
Picture
​Automating Job Stream Monitoring and Response with Internal Events

​
Now, let's dive into a practical example of how to automate a job stream using internal events. Imagine a scenario where we need to monitor a critical job, let's call it JOB_1, which resides within a job stream /JS_1, attached to a specific workstation /WS_AGT_0. Our objective is to detect when JOB_1 ends in ABEND status, indicating an abnormal termination. Upon detecting this event, we want to trigger another job stream (/JS_NOTIFY) with predefined actions, such as sending out email notifications or creating a ticket in Jira for which we could use the respective job plugins available in HCL Automation Hub. This workflow showcases the power of internal events in proactively managing and responding to critical incidents within our system. By setting up event triggers and defining appropriate actions, we can automate responses to ensure smooth operations and timely resolution of issues.
Picture
​To kickstart our automation journey, let's begin by logging into the Dynamic Workload Console (DWC) and navigating to the Workload Designer page. Here, we will create a job stream with an event trigger to monitor our critical processes. In the Workload Designer, select the "Create New" option and then choose "Job Stream".
Picture
Picture
​In the designer page, we will define essential parameters for our job stream, including its folder, name, and associated workstation. Afterward, we can add the necessary jobs to the job stream. For our example, let's include a job named EMAIL_JOB. With our jobs in place, it is time to configure event triggers within the job stream. Here, we have added a single trigger named MY_TRIGGER_1.
Picture
Picture
​Configuring Event Triggers
​
To make the most of internal events, it is essential to configure event triggers effectively. This involves defining event conditions, selecting the appropriate event types, and specifying mandatory attributes. Whether it is a change in job status, a missed deadline, or a workstation going offline, you can set up triggers to respond accordingly.
Picture
​In our example, after creating the event trigger, we proceed to add event conditions within it. Here, we have added a condition for the JobStatusChangeEvent to monitor changes in a specific job's status.
Properties and Attributes
​
Configuring event triggers requires an understanding of various properties and attributes. From wildcard options to specifying multiple values, and multiple predicates, each attribute comes with its own set of properties. Whether you are dealing with numeric values, strings, or dates, there are operators and formats to suit every scenario.
Picture
​Putting It All Together
​
Once you have configured event triggers and defined the necessary attributes, automation can take over. When an event condition is met, the associated action is triggered automatically. This could involve creating a ticket in Jira, sending out an email notification, or running a predefined workflow.
Picture
​In our scenario, upon submission of the job stream (JS_1) containing JOB_1, if JOB_1 ends in ABEND status, our job stream with the event trigger will kick in automatically. This ensures smooth operations without manual intervention, with all the jobs inside the triggered job stream running as intended.
To monitor the job streams, we navigate to the Orchestration Monitor page in the Dynamic Workload Console. Here, we can view the details of the job streams and delve into the events responsible for triggering them. 
Picture
​We can further look at the event(s) responsible for triggering a particular job stream by clicking on the underlined part in the above image.
Picture
​For our example, we could see that MY_EVENT_1 was satisfied with one of the events that was created because of the status change of job (JOB_1).
Working with Orchestration Command Line Interface
​
For those seeking a more powerful and faster alternative, the UnO Orchestration Command Line Interface (OCLI) offers similar capabilities. With OCLI, we can execute the same scenario efficiently, further enhancing our automation capabilities.
Picture
Picture
​Here we have used OCLI model commands and OCLI plan commands to perform the same scenario and achieve the same result.
Benefits of Automation
​
The benefits of auto-ticketing and notifications are manifold. By automating repetitive tasks and keeping stakeholders informed, you can improve operational efficiency, reduce manual errors, and ensure the timely resolution of issues. This not only saves time and resources but also enhances overall productivity and customer satisfaction.

​Conclusion
​
In today's digital age, automation is no longer a luxury but a necessity. By harnessing the power of auto-ticketing and notifications, organizations can streamline workflows, minimize downtime, and stay ahead of the competition. With the right tools and strategies in place, the possibilities are endless. So why wait? Start automating your workflows today with HCL Universal Orchestrator (UnO) and unlock a world of possibilities.

Authors

Picture
​Mayank Gupta – Technical Lead at HCLSoftware
In the Workload Automation Bengaluru team, Mayank serves as the technical lead. He completed both his undergraduate and graduate degrees at the National Institute of Technology, Warangal. He is self-driven and passionate about learning, developing, and using cutting-edge technologies. Java, Docker, Spring & Spring Boot, Git, Maven, MongoDB, Apache Kafka, and REST API are some of the skills he is adept in. He enjoys playing video games and watching TV shows in his free time.
Picture
​Chirag Govinda Swamy – Senior Software Engineer at HCLSoftware
Working for the Workload Automation Bangalore team as a backend developer. He completed his studies at PES University and spent time as a software engineer at Capgemini before working for HCL. He is always researching new technology and coming up with innovative solutions. worked with platforms including Java, Rest API, Spring, and MongoDB. He enjoys viewing films and performing sports in his free time.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    July 2025
    June 2025
    May 2025
    March 2025
    February 2025
    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    August 2024
    July 2024
    June 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    October 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2024 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new