# How to use batch node in concatenate sequence mode
In this tutorial we are having a array of numbers which is a mix of negative and positive numbers. We need to filter and group all the positive and negative number respectively and batch both the group of positive and negative number into one sequence.
Following is the input to be used for this use case.
Drag and drop a split node from routing section on the pallette to the canvas. Double click the split node and set the
Arraysection with Fixed length of 1. This is to iterate the input array records and send one by one to the next node. Click Save.
Wire the TBD to the split node.
Place the switch node from the routing section to the canvas.Double click the routing node to open the node and set the following rules.
> 0--> route 1
otherwise--> route 2
Drag and drop 2 set properties node to the canvas double click on the first Set properties node and
msg.topicto POS . Similarly double click on the second Set properties node and
Wire the route 1 representing > 0 in switch node to first Set properties node and wire the route 2 representing
otherwiseto Second Set properties node.
Drop the batch node from the routing section to the pallette to the canvas and double click to open the batch node editor.
Select the mode as Concatenate Sequence mode and Click Add button twice to add the topics . On the first added field set as NEG and second added field as POS.
Wire the two Set properties node to the batch node which has been configured.
Drop the join node from routing to the canvas and wire the batch node to join node.Keep all the values of join node as default.
Drop the debug node and name it as Completed.
Click on the TBD to test the flow.
The result of the flow printed on the debug panel in the editor for the debug node will be as follows.
All the negative numbers as grouped first and positive number grouped and concatenated later.