Giving manual parameters for the execution of a Subprocess
The simplest case for a Subprocess is a Subprocess that requires no input parameters. Testing such a Subprocess is basically just executing it manually or calling it from the Process. The last step in testing is to review the execution of the Subprocess. However, in most of the cases, Subprocesses require some parameters from the Process calling the Subprocess. Before going through the steps for testing, let’s walk through how to check which input parameters are required for the Subprocess.
First, you need to find the Subprocess from the Subprocess List View. See instructions for this below.
Open the Subprocess in the Editor by clicking the name of the Subprocess.
From the Process Editor, select the Manual Trigger.
The Parameter Editor on the right provides you with a list of the parameters that are required for the Subprocess as an input. Another way to inspect the Subprocess parameters is to navigate to the Process Editor of the main Process. There you can open the Subprocess call element. The Subprocess call element shows the needed parameters and you can assign variables or values from the main Process. Note that in the main Process' Editor view you can't edit what parameters the Subprocess needs.
Take a note of the parameters as you will need it for next steps.
Testing of the Subprocess
Steps to take in testing by running the Subprocess:
A. Find the Subprocess in the Subprocesses List and run it
Open the Subprocess List View
Locate the Subprocess you want to run
Open the menu
Select Run once
B. In the dialogue provide the input parameter values and click Run once
C. Monitor the Process execution
See the next module for details on how to do this.
D. Validate the execution
Based on the monitoring results, validate the Subprocess execution against the result that is expected by design.
The next article is Example on Testing the Subprocess by calling it from a Process