Skip to Content
0
Aug 21, 2023 at 03:15 PM

Router Step is only working in one condition

106 Views

Hi Experts,

Please help enlighten what I'm doing wrong or what I'm missing. I have below iFlow which splits and routes the input payload based on the Movement_Type value. Just to mention, the splitter checks for Report_Data. I have defined the following conditions:

//Movement_Type = 'N'

//Movement_Type = 'U'

//Movement_Type = 'D'

I have also tried using the following:

//Movement_Type[text() = 'N']

//Movement_Type[text() = 'U']

//Movement_Type[text() = 'D']

However, for some reason the router only works in when the type is D as seen in the simulation. I also tested with the iFlow deployed and same thing happens.

router.jpg

This is my input.

<Report_Data>
	<Report_Entry>
		<UserName></UserName>
		......
		<Manager_ID></Manager_ID>
		<Events>
			....
			<Movement_Type>N</Movement_Type>
			....
		</Events>
	</Report_Entry>
</Report_Data>
<Report_Data>
	<Report_Entry>
		<UserName></UserName>
		...
		<Manager_ID></Manager_ID>
		<Events>
			....
			<Movement_Type>U</Movement_Type>
			....
		</Events>
	</Report_Entry>
</Report_Data>
<Report_Data>
	<Report_Entry>
		<UserName></UserName>
		...
		<Manager_ID></Manager_ID>
		<Events>
			....
			<Movement_Type>D</Movement_Type>
			....
		</Events>
	</Report_Entry>
</Report_Data>         

Attachments

router.jpg (23.7 kB)