Modeling Business Processes and Their Execution > Getting Started with the Business Process Management Extension in the Web Application > Building Process > Creating Stage Steps > Creating the Calculation Step
In this article:
Setting Up Basic Properties and Parameters of Step Description
Setting Up Link between Calculation Algorithm and Process Parameters
Setting Up Actions Executed When Event Occurs
To create a calculation step:
Select the process stage or stage step and select the Calculation step in the drop-down menu of the
Data Entry button. The step selection button looks like the last selected step.
Select the Calculation created step in the working area and click the Settings button on the toolbar. The Calculation parameters panel opens to set up the step.
Setup of the Calculation step includes the following operations:
After creating and setting up process steps, set up steps execution conditions.
To set up basic properties and step description parameters, use the Settings tab on the step parameters panel:
Set the parameters:
Calculation Object. The box is mandatory. Select calculation algorithm in the drop-down list. To quickly search for an algorithm, use the search string. The list contains repository objects tree where calculation algorithms and folders containing them are only displayed.
Execution Method. Select the Manual or Automatic radio button:
By default, automatic execution is selected for the step. Process steps with automatic execution method are marked with the icon. Execution method can be changed in step settings by selecting the step in the working area during business process setup and clicking the
Settings button on the toolbar.
To start a calculation algorithm with the same parameter as the process step, set up a link between calculation algorithm parameters and process parameters on the Link tab on the step parameters panel:
NOTE. If calculation algorithm does not contain parameters, the list is displayed as empty.
For each static field, which displays calculation algorithm parameter name, select the corresponding process parameter name in the drop-down list. If the parameter is not selected, the calculation algorithm opens with the parameter value specified in the default calculation algorithm.
Select one selection type in the Selection Type drop-down list:
Source. It includes elements only of the first hierarchy level.
Child Elements. It includes elements only of child hierarchy levels.
Source + Child. It includes elements only of the first and child hierarchy levels.
By Selection Schema. Previously created selection schema of dictionary elements is used, for example, for the Organization. Structure dictionary:
By Function. The selection schema created using Fore function is used, for example:
NOTE. After selecting the unit, specify the method: Function <function name>(selection: IDimSelection): IDimSelection.
To limit the number of parameter values, with which a data entry form is started, execute the following operations:
Click the Fix Calculation Algorithm Values button. The drop-down list displays calculation algorithm parameter dictionary elements.
Select parameter value of the calculation algorithm linked to process step. Multiple selection is available.
If the parameter value is is not selected, selection is absent in the calculation algorithm.
To set up actions executed automatically on step execution start or end, use the Events tab of the step parameters panel:
Create a list of executed operations:
Select the configured event:
Before Execution. The list of actions will be started before executing the current step in the specified order.
After Execution. The list of actions will be started after executing the current step in the specified order.
On Rejection. The list of actions will be started on the current step rejection. The list is available for steps with manual execution. If the step is executed automatically, the tab is not displayed.
On Deadline Disruption. The list of actions will be started on deadline disruption to execute the current step in the specified order. To execute the actions:
When the server execution of processes is selected, select the Check Deadline Disruption of Steps checkbox on the Scheduler page and set check frequency.
When the client execution of processes is selected, select the Check Deadline Disruption item on the Administration page.
In the drop-down menu of the Add button on the toolbar select the added action:
Fore Method. Fore method execution.
Message. Sending email.
NOTE. One can add several actions.
Set up the action.
To change operation execution order, use the Move Up and
Move Down buttons on the toolbar on the Events tab; to delete, use the
Delete button.
The list of automatically executed actions can be empty.
To set up Fore method execution, determine mandatory parameters on the parameters panel of the selected event:
Available parameters:
To set up email sending, determine mandatory parameters on the parameters panel of the selected event or in the Message dialog box. Use the Message dialog box to create and edit a message text with complex formatting.
After the parameters are determined, click the Apply button.
Available parameters:
Text formatting settings:
Available operations:
See also: