Open DemianTinkiel opened 4 years ago
I know that going through the GUI it actually creates sub-streams for each line. If it's intended for one to the same by making a DSL call for each, then this should be documented!
Otherwise, this would be a great feature to have:
String streamDefinition="ftp > :messages\n" +
"sftp > :messages\n" +
":messages > file\n" +
":messages > log";
String [] names=new String
flowOperations.streamOperations().createStream(streamName, streamDefinition, streamName, true,names);
or to maintain API consistency, auto-generate the sub-stream name from original stream name
Hi, @DemianTinkiel. Even though the streams might have a relationship (because of the existing destination binding), we do treat them as individual streams behind the scenes, and that's by design.
Having to automatically infer it and create stream definitions based on convention sounds like a potential improvement to this workflow. If you want to take a stab at working this on a PR, we can collaborate.
Description: Entering a multiline stream definition causes a NPE on the server
Release versions: spring-cloud-dataflow-rest-client = 2.6.1 +
Steps to reproduce: I know that if I enter the following stream definition in SCDF gui, it can be deployed
If I try to the same in java DSL:
I get the server exception
Additional context: Stack trace