How to create a Process
When you create a new Solution in Linx Application Designer, a Process is created by default. You can rename your Process if required.
You can add additional processes to your Solution by clicking Process on the toolbar:
To have your process perform specific functions, add Functions and Types from relevant Plugins, or add Custom Types that you can define yourself.
The following optional Properties can be set for a Process:
Input: Input values for the process.
Output: Return values from the process.
Expose web service: If set to true, this process can be called via the REST web service.
Single instance: If set to true, only one instance of the process will be allowed to run at a time. Calls will be queued if the process is busy.
A Process can also contain another process or processes. A process that contains another process is known as a "controller process".
Creating a Controller Process
Linx uses the RunProcess function to control the flow of your project by creating a controller process. A 'controller process' kicks off a set of processes in a specified sequence. Use this method when you want to run a process from inside another process.
The advantage of this is that a set of functions that complete one task is neatly contained in a process. This practice makes building, changing and debugging processes much easier. You can also start to re-use common processes when you use this method.
Adding a Controller Process
To invoke the RunProcess function, drag the process you want to run from your Solution Explorer into the calling ("controller") process.
The calling process waits for the RunProcess function to complete before continuing to run subsequent functions.