IBM BPM, V8.0.1, All platforms > Customize and rebranding interfaces > Customize Process Portal > Building Process Portal spaces > Building customized Process Portal spaces
Adding support for custom actions in the Human Task Management widgets
You can add actions to your user interface that are not directly supported by the Human Task Management widgets.
For example, you might want to add an action to the Tasks widget that opens a widget that shows a map with the customer's address using a service, such as Google Maps.
When a custom action is triggered, an ActionRequested event is generated. The payload for the event contains the action ID, the selected items, and their types. You need to specify these properties in the settings for the widget.
Procedure
- Open the widget menu and select Edit Settings to see the configuration tabs.
- Select the User Interaction tab, and on the Views pane create a custom action. Provide the following information for the custom action.
- A name for the action. This is the name that the users of the widget see in the Actions list.
- A description of the action. The description is shown in the widget as the tooltip for the action.
- An action ID. This ID is passed as an event action in the event that is emitted by the widget. The ID must start with an underscore (_).
- When the action is enabled.
- Wire the event for the custom action to the widget that is triggered by the action.