We process a XML with job information generated from our web shop in Enfocus Switch.
This file also contains info about the shipping address.
The XML normally looks like this:
Code: Select all
<Lieferadresse>
<Firma />
<Abteilung />
<Name>Max Mustermann</Name>
<Strasse>Musterstraße 13</Strasse>
<PLZ>12345</PLZ>
<Ort>Musterstadt</Ort>
<Land>Deutschland</Land>
<Tel>+49 1234 5678 9</Tel>
<Email>max.mustermann@gmail.com</Email>
</Lieferadresse>
In Switch, I now want to route XML files that do not contain any number in <Strasse> to a different path in our flow.
My approach was to set a condition on the route that validates if the value <Strasse> contains a number or not.
I set a path to the value and used a regular expression to only search for numbers (\d+), type of Metadata is Text.
My idea was to validate if the result from that equals an "empty" value then go path A, if there is a value, then go path B.
But unfortunately, I can't leave the field on the right empty.
Any ideas how to resolve my problem?

We do not have the Scripting Module.