getCaseData

Retrieves case data for the given case reference.

Note: The CaseInformationService.getCaseData operation was introduced in ActiveMatrix BPM 4.0, but has been superceded by the CaseManagementService.getCaseData operation, which was introduced in ActiveMatrix BPM 4.1. The CaseInformationService.getCaseData operation is still supported, but may be deprecated in the future. Therefore, you should use the CaseManagementService.getCaseData operation instead, unless you have a specific requirement to continue to use CaseInformationService.getCaseData.

Required System Actions

readGlobalData

Usage

CaseInformationService.getCaseData(model, caseRef, callback)

Parameters

Parameter Type Description
model CaseManagementModel The case model to be passed to the $scope object.

The response populates the CaseInformationServiceModel.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 
CaseInformationService.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
   }
 });