WorkflowWorkItemActionManager::findOutcomeNameForMenuItem Method [AX 2012]

Retrieves the outcome name associated to a menu item for a specified work item.

client server public static WorkflowOutcomeName findOutcomeNameForMenuItem(
    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 outcome name for.
_isWebMenuItem
Type: boolean
A flag that indicates whether this request is originating from Web or rich client.

Return Value

Type: WorkflowOutcomeName Extended Data Type
The name of the approval or task outcome from metadata for the menu item.

This method performs a lookup over the approval and task metadata to find the outcome name 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: