Default Violation messages

Posted by archana.gupta on 17-Mar-2016 08:39

Hi,

Please suggest is there any way to add a new tag to default messages generated by corticon in case any error condition occurred. (for example when a mandatory element is missing)

In the below structure, is there any way to add any element <UniqueID> in Message tag to link to entityReference tag so that each message element has a unique value of <UniqueId>.

 <ns0:Messages version="string-value">
    <!-- The following element may occur 0 or more times. -->
    <ns0:Message>
      <!-- This element must contain one of the following values:
          Info
          Warning
          Violation -->
      <ns0:severity>string-value</ns0:severity>
      <ns0:text>string-value</ns0:text>
      <!-- The following element must be empty. -->
      <ns0:entityReference href="anyURI-value"/>
    </ns0:Message>
  </ns0:Messages>


Note: In progress OE11.5 (used as SOAP client), link between message and entityReference tag is possible
by using PARENT-ID-RELATION phrase, however this is not available in progress OE10.2b.


Thanks,
Archana

All Replies

Posted by James Arsenault on 17-Mar-2016 20:22

Archana,
 
When Corticon is running with strict compliance, it will validate the received message payload against the vocabulary. If required fields are missing it will return an error. There is no way for you to extend this message.
 
Jim
 

Posted by archana.gupta on 18-Mar-2016 00:43

Ok, Thanks

I guess, I have to use custom message entity to send back the messages in response  as given in below link:

community.progress.com/.../2459.06-how-to-create-custom-rule-messages-in-corticon

Archana

Posted by James Arsenault on 18-Mar-2016 07:38

Archana,
 
Rule messages are an important feature in Corticon and we recommend using them extensively. Some shops go as far as to require a message on every rule. The messages provide a means to understand what rules fired. This can be used by the calling application or simply logged for auditing purposes. FYI, in 5.5.2 we added the ability to automatically record rule messages to a database. This is great for auditing purposes.
 
Jim
 

This thread is closed