I have an XML dataset with operations. I need to search the operations to see if a step is present. My current issue is that the position of this XML element can move based on the job types.
My current build path is:
Code: Select all
[Metadata.Text:Path="/Job/Operations/Operation[1]/Name",Dataset="Xml",Model="XML",Search="Eyelet"]
Code: Select all
[Metadata.Text:Path="/Job/Operations/Operation[*]/Name",Dataset="Xml",Model="XML",Search="Eyelet"]
Code: Select all
[Metadata.Text:Path="/Job/Operations/Operation[1]/Name",Dataset="Xml",Model="XML",Search="Eyelet"] OR
[Metadata.Text:Path="/Job/Operations/Operation[2]/Name",Dataset="Xml",Model="XML",Search="Eyelet"] OR
[Metadata.Text:Path="/Job/Operations/Operation[3]/Name",Dataset="Xml",Model="XML",Search="Eyelet"] OR
etc
I could also build a nodejs script to traverse the XML node at /Job/Operations/Operation and search and simply return a true or false to go to the next step in the flow and set the value as private data.