Reputation: 61
For example, I'd like to define a stream in Spring-XD as, 'source1 | sink1' and the 'source1' module has a option: 'option1'.
What I like to do is to configure 'source1' to have multiple instances (this is doable in Spring-XD), and at the same time, I like to let each instance of 'source1' to have different value on 'option1'.
Is it possible with currently-available DSL design in Spring-xd?
Upvotes: 0
Views: 88
Reputation: 174719
You can't currently do that but you can use named channels...
stream create --name foo --definition "source1 --option=x > queue:xx"
stream create --name bar --definition "source1 --option=y > queue:xx"
stream create --name baz --definition "queue:xx > sink1"
Upvotes: 1