use of co.cask.cdap.internal.app.runtime.flow.DefaultFlowConfigurer in project cdap by caskdata.
the class DefaultAppConfigurer method addFlow.
@Override
public void addFlow(Flow flow) {
Preconditions.checkArgument(flow != null, "Flow cannot be null.");
DefaultFlowConfigurer configurer = new DefaultFlowConfigurer(flow);
flow.configure(configurer);
FlowSpecification spec = configurer.createSpecification();
addDatasets(configurer);
flows.put(spec.getName(), spec);
}
Aggregations