use of co.cask.cdap.api.workflow.ConditionSpecification in project cdap by caskdata.
the class DefaultWorkflowConditionConfigurer method addWorkflowConditionNode.
@Override
public void addWorkflowConditionNode(Condition condition, List<WorkflowNode> ifBranch, List<WorkflowNode> elseBranch) {
Preconditions.checkArgument(condition != null, "Condition is null.");
ConditionSpecification spec = DefaultConditionConfigurer.configureCondition(condition, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
use of co.cask.cdap.api.workflow.ConditionSpecification in project cdap by caskdata.
the class DefaultWorkflowForkConfigurer method addWorkflowConditionNode.
@Override
public void addWorkflowConditionNode(Condition condition, List<WorkflowNode> ifBranch, List<WorkflowNode> elseBranch) {
Preconditions.checkArgument(condition != null, "Condition is null.");
ConditionSpecification spec = DefaultConditionConfigurer.configureCondition(condition, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
Aggregations