I need to check whether custom6 contains an object, or is null. I've tried using the decision shape for this, but for some reason it is reading custom6 as null when it has a value.
How about concatenating the values in a Dynamic Document Property, and then test if that value is null?
the issue is, the entire object will either be there, or it won't.
If I reference one of Custom6's child object's elements - Type, Value, or Code - when Custom6 is null, I get a reference error because no object exists at Custom6. Custom6 doesn't exist at all, so referring to a child object and its properties fails.
How about splitting the JSon profile by line like this and search for the string like this:
If string is found DPP key is set to 1:
Branch 4 decision shape:
If True then....
I found a solution, I think...
I looked at the Business Rules object. It sees Custom6 as empty when the value is another object. If you add conditions to check the child object's properties, it handles that gracefully.
I have determined the Business Rules shape is best at null handling, and in general Boomi does not do well with object-level decisions and tasks. It is better suited to operate on primitive values.
This does not:
Here's the log:
I think you found a better solution than the one I suggested.
I'll keep that in mind if I should ever run across a similar problem.
Thanks Jonathan, your suggestion was immensely helpful.
Hi Jonathan and Leif,
Thanks for the work arounds and I learnt a new point regarding the Business rules and decision shapes capability.
Happy Exploring Boomi.
Retrieving data ...