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.
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 ...