V10.6
Overview
As a workflow developer, you can now add custom actions relevant to case management in a solution. Addition of custom actions helps ease the solution customization per customer needs.
Below is a comparison between the custom action types:
Custom action type | Frontend | Backend |
---|---|---|
Use case | An action that requires input from the user via forms.
For example: Update case type and Insert comment. |
An action that can be executed on a case without additional input from the user.
For example: Close case and Mark for QC. |
Command | OpenWorkflowWindowCommand | InvokeWorkflowCommand |
Workflow guidelines for the action logic |
|
|
Completion message | The workflow end message. | App notification pop up. |
Configure custom actions
To configure custom actions, follow the steps below:
Step | Action |
---|---|
1. | Create the workflow with the logic of custom actions. |
2. | Create a yaml (ConfigSet) with custom actions, for the grids where the custom actions should be available. |
3. | Link between the ConfigSet and your Solution.
|
Once all this is done, refresh the portal page to see the custom actions in the context menu or the toolbar in the portal.
1. Create and import the workflow and the ConfigSet
Use the custom action template CoraOrchestrationTemplates in this link to learn about the configuration options for custom actions. The package includes the following.
Type | Name | Comment |
---|---|---|
ConfigSet | CustomActionExample_ConfigSet.zip | Contains example of a yaml document for custom actions.
Use this as a template for configuring custom actions. Contains examples of:
|
Workflow | CA Frontend Example1.zip | Sample workflow for a frontend custom action.
Use this as a template for actions that require input screens from the user. |
Workflow | CA Backend Example2.zip | Sample workflow for a backend custom action.
Use this as a template for actions that do not require any input from the user. This workflow also imports the web service “InvokeWorkflow” that is mandatory for the backend actions. |
2. Create yaml (ConfigSet) with custom actions
There are three main sections in the yaml document:
Section | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
commandManagerId | Defines the relevant grid for the custom actions.
The available options are:
| ||||||||||||||||||
commandTable | Defines the added custom actions.
Types of custom actions:
Configure the behavior of the actions:
| ||||||||||||||||||
controlTable | Defines the location in the UI where the custom action is available, the Context Menu and the Toolbar.
General structure:
|
Starting from V10.7, you can configure custom actions with display rules that determine the selected Process page process, stored view or view type:
The display rules can be applied on various context menu items and toolbar items.
Examples
Workflow space Id can be queried with the following:
rt.HttpRequest.Headers["WorkflowSpaceId"] == "GUID"
Solution Id can be queried with the following:
rt.HttpRequest.Headers["SolutionId"] == "GUID"
Selected stored view can be queried by name and type.
- type: rule value: ':$context.StoredViewName=="caso"' - type: rule value: ':$context.StoredViewType=="shared"'
The view type can be queried with the following expression:
- type: Rule value: ': rt.HttpRequest.Headers["viewtype"] == "active"' - type: Rule value: ': rt.HttpRequest.Headers["viewtype"] == "completed"'