Skip to main contentMerative SPM UI Addon Development Environment

Customizing the Case Overview

The Case Overview provides an Entitlements card by default, which is rendered with Carbon components. While you can’t modify the default components on the Case Overview page, you can extend the page with additional Carbon components.

The following guidance assumes that you have developed some Carbon components and want to extend the Case Overview page. For more information about developing custom Carbon components, see Creating a custom Carbon add-on component.

  1. On the server, create a new domain definition for your custom component in the EJBServer custom component directory. For example, CUSTOM_CASEOVERVIEW. For more information about configuring domain definitions, see Configuring a domain definition.

  2. Update the DomainsConfig.xml file in your custom component in the webclient directory to map the new domain definition to a new Java renderer. If the DomainsConfig.xml file does not exist in your custom component, you must create it. For example:

    <dc:domains xmlns:dc="http://www.curamsoftware.com/curam/util/common/ domain-config">
    <dc:domain name="CUSTOM_CASEOVERVIEW">
    <dc:plug-in name="view-renderer"
    class="custom.CustomCaseOverviewRenderer"/>
    </dc:domain>
    </dc:domains>
  3. Implement a custom Java renderer, for example CustomCaseOverviewRenderer, by extending the existing CaseOverviewRenderer Java renderer as shown in the following example. This example extends the Case Overview page with the ComponentX component.

    In your custom Java renderer, you render both the existing components and the custom components. You create an HTML element for the custom components and call a JavaScript renderer function to integrate the custom components into the renderer.

    public void render(final Field field, final DocumentFragment fragment,
    final RendererContext context, final RendererContract contract)
    throws ClientException, DataAccessException, PlugInException {
    // render the OOTB Case overview UI
    final DocumentFragment baseFragment =
    fragment.getOwnerDocument().createDocumentFragment();
    super.render(field, baseFragment, context, contract);
    fragment.appendChild(baseFragment);