Skip to content

ProcessWorkItem

Processes the specified WorkItem by specified parameters.

1
$Domain.ProcessWorkItem(workItemId: string, selectedAction: string, async: boolean, completedBy: Identity):WorkItem

Parameters

string workItemId
    of work item

string selectedAction
    Specifies the action to be selected. If not specified uses the existing WorkItem.SelectedAction property.

boolean async
    Specifies the processing of work item is syncronized or not. If set to true, work item is processed another thread context.

Identity completedBy
    Identity of user who completed the work item.

Returns

Returns processed work item.

Remarks

If work item state is not in Waiting or Created trying to call this method is prohibited and throws an access denied error.
When async parameter is true, this method returns immediately and process continues in background, otherwise it waits until process is completed.

See Also