CompleteWorkItem

Complete a work item (and update the associated input and output data).

  • The request must specify the work item that should be completed.
  • The response indicates whether or not the operation succeeded.
Action CompleteWorkItem
Parameter
  • item: the WorkItem retrieved from a call to OpenWorkItem or OpenNextWorkItem.
  • channelId: the channel ID being used. For a GWT client, this is typically openspaceGWTPull_DefaultChannel.
  • channelType: the channel type being used. For a GWT client, this is typically GWTChannel.
  • userId: the ID (GUID) of the user to close the work item.
Return WorkItemResult
Example
private void completeWorkItem(WorkItem item)
{
BPMWebClientService.getInstance().execute(
new CompleteWorkItem(item, ClientConstants.CHANNEL_ID, ClientConstants.CHANNEL_TYPE, ClientConstants.USER_ID), new AsyncCallback<WorkItemResult>()
{
@Override
public void onFailure(Throwable caught)
{
Window.alert("Error: " + caught.getMessage());
}
@Override
public void onSuccess(WorkItemResult result)
{
Window.alert("Work item completed :" + result.getToDoItem().getId());
getWorkList();
}
});
}

Required System Action

None.