deleteOrphanedFolders

Deletes orphaned case folders, that is, case folders whose case objects have been deleted.

Note: Orphaned case folders may be deleted automatically when case objects are deleted, depending on the setting in the deleteFolderOnUndeploymentOrCaseObjectDeletion configuration parameter. For more information, see the "Case Folders" section in the TIBCO ActiveMatrix BPM Case Data User's Guide.

Required System Actions

cmisAdmin

Usage

CaseDocumentService.deleteOrphanedFolders(model,callback)

Parameters

Parameter Type Description
model CaseDocumentServiceModel object Data model to be used by the service request.

The request must include model.selectedDate - Case folders associated with cases that were deleted on or before this date, are deleted.

callback Function Callback function to handle success or failure results from the request.

Sample Usage

$scope.selectedDate = $scope.acceptDateFromUser;
 
//Actual Service call for deleteOrphanedFolders
CaseDocumentService.deleteOrphanedFolders($scope,{onSuccess: function()

  {
     console.log("Orphaned folders before the date"+$scope.selectedDate+" deleted successfully"); $scope.$apply("");
   
  }
  });