Customizing sign-off workflow UI
The Sign-Off Module provides a configuration file, settings.js, that contains the configuration for the default sign-off workflow UI that you can customize to suit your requirements.
The file is stored in the delivered source code for the UI, in mra-product-control-ui/src/settings.js
Dynamically updating the Sign-off Toolbox
To perform workflow actions on the tasks, the Sign-Off Toolbox widget enables and disables the relevant buttons (for example, Initiate, Approve, and Reject) for the workflow type assigned to the task. These buttons are defined as endpoints in the settings.js configuration file. You can use this file to dynamically update the workflow type for different user groups by configuring and adding any buttons and endpoints that you want to trigger.
The following table summarizes the customizations available.
| Element | Customization |
Property
|
|---|---|---|
| Workflow | Add or change states in the status transition flow | signOffTaskStatusNames |
|
Set the servers and relevant Cubes that are available for sign-off. The object key is the server name and the value is the array of Cubes to use within that server. For example
For each server listed, you must also set additional configurations in the env.js file. See Configuring multiple servers for sign-off in env.js |
signOffServers | |
|
Config that maps to the Activiti config on the backend. In the default, 4-eyes has a two-step approval and Simple only requires one approver who can approve straight avay |
signOffWorkFlowMap | |
|
Actions that are allowed for different roles for different workflow types. You must map this to the Activiti config in the backend. See Customizing sign-off backend |
signOffRoleActionMap | |
|
Specify how to display buttons that are not relevant for the current state of the workflow:
|
hideDisabledButtons | |
|
Configure Sign-off Toolbox widget.
|
signOffButtonInformation | |
| Set the status for the first action with the daily task. The rest call to get to this status starts an instance for the selected as-of-date. | startDailyProgressStatus | |
| Colors and percentages for the statuses in the Task Completion widget | signOffStatusProgress |