getSearchCaseReport

Lists all events associated with the specified case.

Required System Actions

readGlobalData

Usage

BPMCaseEventViewService.getSearchCaseReport(model,callback)

Parameters

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

You must provide a case reference to identify the case for which the case events are to be returned.

The response populates the CaseEventViewModel.eventDataList object with the case events.

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

Sample Usage

// Create a model with required properties 
var model ={}; 
model.caseReference = "BDS-1-com.example.claimbom.Policy-3-0";  // case reference 
 
//Actual Service call 
BPMCaseEventViewService.getSearchCaseReport(model, {
    onSuccess: function(model) 
    {
       console.log("Events for caseRef "+ model.caseReference +" are "+ model.eventDataList); 
    } 
});