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

Enhance Modularity and Reusability in Workflows by using Subflow Tasks

10/29/2025

0 Comments

 
Picture
The management of methods or processes can be challenging when they contain numerous tasks and complex dependencies. Managing complexity and tracking progress can be daunting without clear visualization of tasks and their relationships. A simplified hierarchical structure can greatly improve this type of scenario.
A subflow is a specialized task designed to embed an entire workflow within another workflow. Previously, the functionality was limited to nesting individual tasks within a workflow. This new capability, introduced with subflow tasks, allows for greater modularity and organization by enabling the inclusion of complete workflows as a single, manageable unit within a larger workflow structure. 
Picture
Let's explore its impact through a real-life example. 
Imagine your company uses two main workflows: Employee Payroll and Eligible Carry Forward Leaves. Both of these main workflows contain a common subflow task called Approved Leaves. 
Picture
Scenario:

Main Workflow 1: Employee Payroll 
When an employee's payroll needs to be processed, the Employee Payroll workflow is initiated. As part of this process, the system needs to know which leaves have been approved for the current pay period to calculate accurate deductions or adjustments. This information is retrieved by running the Approved Leaves subflow task. 

Main Workflow 2: Eligible Carry Forward Leaves 
​At the end of a financial year, the Eligible Carry Forward Leaves workflow is triggered to determine how many leave days an employee can carry forward to the next year. To do this, the system needs a comprehensive record of all approved leaves taken throughout the year. Similar to the Employee Payroll workflow, this information is retrieved by running the Approved Leaves subflow task. 

Common subflow task: Approved Leaves 
The Approved Leaves is a standardized and reusable subflow task that encapsulates the various tasks involved in managing approved leave requests. It contains the following tasks: ● Maternity Leaves: This task processes and records approved maternity leave periods. ● Sick Leaves: This task processes and records approved sick leave periods. ● Approved by Manager: This task acts as a confirmation step, ensuring that all leave entries processed within this subflow have received the necessary managerial approval. 

How it works: 
When either the Employee Payroll or Eligible Carry Forward Leaves main workflow needs information about approved leaves, they run the Approved Leaves task. This task then runs its internal tasks (Maternity Leaves, Sick Leaves, Approved by Manager) to gather and confirm the relevant leave data. Once completed, the Approved Leaves task returns the necessary information to the calling main workflow. 
​

This approach ensures consistency in how approved leaves are handled across different organizational processes, reduces redundancy, and simplifies maintenance. For example, if the company introduces a new type of approved leave, only the Approved Leaves subflow needs to be updated, rather than modifying multiple main workflows. 

Subflow tasks enable the reuse of workflows across various scenarios. By encapsulating a workflow containing related tasks within a single subflow task, you create a reusable component that can be applied in different contexts and processes, promoting efficiency and consistency. 
Previously, data transfer was limited to individual tasks within a workflow. Now, with the subflow task type, you can transfer data between entire workflows, enhancing flexibility and integration.

Picture
Cherian T M, Senior Technical Writer at HCL Software
Cherian T M is a dedicated technical writer who transforms complex software features into clear, accessible content. With expertise in creating documentation, engaging blog posts, and informational videos, he specializes in making new product capabilities easy for users to understand and adopt.  
​
When not charting the latest feature release, he enjoys the active pursuits of playing cricket, finding new perspectives through solo motorcycle rides, and diving into a good book or planning a new travel itinerary.

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