Hey there,
I'm using the SPLITTER to split a message with several tickets IDs. For each Ticket I'll get the detail information. Based on those information I want to skip some of those tickets and don't want them to be gathered in the next step. I thought I solved it with a router in between, letting the "false" case go into an end step. But a router is not allowed betweend Splitter/Gather. What else can I do to skip some of those tickets?
Thanks,
Chris
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Simply use a Content Modifier to return an empty xml tag (whatever tag you're gathering) before the gather step. I use this approach in all flows, although I must say that I always use an xpath in my gather step. But an empty body will always to the trick.
If a single CM with an empty body doesn't work, try using two: The first sets a property that you leave empty (type constant with no value) and the second sets the body to that property (${property....})
EDIT2:
For some reason my pictures are not getting uploaded. So here's a text version:
<employees>
<employee>
<field1>...</field1>
<field2>...</field2>
<...>
</employee>
<employee>Before the gather step, I use a mapping to map my source XML to my target XML. Before that, there is a router that, based on the source XML, decides if the employee in question needs to be processed:
That last bit will result in the gather step not 'gathering' anything because there is no <employee> tag in the body for that segment.
Even better: If for whatever reason, the steps between the splitter and gather generate an XML that does not have that structure(<employees><employee>.......</employee></employees>), it will simply be ignored and not added to the result.
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.