I would like to develop a workflow in Spring Cloud Data Flow where each task instance would have its behavior dictate by the parameters I would have give to it at creation.
For example, if I have a task that make a rest api call, I would like the url of the api parameterized.
How can I do that? I thought it was with the properties and/or arguments passed to the task at creation but it doesn't seems to work... If so, how can I get the properties/arguments passed to the task in my code? I try with the @ConfigurationProperties
annotation but I couldn't make it work.
@ConfigurationProperties("helloworld")
public class HelloWorldTaskConfiguration {
private String name = "Toto";
public String getName() {
return name;
}
public void setname(String name) {
this.name = name;
}
}