Updating filter tables on Route nodes
Use the IBM Integration API to update filter tables on Route nodes.
You can add and update rows on the filter table of a Route node.
Pattern authoring
The following examples are the same as the previously described examples, but for
pattern authoring:
- Adding a new row
-
MessageFlow mf1 = patternInstanceManager.getMessageFlow("MyFlowProject", "main.msgflow"); RouteNode routeNode = (RouteNode)mf1.getNodeByName("My Route Node"); RouteNode.FilterTable filterTable = (RouteNode.FilterTable)routeNode.getFilterTable(); RouteNode.FilterTableRow newRow = filterTable.createRow(); newRow.setFilterPattern("value=\"123\""); newRow.setRoutingOutputTerminal("NEWOUT"); filterTable.addRow(newRow);
- Updating a row
-
MessageFlow mf1 = patternInstanceManager.getMessageFlow("MyFlowProject", "main.msgflow"); RouteNode routeNode = (RouteNode)mf1.getNodeByName("My Route Node"); RouteNode.FilterTable filterTable = (RouteNode.FilterTable)routeNode.getFilterTable(); Vector<RouteNode.FilterTableRow> filterTableRows = filterTable.getRows(); filterTableRows.get(0).setFilterPattern("value2=\"456\""); filterTableRows.get(0).setRoutingOutputTerminal("NEWOUT2");