I have a requirement where I need to send blank as an output for a String field whenever the field doesn’t have a value.
Example: In a document has three string field string1,string2 and string3 … String n .
When string 1 has value I need to set other fields from String 2 to n as blank ,
When String 1 and 2 has value ,then I need to set fields other than string 1 and 2 as blank.
We can hard code the value by using branch condition but doing the same for many fields may be tedious as the number of output field is more than 100.
I came across an XSD property default ,where a field can take a default value in case if doesn’t contain any value. But the same is not working for me in wM.
Any idea would be helpful. Right now ,we are hardcoding blanks for evry condition.
One option might be to use a XSLT-Transformation here (check WmXSLT package).
If you are mapping from one document to another you can pre-initialize the target with all fields to blank and then map the fields which are filled. Copy Conditions on the mapping might be helpful as well.