CancelWorkItem

Data entered or changed for the specified workitem is canceled.

Action CancelWorkItem
Parameter
  • userId: the ID (GUID) of the user to allocate the work item to.
  • 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.
Return VoidResult
Example
private void cancelWorkItem(WorkItem item)
{
ManagedId id = toManagedObject(item);
BPMWebClientService.getInstance().execute(
new CancelWorkItem(ClientConstants.USER_ID, id, ClientConstants.CHANNEL_ID, ClientConstants.CHANNEL_TYPE), new AsyncCallback<VoidResult>()
{
@Override
public void onFailure(Throwable caught)
{
Window.alert("Error: " + caught.getMessage());
}
@Override
public void onSuccess(VoidResult result)
{
Window.alert("Work item cancelled");
getWorkList();
}
});
}

Required System Action

cancelWorkItem.