Skip to Content
author's profile photo Former Member
Former Member

Mapping fields in Alert Message

Hello

I am having a scenario where few fields in the mappings are mandatory.If those fields are not populated its expected to throw mappings exception. In exception handler I had added a control step to raise an alert.

Can it be possible to display the mandatory field in the alert message? e.g. in MATMAS if EAN11 is mandatory and if its not populated then Alert message should be "EAN11 field is mandatory". I have came across dynamic messages in Alert where we can substitute container variable in & sign but how to get values of mandatory fields

Thanks in advance.

Regards

Rajeev Patkie

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 08, 2005 at 07:00 PM

    Hello,

    Perhaps this weblog can help you :

    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

    Regards,

    Chrs

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rajeev,

      This solution should work if you want to check if a field is missing.

      In your switch step, you'll specify an xPath. In that xPath you can check if a field exists in the XML by using the 'EX' operator.

      Thanks,

      Jesse

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2005 at 05:08 PM

    Hi Rajeev,

    It sounds like your using BPM?

    If you throw the exception from your map - a java RuntimeException - you could catch it but I don't know how you could distinguish between different errors.

    Prior to the mapping you could:

    - Use Switch steps in your BPM to check existence of each of the fields.

    - In the otherwise branch, throw an alert tailored for that field.

    Thanks,

    Jesse

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.