Creating the Approval Step

To create an approval step of the specific data set:

Open the wizard

To set up the Approval step:

  1. Determine basic step properties and also step description parameters:

Set the following parameters on the parameters for the Approval step on the Settings tab after determining basic step properties:

NOTE. Selecting users in the User drop-down list is available only if the checkbox is selected.

  • Data Entry Form. The box is mandatory. In the drop-down list select a data entry form or report, which will store step execution/rejection result. The list contains repository objects tree where data entry forms, regular reports, and folders containing them are only displayed. To quickly search for objects, use the search string.

authorization objectselection by dimensions

  • Data Segment. In the drop-down list select one or several cube data segments used as a data source in the selected data entry form, to separate access permissions for users or groups of users to data slices on process startup. To add data segments, use the cube data segment wizard. To set up interaction between the process and cube data segments, use the Segment Settings dialog box.

To determine a segment management method, use the Dynamic checkbox.

NOTE. The parameter is displayed if the Data Segments radio button is selected on process parameters setup.

  • Authorization Object. The box is mandatory. It is used to support the processes that use existing authorization objects created in the desktop application. In the web application to separate security subject access permissions, it is recommended to use data segments.

NOTE. The parameter is displayed if the Authorization Objects radio button is selected on process parameters setup. To ensure correct work of business processes in the data entry form, dimension selection of authorization object shoudl be fully contained in the selection by dimensions of data entry form that is used in the process step.

Set the following parameters on the Step Description page for the Approval step after determining basic step properties:

If there is no appropriate authorization object, click the All Process Authorization Objects button. The Set Up Process Authorization Objects dialog box opens where an authorization object can be added.

NOTE. To provide correct work of business processes in a data entry form, selection by dimensions of the authorization object should be fully contained in the selection by dimensions of data entry form that is used in the process step.

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

By default, the selected user has read-only permission.

When the checkbox is deselected, group or user will have read-only permission.

The checkbox is deselected by default. To enable the option, select the Grant Write Permission Within Step checkbox.

  • Data Entry Form. The box is mandatory. Select data entry forms and/or regular reports, in which the step execution/rejection result will be saved. The list contains repository objects tree where data entry forms, regular reports, and folders containing them are only displayed. When selecting a data entry form or a report, you can use search.

If data entry forms, which use data from the same authorization object, are selected to save step execution/rejection result, any of the selected forms will allows for data entry and approval. To correctly execute the step and display process tree in data entry form – selection by dimensions of data entry form should fully contain selection by dimensions of authorization object that is used in process step.

If regular reports are selected to save step execution/rejection result, step management is available only in process monitoring.

  • Default Data Entry Form. When several data entry forms or regular reports are selected, in the drop-down list specify a default data entry form or report. A default data entry form or report will open on process step execution. To edit the a default data entry form or report, click the Edit button. The data entry form or report will open for edit.

  • Step Execution Time. Specify the time, in which a step should be executed on process execution. Execution time is counted from step activation.

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.

  • Step Description. The box is optional. A text box for entering a comment for a step.

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

  1. Determine a link between data entry form or regular report and process parameters to open data entry form or report with the same parameters as the started process step:

NOTE. If data entry form or report does not contain parameters, the list is displayed as empty.

On the parameters panel, for the Approval step, on the Link tab for each static field, which displays data entry form or report parameter name, select the corresponding process parameter name in the drop-down list. If the parameter is not selected, the data entry form or report opens with the parameter value specified in the default data entry form or report.

To limit the number of parameter values, with which the data entry form or report is started, execute the following operations:

  1. Click the Fix Data Entry Form Parameter Values button. The drop-down list displays elements of data entry form or report parameter dictionary.

  2. Select parameter value of the data entry form or report linked to process step. Multiple selection is available.

If a parameter value is is not selected, selection is absent in the data entry form or report.

Determine the following for the Approval step on the Manage Parameters page:

Determine Correspondence Between Data Entry Form and Process Parameters on the Manage Parameters page:

  • To automatically copy parameter settings from authorization objects, click the Fill from Authorization Object button.

  • To manually set correspondence in the Parameter Link/Selection column, select the checkbox:

    • Undefined. In this case the data entry form or report opens with parameter value specified in the default data entry form or report:

    • Bind. In this case the process parameter corresponding to data entry form or report parameter is selected:

Select the dictionary attribute to be sent as a parameter to data entry form or report if required.

    • Fix. In this case, the specified values are selected in the drop-down list to send a limited number of parameter values to data entry form or report:

If there is no required process parameter, 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.

  1. Set up actions automatically executed on step execution start or end:

To create a list of executed operations:

  1. Select the configured event on the parameters panel on the Events tab. The following events are available:

    • 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.

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

    • Fore Method. Fill in mandatory boxes highlighted with rose:

      • Assembly. The box is mandatory. In the drop-down list select a Fore unit, the list contains all repository units and folders containing units. Search by unit name is available.

      • Method. The box is mandatory. Select a method in the drop-down list. The list contains all unit methods corresponding to the signature:

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

Parameter:

Sender. Process instance.

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

    • Message. Set message parameters:

      • To. Enter address of one or several main recipients separated by the ; character. The box is mandatory.

      • Copy. Enter address of one or several recipients separated by the ; character.

      • BCC. Enter address of one or several recipients separated by the ; character. The address will be hidden from other message recipients.

      • Subject. Enter message subject.

      • Object Link. Add a link to the step object in the drop-down list: algorithm, regular report, data entry form. Multiple selection is available.

When the object is selected, the Message box displays web application URL: http://app_name/#/app/obj?key=<obj_key>&mode=view&repo=<repo_id>, where app_name is name of opened web application, repo_id is identifier of the current repository, obj_key is key of the selected object.

      • Message. Enter message text.

      • Attached File. Attach files to the message. Each attached file is displayed below the edit box. To remove the file, click the Remove button to the right of the attached file name.

NOTE. The number of added actions is unlimited.

To reorder executed operations, use the Move Up and Move Down buttons on the toolbar on the Events tab. To delete operations, use the Delete button.

The list of automatically executed actions can be empty.

To create a list of executed operations:

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

    • 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.

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

    • Execute Fore Method. Determine:

      • Unit. In the drop-down list select a unit written in the Fore language, the list contains all repository units and folders containing units. Search by unit name is available.

To edit the selected unit, click the Edit button.

To create a unit, click the Add button.

      • Method. In the drop-down list select a method. The list contains all unit methods corresponding to the signature:

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.

    • Send Email.  Set message parameters:

      • To. Enter address of one or several main recipients separated by the ; character. The box is mandatory.

      • Copy. Enter address of one or several recipients separated by the ; character.

      • BCC. Enter address of one or several recipients separated by the ; character. The address will be hidden from other message recipients.

      • Subject. Enter message subject.

      • Contents. Enter message contents using the option of variables values substitution with step parameters, links to step objects to view in the web application, file attachments.

NOTE. The number of added actions is unlimited.

To reorder operations, use the Move Up and Move Down buttons on the toolbar in the Events wizard. To delete operations, use the Delete button.

The list of automatically executed actions can be empty.

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

Click the Finish button to exit the wizard.

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

See also:

Creating Stage Steps