Ah, re-read your question. So you basically want the repeating list of business rules failures in a single Message, correct? I would approach it like this:
Adam, I'm using your suggestion here to consolidate Business Rules Error Messages from various steps of my process into the "Errors Cache". At the end I read back from the cache and generate emails with appropriate contents. All is "almost" good, but...
Here is the part of the process when I want to send two separate emails with content depending on the business rule outcome.
Branch 5 & 6 are calling Cache passing two different parameters:
...however they retrieve the SAME document
Below are more details about how the "Errors Cache" is defined and populated.
The "Error Cache" is defined as follows:
using this profile
One of the Business Rules applies two conditions:
two error messages get loaded correctly:
Adam can you possibly take a look at my scenario and if there is a reason why the message is not selectively retrieved from the Cache.
I have just followed your process to display "Business Rules Shape" error messages in its own line. But, I'm facing an issue here:
I have taken the Business Rules Error message as an input/source through XML profile and mapped the values to DB destination profile then it would be formatted using a Message shape to send an email, but I'm getting only first Business Rules Error message in the email.
But, I want to get multiple Business rules messages in the email whereas I'm getting only first Business rules message.
Please let me know if you need any more details regarding the process.
Hi Vijay Kurapati,
In your "Error Msgs XML Profile", is the business_rule_failure element configured to repeat, that is, Max Occurs=Unbounded? It should be to instruct the map to iterate through multiple lines.
Thanks for the step. I have just changed it to Max Occurs = Unbounded but I'm still getting single message. I may be missing something else also ..
Thanks for helping me out. The issue is resolved now.
I have followed steps and getting the "current data" in Message shape. But, in the Email these multiple Business Rules out messages are showing up as one single message. Whereas, I need these out messages in a separate lines. Any suggestions?
Thanks in Advance,
We make use of Map shape and created a custom function to get the business rules error message in a string which outputs all error messages with ; separated
After more tests I realized I must "Split" the message before I store it in the Cache to be correctly indexed for retrieval.
Retrieving data ...