Search in sources :

Example 1 with DefaultWorkflowConfigurer

use of co.cask.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, artifactRepository, pluginInstantiator);
    workflow.configure(configurer);
    WorkflowSpecification spec = configurer.createSpecification();
    addDatasetsAndPlugins(configurer);
    workflows.put(spec.getName(), spec);
}
Also used : DefaultWorkflowConfigurer(co.cask.cdap.internal.app.workflow.DefaultWorkflowConfigurer) WorkflowSpecification(co.cask.cdap.api.workflow.WorkflowSpecification)

Aggregations

WorkflowSpecification (co.cask.cdap.api.workflow.WorkflowSpecification)1 DefaultWorkflowConfigurer (co.cask.cdap.internal.app.workflow.DefaultWorkflowConfigurer)1