listCaseActions

Lists all the case actions available for a given case reference.

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

Required System Actions

readGlobalData

Usage

CaseInformationService.listCaseActions(model, caseRef, callback)

Parameters

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

The response populates the CaseManagementModel.caseActions object with the case actions.

caseRef String Identifies the case for which case actions 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 case actions   

//Actual Service call 
CaseInformationService.listCaseActions(scope,scope.caseRef, {onSuccess: function() 
   { console.log("case actions for the given case reference"+scope.caseRef+" are "+scope.caseActions); //case actions are returned by the service and assigned to caseActions 
   }
 });