Anywhere Mobility Studio Documentation
Sub process functionality
Sub process functionality supports calling another (sub) process during the execution of the running (main) process. The sub process nests into the flow and integrates seamlessly into the main process, as if it is just another page or pages.
As an example, the Move Inventory process uses this functionality by excluding item selection from the main process. A new process "SELECTITEM" handles item selection by scanning, entering, or looking up the number.
Two pages are defined: one card and one data grid page. The flow links the individual pages, but in this case only a lookup page exists, which is not part of the flow. The only additional flow needed is to mark the end of the sub process, to return to the main process, define a flow line with an "End Process" type and code.
The sub process lists several parameters. These parameters store values and exchange information with the main process.
A sub process can display information only, or it can request information from the user and share it with the main process. Set up parameter exchange in the main process.
The flow of the main process contains the flow lines that interact with the sub process. The selected line in the screenshot shows that after the "02-BINFROM" page, the flow directs the user to the sub process "SELECTITEM". Ensure a flow line configures that starts again from the sub process, to continue the flow after the sub process completes.
When selecting a flow line that starts a sub process on True, you can link the required parameters from the main process to the sub process.
Select the appropriate flow line, the Subprocess Relation Mapping button becomes available. Select it and a new page appears. You can now link all known parameters from the sub process to parameters from the main process.
Three direction choices are available:
- When you only need to push the parameter value into the sub process with no return value needed, use Source->Target.
- When you need to receive the parameter value from the sub process, use Target->Source.
- When the sub process needs input from a specific parameter and also needs to send an update for that parameter, use Both.
When the main process has no value but an initial value is needed, use the Expression field to supply one.