Using a Subprocess
See how subprocesses help modularize and scale automation workflows.
About this video
Discover how to modularize your Kognitos automations using subprocesses, so shared logic is defined once and reused across any process that needs it.
What you will learn
- What a subprocess is and when to use one instead of repeating logic inline
- How to define and invoke a subprocess in plain English
- How subprocesses return data back to the calling parent process
- When to use a subprocess vs a Book for reusable automation components
Common questions
What is a subprocess in Kognitos?
A subprocess is a reusable automation module you can call from within a larger process. Instead of repeating the same logic across multiple processes, you define it once as a subprocess and invoke it wherever needed.
When should I use a subprocess instead of a Book?
Subprocesses encapsulate execution logic: steps to run. Books store knowledge and rules: data to reference. Use a subprocess when you want to call a set of steps; use a Book when you want to look something up or apply a shared rule.
How do I call a subprocess from a parent process?
In plain English, you invoke the subprocess by name in your process instructions. Kognitos resolves the reference and executes the subprocess inline, returning any outputs back to the parent process without any code or connector configuration.
Can subprocesses pass data back to the calling process?
Yes. Subprocesses can return values to the parent process. This enables modular designs where each subprocess handles a specific transformation and the parent process orchestrates the full workflow.