Project: springxd
Issue XD-1064: Update router sink logic to match new channel syntax
for example, the following should work: {code} xd:>stream create a1 --definition "queue:a > transform --expression=payload+'-a' | log" Created new stream 'a1' xd:>stream create b1 --definition "queue:b > transform --expression=payload+'-b' | log" Created new stream 'b1' xd:>stream create s1 --definition "http | router --expression=payload.contains('a')?'queue:a':'queue:b'" Created new stream 's1' xd:>http post --data "ha" > POST (text/plain;Charset=UTF-8) http://localhost:9000 ha > 200 OK // log shows: "ha-a" xd:>http post --data "hi" > POST (text/plain;Charset=UTF-8) http://localhost:9000 hi > 200 OK // log shows: "ha-b" {code} This needs to be tested against all transports (local, redis, and rabbit)
Story points: 4