AnsweredAssumed Answered

Routing multiple documents

Question asked by faisal.ali397074 on Aug 25, 2017
Latest reply on Aug 28, 2017 by daniel.santana

I have an multiple XML documents that look like this (example):

 

<empinfo>

   <empid>1</empid>

   <empname>name1</empname>

   <empid>2</empid>

   <empname>name2</empname>

</empinfo>

 

I have a split function to split based on empid into two documents

 <empid>1</empid>

   <empname>name1</empname>

and

   <empid>2</empid>

   <empname>name2</empname>

 

Now, for each document, I want to check individual tags and route to a sub process. So

a)empid - if not null, call subprocess1

b)empname - if not null, call subprocess2

 

My question is what is the best way to implement the routing part - from what I see, the decision or business rules only handle one check at a time - is there a shape that can handle multiple checks and route based on the XML tag?

 

In the future, i might want to introduce a new tag in the XML - what is most dynamic way to handle 1..n tags?

 

Outcomes