Calling A Subprocess
Learn how a process can call another process as a subprocess.
Last updated
Was this helpful?
Learn how a process can call another process as a subprocess.
Last updated
Was this helpful?
To invoke a subprocess, use the run
keyword and the process selector widget:
In your automation, write the keyword run followed by a slash /
From the menu that appears, select Process.
Click on the Process drop-down menu to select the process you want to invoke.
Click Save.
In your subprocess, include one of these lines at the end of your automation to return data to the parent process. This syntax informs Kognitos of the subprocess's result so it can be accessed in the parent process.
For a single result: the result is {result}
For multiple results: the results are {result 1}, {result 2}, ...
In your parent process, add a new line after run <subprocess>
. Indent and reference the data needed for the subprocess run on the new line. If a data element is required but not explicitly provided, Kognitos will raise a .
If you need to run multiple instances of a subprocess in parallel, see for details on using the start a run
syntax.