getCaseData

Retrieves case data for the given case reference.

Required System Actions

readGlobalData

Usage

CaseManagementService.getCaseData(model, caseRef, callback)

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 
   } 
 });