Show contents 

Modeling Business Processes and Their Execution > Getting Started with the Business Process Management Extension in the Desktop Application > Building Process > Creating Stage Steps > Creating the Subprocess Call Step

In this article:

Setting Up Step Description Parameters

Setting Up Links between Data Entry Form/Report and Process Parameters

Setting Up Events Executed on Step Execution Start or End

Creating the Subprocess Call Step

To create a step for starting one or several nested subprocesses with specific parameters, open the subprocess call step wizard.

Open the wizard

Setup of the Subprocess Call step includes the following operations:

  1. Set up basic step properties. After basic step properties have been determined, click the Next button.

  2. Set up step description parameters.

  3. Set up link between parameters of data entry form/report and process.

  4. Set up events executed on step start or end.

Setting Up Step Description Parameters

To set up step description parameters, use the Step Description page in the step wizard:

Set the parameters:

If the list does not contain the required group of users, click the Open Security Manager button. The dialog box of the security manager of Foresight Analytics Platform, which enables the user to create the required group of users.

To edit the selected subprocess, click the Edit Process button. The Set Up Business Process dialog box opens to edit a subprocess.

If the required subprocess is absent in the list, click the Create Process button. A new process creation dialog box opens.

Enter a numeric value of step execution time and select a time measurement unit in the list: minute, hour, day (default), week, month, quarter, half-year, or year.

To determine time, by which step must be finished, select the Finish Step By checkbox. When the Minute or Hour measurement units are selected, this box is hidden.

If the step is not finished by the scheduled execution period, the step status becomes Expired.

The step execution period impacts the whole process execution period, which is determined during process start.

After the parameters have been determined on the Step Description page, click the Next button.

Setting Up Links between Data Entry Form/Report and Process Parameters

To start a subprocess with the same parameters as the process step, set up a link between subprocess parameters and process parameters on the Manage Parameters page in the step wizard:

Set the parameters:

The Group Call checkbox is selected by default with unselected splitting parameter value that is required to be filled. If during process execution there is not necessity to divide a subprocess by a parameter, deselect the checkbox.

To filter subprocess start by splitting parameter attributes or by its values, set up subprocesses call conditions using the Filter button.

NOTE. If selected dictionary elements have no child elements, on executing subprocess, the step will finish without subprocesses start.

Example of splitting schema use

Determine assembly and method

By default, automatic execution is selected for the step. The steps of the process with automatic execution method are marked with the icon at the top right corner of the block.

One can change execution method after step setup. To do this, select the step in the working area on business process setup and select the Automatic Step Execution context menu item.

Example of restarting subprocess from the first step

Example of restarting subprocess from the last step

NOTE. To restart single instances of subprocess with automatic execution method on rejecting the current step for the Subprocess Call finished step select the Selective Subprocesses Rejection checkbox and manually start required subprocess instances.

NOTE. If the empty value was fixed for subprocess parameter, which is a splitting parameter, on the process execution the step finishes without subprocesses start.

If the drop-down list of process parameters does not contain the required value, click the Process Parameters button. The Process Settings and Parameters dialog box opens where process parameter can be added.

After the parameters have been determined on the Manage Parameters page, click the Next button.

Setting Up Events Executed on Step Execution Start or End

To set up the events executed automatically on step execution start and end, use the Events page in the step wizard:

Create a list of executed operations:

  1. Select the tab with the configured event on the Events wizard page. The following events are available:

  1. Click the Add button on the toolbar and select the added action:

To edit the selected unit, click the Edit button.

To create a unit, click the Add button.

Sub <Fore-method name>(Sender: IBProcessInstance; Args: IBProcessStepStateEventArgs);

Parameter:

Sender. Process instance.

Args. Event information: step, step old state, new state.

To refresh the methods list, click the Refresh List button.

To copy method signature, click the Copy Signature button.

NOTE. The number of added actions is unlimited.

To reorder operation execution, use the Move Up and Move Down buttons on the toolbar on the Events wizard; to delete, click the Delete button.

The list of automatically executed actions can be empty.

To determine parameters on the Events page, click the Finish button.

NOTE. To speed up resource-intensive reports, select the Execute Calculation and Fore Methods Steps on BI Server checkbox in process settings.

After creating the process steps, set up process steps execution conditions.

See also:

Creating Stage Steps