Skip to content

Process

Processes the current WorkItem with the specified parameters.

1
myWorkItem.Process(selectedAction: string, async: boolean, completedBy: ( string | Identity )):WorkItem

Processes the current work item by specified parameters.

1
myWorkItem.Process(selectedAction: string, async: boolean, completedBy: ( string | Identity )):void

Parameters

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 synchronous or asynchronous. If set to true, the work item is processed in another thread context.

( string | Identity ) completedBy
    The identity of the user who completed the work item.

Returns

The current 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 processing continues in the background. Otherwise, it waits until processing is completed.

See Also