Search in sources :

Example 1 with DefaultWorkflowConfigurer

use of io.cdap.cdap.internal.app.workflow.DefaultWorkflowConfigurer in project cdap by caskdata.

the class DefaultAppConfigurer method addWorkflow.

@Override
public void addWorkflow(Workflow workflow) {
    Preconditions.checkArgument(workflow != null, "Workflow cannot be null.");
    DefaultWorkflowConfigurer configurer = new DefaultWorkflowConfigurer(workflow, this, deployNamespace, artifactId, pluginFinder, pluginInstantiator, runtimeInfo, getFeatureFlagsProvider());
    workflow.configure(configurer);
    WorkflowSpecification spec = configurer.createSpecification();
    addDatasetsAndPlugins(configurer);
    workflows.put(spec.getName(), spec);
}
Also used : DefaultWorkflowConfigurer(io.cdap.cdap.internal.app.workflow.DefaultWorkflowConfigurer) WorkflowSpecification(io.cdap.cdap.api.workflow.WorkflowSpecification)

Aggregations

WorkflowSpecification (io.cdap.cdap.api.workflow.WorkflowSpecification)1 DefaultWorkflowConfigurer (io.cdap.cdap.internal.app.workflow.DefaultWorkflowConfigurer)1