Search in sources :

Example 1 with DefaultFlowConfigurer

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);
}
Also used : DefaultFlowConfigurer(co.cask.cdap.internal.app.runtime.flow.DefaultFlowConfigurer) FlowSpecification(co.cask.cdap.api.flow.FlowSpecification)

Aggregations

FlowSpecification (co.cask.cdap.api.flow.FlowSpecification)1 DefaultFlowConfigurer (co.cask.cdap.internal.app.runtime.flow.DefaultFlowConfigurer)1