Testing public processes
If a process can be validated without errors, it can be tested.
To validate and test a process:
-
First, you must load the process. You load a process from an
application database of the farm to which you are connected. Alternatively, you
can load an existing process file from a folder in the file system.
These user interface elements are displayed when you load a process:
- Process work space
- Process Information
- Parameters
- Output
- Watch
- To validate the process code, click Validate on the toolbar. If the code is valid, this message is displayed: The process is valid.
- To validate the code of the current process for a cloud environment, select Tools > Validate for Cloud. The validation checks the process for specific runtime functions that are not available in a cloud environment.
- Click Test Process on the toolbar or select Tools > Test Process from the menu, to start the test mode.
- On the Parameters tab in the pane on the right side, the parameters of the process and their types are shown. If defined, the parameters must be passed to the process. In test mode, the Parameters tab is activated. You can specify parameter test values. For each parameter, you must specify a test value. To specify a test value, click the cell in the Values column.
-
When you start the test mode, the Run button on the toolbar is activated. The
color of the button turns to green, a green arrowhead that points to the right.
Click the button to execute the process.
The process starts running and any messages or output from the process (notification functions, excepting emails) or the Application Engine are shown on the Output tab. To clear the messages on the Output tab, select View > Clear Output Window from the menu.
When you click Redirect to File on the toolbar, messages are stored in the temp directory.
Note: For internal processes that have complex parameter types, the strategy that is described above does not work. You cannot specify the parameter values for them on the Parameters tab. -
To store the process in the application database of the farm to
which you are connected, click Publish on the toolbar. Click Yes to confirm that you want to publish the
process. A message is displayed that the process has been published. The version
number of existing processes is incremented by one.
Note: Ensure that the process has been tested and validated before publishing a new version in the application database of the farm.