Sorry to bother the forum community again, but I seem to have missed another fundamental point regarding conditional syntax in general link properties.
I want to map an input value with path /Specialized850/ST/PO1/SLN/PID/PID05, which is of type String. I want to map it to a custom flat file schema.
My first pass at doing this the straightforward way resulted in a NullPointerException. When I look at my data, I see the following two records in the input EDI:
PID~F*************** COMPLETE PER DRAWING ***SHEAR TIE*
PID~F
The first PID record maps just fine to “SHEAR TIE”. The problem with the second one is obvious: those stupid stars that make up part of the comment mess things up, because ‘*’ is the end of record character here. (The string ends up as “unDefData” when wM parses it.)
I thought I could get past this by putting a check into the link properties, like this:
!%Specialized850/ST/PO1/SLN/PID/PID05%
But this doesn’t appear to be correct. When I leave off the leading and trailing ‘%’ char, Developer complains: “No closing delimiter found”. Adding the ‘%’ chars fixes that problem, but the check isn’t saving me.
What is the correct syntax? What is the correct idiom for avoiding this problem?
Thanks - %