WorkflowWorkItemActionManager::findActionTypeForMenuItem Method [AX 2012]

Retrieves the action type associated to a menu item for a given work item.

client server public static WorkflowWorkItemActionType findActionTypeForMenuItem(
    WorkflowWorkItemTable _workItem, 
    MenuItemName _menuItemName, 
    boolean _isWebMenuItem)

Run On

Called

Parameters

_workItem
Type: WorkflowWorkItemTable Table
The work item record ID for which the action is being taken.
_menuItemName
Type: MenuItemName Extended Data Type
The menu item name to retrieve the action type for.
_isWebMenuItem
Type: boolean
A flag that indicates whether this request is originating from Web or rich client.

Return Value

Type: WorkflowWorkItemActionType Enumeration
The type of work item action for the corresponding menu item.

This method performs a lookup over the approval and task metadata to find the action associated to this menu item. The primary assumption for this method is that the approval and task outcomes have been assigned unique menu items.

Show: