Task Information Widget - ActionRequested Event (Handled)
Opens a tab for each referenced task for viewing, editing or creating.
This event is handled for seamless interaction with the
Task Creation, My Tasks, Available Tasks,
Tasks I Created and Human Workflow Diagram widgets.
Event Name
com.ibm.widget.ActionRequested
General purpose: The user requested an action to be performed.
Payload
Type: JSON
{ "type" : "object", "description" : "Reference action for items.", "properties" : {
"action" : { "type":"string", "description":"action name"},
"items" : { "type":"array", "optional":"true", "items": { "properties": {
"id" : { "type": "string" },
"type" : { "type": "string" }
} } }
} }
Tabs are opened for tasks referenced by the id properties.
The widget only considers events with the action property being
one of the following
- create
Opens a task based on the template to create it.
- init
Opens a created task to submit it.
- edit
Opens an assigned task to work on and complete it.
- view
Opens a task to view it.
For these actions the widget only considers entries with the type property
being one of the following object types
- com.ibm.task.Task
Opens the task for viewing, editing or starting, only if action
property is one of init, edit or view.
- com.ibm.task.TaskTemplate
Opens a task based on the template to create it, only if action
property is create.
If the type is not one of these, the item is disregarded and no action is
performed for it.
The last task in the items array property will become active.
If a task is already open in view mode, the task is switched
to the mode corresponding to the action property.
The user must have at least reader rights to view a task.
If the user is not authorized for init or edit mode, the
task is shown in view mode.
Handled Since
6.2.0.1
Parent Topic: Task Information Widget