Skip to content

Process

Processes the current WorkItem with the specified parameters.

1
myWorkItem.Process(selectedAction?: string, async?: boolean, completedBy?: ( string | [Identity](./../Identity/index.md) )):WorkItem

Processes the current work item using the specified parameters.

1
myWorkItem.Process(selectedAction: string, async: boolean, completedBy: ( string | [Identity](./../Identity/index.md) )):void

Parameters

string selectedAction optional
    Specifies the action to be selected. If not specified, the existing WorkItem.SelectedAction property is used.

boolean async optional
    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 optional
    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