getCaseData
Retrieves case data for 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.caseDataTree object with the case data. |
caseRef | String | Identifies the case whose data is 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 case data //Actual Service call CaseManagementService.getCaseData(scope,scope.caseRef, {onSuccess: function() { console.log("case data for the given case reference"+scope.caseRef+" is "+scope.caseDataTree); //case data is returned by the service and assigned to caseDataTree } });
Copyright © Cloud Software Group, Inc. All rights reserved.