WorkflowWorkItemActionManager::dispatchWorkItemAction Method [AX 2012]

Dispatches a work item action to the workflow framework for processing.

client server public static void dispatchWorkItemAction(
    WorkflowWorkItemTable _workItem, 
    WorkflowComment _comment, 
    WorkflowUser _toUser, 
    WorkflowWorkItemActionType _workItemActionType, 
    MenuItemName _menuItemName, 
    boolean _isWebMenuItem, 
   [Name _queueName])

Run On

Called

Parameters

_workItem
Type: WorkflowWorkItemTable Table
The work item record ID for which the action is being taken.
_comment
Type: WorkflowComment Extended Data Type
The comment that is associated with this action.
_toUser
Type: WorkflowUser Extended Data Type
The target user of the action for the accept, delegate, and request change actions only.
_workItemActionType
Type: WorkflowWorkItemActionType Enumeration
The work item action type to take.
_menuItemName
Type: MenuItemName Extended Data Type
The name of the menu item from which the action originated.
_isWebMenuItem
Type: boolean
A flag indicates whether this request originated from Web or rich client.
_queueName
Type: Name Extended Data Type

ExceptionCondition
Error

Could not find the record in the workflow table for this work item.

-or-

Workflow action type not supported.

Show: