closeWorkItem

Use this function to close a work item and to update the associated data with any changes the user has made while it was open. This function is for work items that are not completed, but on which work has been paused.

The work item must be Opened. The function sets the state to Pended.

Note that this function is available in two different services:

  • WorkPresentationService - The closeWorkItem function in this service should be used to close a form that was opened when the work item was opened with the openWorkItem function in WorkPresentationService. This is typically called in response to a user clicking the Close button on a work item form.
  • WorkItemManagementService - The closeWorkItem function in this service is used only if the user task did not open a form when the work item was opened. This would be used only in special use-case client applications.