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

Enhancing workflow efficiency with embedded tasks

12/9/2024

0 Comments

 
Picture
​In a HCL Universal Orchestrator environment, embedded tasks are self-contained operational units within a workflow, encompassing all necessary logic, execution instructions, and parameters unlike traditional tasks reliant on external templates.
​Embedded tasks facilitate streamlined processes for handling scripts, database operations, and file management independently of external dependencies, creating cohesive and easily managed workflows. This article explores the concept of embedded tasks, their key benefits, practical use cases, and the transformative impact they have on workflow automation.
 
Choosing between embedded and referenced tasks
When deciding between embedded and referenced tasks, the choice often boils down to workflow requirements:
  • Embedded tasks: Best suited for workflows that require localized, specific operations. They reduce the need for extensive configuration, simplify processes, and can enhance security by ensuring a controlled and precise management of the definition. Embedded tasks are also flexible enough to support external dependencies when necessary, making them adaptable to various use cases without introducing unnecessary complexity.
  • Referenced tasks: Ideal for reusable operations that span across multiple workflows. They promote consistency and modularity. Referenced tasks are best when you need to maintain standardized operations across multiple processes while ensuring easier updates and maintenance.
Organizations prioritizing simplicity and reliability often find embedded tasks to be the superior choice. By consolidating task definitions within workflows, embedded tasks eliminate ambiguity and enable teams to focus on optimization rather than troubleshooting.
Advantages of Embedded Tasks
  1. Simplicity and transparency: Embedded tasks integrate seamlessly into workflows, enhancing clarity, maintainability, and shareability. By removing the need for external references, they ensure self-contained, error-resistant and easily manageable workflows.
  2. Reliability through isolation: Self-contained embedded tasks are insulated from external disruptions, enhancing reliability and control, especially crucial in systems demanding high uptime.
  3. Scalability without complexity: Embedded tasks make it easy to scale workflows without adding complexity. They eliminate the need for extra resources, like creating and managing separate task definitions, saving both time and storage space. This makes it possible to create workflows with minimal management effort.
Embedded automation definition
  • When using the Schedlang format, use the BUILTIN parameter to define embedded tasks.
  • jobDefinitionRef or jobDefinitionRefId fields are not required at the job level, unlike in YAML/JSON formats for referenced tasks.
  • name and workstation fields are required at the job level, though these fields can be ignored at the jobDefinition level for embedded tasks.
Here are some illustrative examples of how embedded tasks can be defined and utilized within workflows using different formats.
SchedLang Format
 
$jobstream
/WS_AGT_0#/JS_DEVICE_MONITOR
DESCRIPTION "Monitor sensor data in real-time"
/WS_AGT_0#TASK_READ BUILTIN
TASK
{
  "executable": {
    "interactive": false,
    "script": "sleep 60",
    "credential": {}
  }
}
RECOVERY STOP
END
 
Yaml Format
 
kind: JobStream
def:
  folder: /
  name: JS_DEVICE_MONITOR
  workstation: /WS_AGT_0
  jobs:
    - name: TASK_READ
      workstation: /WS_AGT_0
      jobDefinition:
        description: Embedded job definition
        type: executable
        task:
          executable:
            interactive: "false"
            script: sleep 60
 

Practical use cases and guidelines for implementing embedded tasks
IT operations automation: Embedded tasks streamline repetitive tasks in IT environments, such as server maintenance, log monitoring, or patch deployment. To ensure task clarity and reliability, each embedded task should have a focused scope, complementing the workflow’s purpose. For example, an embedded task could monitor server disk space and trigger alerts if certain thresholds are exceeded. Testing in isolated environments is essential to verify reliability before deployment.
Data processing in workflows: Data analysts can add tasks directly into workflows to handle data cleaning, transformation, and analysis.
Conclusion

Embedded tasks streamline workflow management by adding tasks directly into workflows, enhancing efficiency, dependability, and agility. This approach reduces complexity, increases operational efficiency, and provides better control over operational environments. Widely applicable in areas like IT operations and embedded systems, embedded tasks support scalable, and transparent workflows—key to modern automation strategies.
Authors

Picture
Alok Ranjan Barik – Technical Lead at HCLSoftware

He joined HCL in August 2022 as a Backend developer for Workload Automation team. He possesses hands-on experience with platforms including Java, Rest API, microservices, Spring, and MongoDB. Outside of work, he enjoys exploring new places and playing cricket.

Picture
Maddu Sreekanth – Software Engineer at HCLSoftware.

He joined HCL in August 2023 as a Backend developer for Workload Automation team. He brings a strong foundation in modern technologies and is actively involved in developing innovative software solutions. He is committed to delivering high-quality results and continuously enhancing his technical expertise to excel in his role. Outside of work, he enjoys exploring new ideas and staying up-to-date with the latest advancements in technology.
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