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

Support for JSON/YAML in HCL Universal Orchestrator

4/19/2024

0 Comments

 
Picture
​Unlocking operational efficiency is paramount for organizations, and HCL Universal Orchestrator stands as a powerful ally in achieving this goal. With its versatile workflow modeling capabilities, HCL Universal Orchestrator empowers users to streamline their operations seamlessly.
​Amidst our comprehensive modeling capabilities lies a pivotal component known as "”items” essential elements within intricate workflows. Previously, creating these items necessitated navigating complex syntax in native languages, like the Scheduling Language.
Users have now the option of using an alternative, more intuitive way of creating their workload. They can now seamlessly create and oversee various items such as jobs, job streams, calendars and more. Through an user-friendly interface, they can allocate time and resources more efficiently towards their core business goals.
For example, consider this simple job definition in Scheduling Language below: -
$jobs
/WS_AGT_0#/Job_Definition_1
    DESCRIPTION "Sample jsdl Job Definition"
    TASK
    {
        "executable" : {
            "interactive" : false,
            "script" : "ls",
            "credential" : { }
        }
    }
RECOVERY STOP
In the above example, it is not clear what is the job definition name or what is the name of the workstation folder inside which the job is created.
Here comes JSON/YAML support to the rescue. Users can now interact with Orchestration CLI in three different formats – Scheduling Language, Json and Yaml.
For example, consider the job definition we used previously, but in Json format: -
{
    "kind" : "JobDefinition",
    "def" : {
        "workstation" : "/WS_AGT_0",
        "folder" : "/",
        "name" : " Job_Definition_1",
        "description" : "Sample jsdl Job Definition",
        "type" : "executable",
        "task" : {
            "executable" : {
                "interactive" : "false",
                "script" : "ls",
                "credential" : { }
            }
        },
        "recovery" : {
            "action" : "STOP"
        }
    }
}
The above job definition in Json format is far readable and standardized. Users can easily understand the name of the job definition, workstation, or folder. Moreover, users can save an item in any format and extract it into a file in any other format. This gives users the flexibility to interact with the Orchestration CLI.
You might be wondering how the Orchestration CLI correctly reads the format of the file. Does a User also need to send additional information about the file format?
The answer is not always. Let’s understand why.
For processing requests
When saving or modifying items by sending a file, the user does not need to send additional information about the file format. The Orchestration CLI reads the file format by reading the file content. The commands that can be used to send a file are – add, new and replace.
For receiving outputs
When receiving an output from the Orchestration CLI, the user has to specify the format in which they want the output. The following are the keywords users must specify to receive an output in their preferred format: -
  1. Scheduling Language  : -format=schedlang
  2. Json                                   : -format=json
  3. Yaml                                 : -format=yaml
The commands that can be used to receive an output are – new, display, modify and extract. For example, – if you want to display all folders in Json format, you need to run the below command: -
                                           ocli model display folder @ -format=json
 
Different Ways to Configure the Format
There are three ways to configure the -format parameter: -
  1. Via command line – the user can specify the format in line with the command as mentioned in the display command above.
  2. Via config.yaml file –
I.The user must locate the “format” keyword under “model” in the “config.yaml” file and manually edit its value.
Picture
​                                                          (OR)
 
I.Use the following Orchestration CL command to set the value for the “format”.

 
  1. Via default configuration - if the user does not pass format information via any of the above 2 methods, the default format is YAML.
 
A new display command option: “noid”
In Schedlang, all IDs are by default hidden from users when using the display, extract, and modify commands.
But in json and yaml, we can show or hide the IDs in the display command using the “noid” keyword. However, in the extract & modify commands, the IDs are by hidden by default.
The following figure illustrates the display command showing all the IDs.
Picture
​We now have a “noid” option and a display command that hides all the “ids”, as seen below.
Picture
​With the above demonstration, you can embark on a journey of enhanced efficiency and streamlined operations with HCL Universal Orchestrator. Experience how the seamless integration of JSON and YAML support transforms workflow management, simplifying complexities and empowering your business for unparalleled productivity. Join us and revolutionize the way you orchestrate success.
AUTHOR

Picture
Peddi Pranav - Technical Lead at HCL Software

Pranav became a member of HCL Software in August 2022 and currently contributes to the UNO Backend team. Outside of work, he enjoys embarking on adventures to new destinations and tackling puzzles as a hobby.​

Picture
Vipul Kumar - Senior Software Engineer 2 at HCL Software 
 
He joined HCL in January 2023 as a Backend Developer for Workload Automation team. He specializes in technologies like Java, Spring Boot, RESTful Web Services, Hibernate, Microservices, MongoDB, Oracle with over 4.5 years of experience. He enjoys working in challenging environments and is focused on enhancing the quality of Workload Automation products.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    October 2025
    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