Hi @Flixm
You can achieve this with the core nodes, using a context value as the property the Switch node checks against.
- Configure the Switch node to check the value of
flow.myRoute
- add as many outputs as you need.
- Use a Change node to set the value of
flow.myRoute
to whatever value you want the Switch node to route for.
[{"id":"3cd91b448d4accf4","type":"switch","z":"98ff6cf1928b251c","name":"Switch on flow.myRoute","property":"myRoute","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":630,"y":820,"wires":[["03df53234e82c0aa"],["c677a0ebfd976c4e"]]},{"id":"016748d2380cd914","type":"inject","z":"98ff6cf1928b251c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":400,"y":820,"wires":[["3cd91b448d4accf4"]]},{"id":"03df53234e82c0aa","type":"debug","z":"98ff6cf1928b251c","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":800,"wires":[]},{"id":"c677a0ebfd976c4e","type":"debug","z":"98ff6cf1928b251c","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":840,"wires":[]},{"id":"3099cdc2953c801f","type":"inject","z":"98ff6cf1928b251c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":400,"y":700,"wires":[["0966d770d6df4cb1"]]},{"id":"0966d770d6df4cb1","type":"change","z":"98ff6cf1928b251c","name":"Set to flow.myRoute to 1","rules":[{"t":"set","p":"myRoute","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":700,"wires":[[]]},{"id":"916af7e49843dd62","type":"inject","z":"98ff6cf1928b251c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":400,"y":740,"wires":[["c1c4a8e838d92ee2"]]},{"id":"c1c4a8e838d92ee2","type":"change","z":"98ff6cf1928b251c","name":"Set to flow.myRoute to 2","rules":[{"t":"set","p":"myRoute","pt":"flow","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":740,"wires":[[]]}]