ProcessWorkItem¶
Processes the specified WorkItem with the specified parameters.
1 |
|
Parameters¶
string workItemId
The ID of the work item.
string selectedAction
Specifies the action to be selected. If not specified, the existing WorkItem.SelectedAction property is used.
boolean async
Specifies whether the processing of the work item is synchronized or asynchronous. If set to true
, the work item is processed in another thread context.
Identity completedBy
The identity of the user who completed the work item.
Returns¶
The processed WorkItem instance.
Remarks¶
If the work item state is not in Waiting
or Created
, attempting to call this method is prohibited and throws an access denied error.
When the async
parameter is true
, this method returns immediately and the process continues in the background. Otherwise, it waits until the process is completed.