IBM Curam -Informational Message Representation on UIM Page


Introduction


Curam uses Information Manager to store and display messages on the User Screen. Sometimes a user may seek to display or consolidate (all error/information) message at the end when user actually submits or loads the page.

Curam houses very good developer friendly APIs and infrastructure to accomplish this task. Please follow below steps to understand how to achieve it–

 

 


Steps to Develop Informational Message


Development of Informational Message entails a few key steps which need to be followed in order to display custom messages on UIM(User Interface Metadata) screens.

Configure Message(s): This step helps to configure related message(s) which user wants to display on Screen using message file concept (Please refer to message related post for further details: https://knowledgewala.comibm-curam-message-file-overview/).

  • Create Message file or use exiting message file from EjbServer/component/custom/message

KWSampleMessage.xml file.

<?xml version="1.0" encoding="UTF-8"?>

                 <messages package="curam.message.application">

                        <message name="DATA_NOT_AVAILABLE">

                           <locale language="en">Data is not Available</locale>   

                       </message>

                 </messages>

  • Model Facade Class: We need to model facade class with operation which should have return type/attribute as curam.core.struct.InformationalMsgDtlsList.

public InformationalMsgDtlsList viewSample(
            SampleKey key) throws AppException,
            InformationalException {
            
            // Construct all information message and return list of informational.            
            
}

  • UIM File Update: We have to add INFORMATIONAL element in the uim to display informational messages. Please find code snippet below –

   <INFORMATIONAL>
        <CONNECT>
            <SOURCE NAME="DISPLAY" PROPERTY="result$msgList$dtls$informationMsgTxt" />
        </CONNECT>
    </INFORMATIONAL>

 

One thought on “IBM Curam -Informational Message Representation on UIM Page”

Leave a Reply

Your email address will not be published. Required fields are marked *