Data segments are used to separate access permissions for users or groups of users to specific cube data slices on process startup.
NOTE. Data segment management is available only for the Data Entry and Approval steps in the web application.
To manage data segments, click the Edit button located to the right of the Data Segment parameter on the side panel with step settings. The Segment Settings dialog box opens:
The left part of the dialog box contains the list of existing cube data segments used as a data sources of the selected data entry form for the Data Entry Form parameter on the side panel. The right part of the dialog box contains settings of interaction between the process and the selected data segment.
To add a segment, click the Add Segment button. After this the cube data segment wizard. The wizard can also be opened in the object navigator using the Segments item in the standard cube's context menu. For details about working with data segments, see the Cube Segments section.
To display the added segment and refresh the list of existing segments, click the Refresh button.
To link the selected segment to step, select the Link to Task checkbox. The icon indicating the link of the segment with the step is displayed. One can link several segments to a step. When starting a process, one separates access permissions for users or groups of users in the data entry form by data segments linked to the task.
If one or several data segments are selected for the Data Segments parameter on the side panel, the Link to Task checkbox will be selected for these segments, and vice versa, if the checkbox state is changed for segments in the Segment Settings dialog box, segment selection for the Data Segments parameter will be changed on the side panel.
Available segment management methods:
Static. Segment activity is set manually using the checkbox next to the segment in the Enable column in the cube data segment wizard
Dynamic. Segment activity is set automatically: a segment is enabled on step execution and disabled on step execution finish.
To determine a management method for the segment linked to the step, execute one of the operations:
In the Segment Settings dialog box toggle the Dynamic switch to the active state if dynamic management method is to be used for a specific segment. If the switch is toggled to the inactive state, static segment management method is used. When the Dynamic switch is toggled to the active state, one can view dimension element selections set in the wizard.
NOTE. When the Dynamic switch is toggled to the active state, one can set up segment dimension links.
In the step settings on the side panel select the Dynamic checkbox if dynamic management method is to be used for all existing segments. If the checkbox is deselected, static segment management method is used. If a process uses different segment management methods determined in the Segment Settings dialog box, the checkbox looks as follows:
To set up segment dimension links and process parameters, execute the following operations in the Segment Settings dialog box:
Toggle the Dynamic switch into an active state.
Link segment dimensions and process parameters. To do this, execute one of the operations for each static field, which displays segment dimension name:
Select the corresponding process parameter in the drop-down list. In this case, when a process is started, segment dimension element selection changes depending on values of the parameters, with which the process is started. The link is set by dictionary element keys.
If the parameter is not selected, the From Segment default value is set. In this case, when a process is started, segment dimension element selection corresponds to the selection set in the cube data segment wizard.
Fix segment dimension values. To do this:
Click the Fix button. The drop-down list displays segment dictionary elements.
Select segment dimension value. Multiple selection is available. In this case, when a process is started, the segment is created by specified values regardless of process parameters.
If segment dimension value is not selected, the segment dimension does not contain selection. In this case the data segment will unavailable on process start.
NOTE. To set up a link between segment dimensions and process parameters, one can use only the dimensions included in the segment.
When executing a step, the data entry form highlights the data corresponding to active segments and dimension element selections, which are set for them in the wizard and also to configured segment dimension links.
One can change a segment according to configured links on server execution, if the scheduler is started by one of the following users:
The user from the group Administrators.
The user who has permissions to change segment container and privileges: system login, permission to read and open all objects, login to object navigator, view access protocol.
See also:
Role Model Settings | Creating the Data Entry Step | Creating the Approval Step