Configure the Case Management Application

The Case Management application requires the details of a case model that is available on the ActiveMatrix BPM system. Edit the caseMgtAppName.config.json file to add this information.

caseMgtAppName is the application name. For the Case Management application this is CaseManagement. For a clone of the Case Management application it is the name chosen for the cloned application.

When the Case Management application opens, the index.html file calls the <bpm-case-types> business component to display the available case types for the current case model. The caseMgtAppName.config.json file defines the current model.

This file contains the JSON definition for the default selectedCaseModel object. For information about this object, see CaseModelBasicInfoType.

{
    "selectedCaseModel":{"caseModelID":"1","appName":"com.example.customer-1","majorVersion":"1"}
}

Prerequisites

There are three alternatives to obtain the required information for the case model from the ActiveMatrix BPM system:

  • From the ActiveMatrix BPM web service API, use the getCaseModelBasicInfo operation, from the BusinessDataServicesAdminService.
  • From the objectAPI, use the GlobaldataAdminService.getCaseModelBasicInfo method.
  • From Openspace, use the DATA ADMIN pane. For example:

Procedure

  1. Open the caseMgtAppName.config.json file.
  2. Edit the selectedCaseModel definition, and replace the default details with those of the required case model.
    {
        "selectedCaseModel":{"caseModelID":"1","appName":"com.example.customer-1","majorVersion":"1"}
    }
  3. Do the following for a clone of the Case Management application.
    This is not required for the Case Management application.
    1. Open the js/CaseManagement.js file.
    2. Edit the $http.get call, and replace CaseManagement.config.json with the caseMgtAppName.config.json filename.
      $http.get("CaseManagement.config.json")
              .then(function(response) {
  4. Save the changes.
  5. Launch the application to test it.
    Remember to launch the Latest version.