getRelatedCases
Retrieves all of the cases that are linked or related to the given case reference.
Parameters
Parameter | Type | Description |
---|---|---|
model | CaseManagementModel | The case model to be passed to the $scope object.
The response populates the CaseManagementModel.relatedCaseReferences object with the case data. |
caseRef | String | Identifies the case for which related cases are to be returned. |
callback | Function | Callback function to handle success or failure results from the request. |
Sample Usage
scope.caseRef = "BDS-1-com.example.claimbom.Policy-3-0"; //accept a case reference from user for which we need the related cases //Actual Service call CaseManagementService.getRelatedCases(scope,scope.caseRef, {onSuccess: function() { console.log("case data for the given case reference"+scope.caseRef+" is "+scope.relatedCaseReferences); //related cases are returned and assigned to relatedCaseReferences } });
Copyright © Cloud Software Group, Inc. All rights reserved.