cancelWorkItem

Use this function to cancel any changes that a user has made on a work item form. It closes the work item form, discards any changes on the form, and leaves the work item in the user’s work list.

The cancelWorkItem function is available in the WorkPresentationService.