use of io.cdap.cdap.api.workflow.ConditionSpecification in project cdap by caskdata.
the class DefaultWorkflowForkConfigurer method addWorkflowConditionNode.
@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch, List<WorkflowNode> elseBranch) {
ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(), predicate.getClass().getSimpleName(), "", new HashMap<String, String>(), new HashSet<String>());
currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
use of io.cdap.cdap.api.workflow.ConditionSpecification in project cdap by caskdata.
the class DefaultWorkflowConfigurer method addWorkflowConditionNode.
@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch, List<WorkflowNode> elseBranch) {
ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(), predicate.getClass().getSimpleName(), "", new HashMap<String, String>(), new HashSet<String>());
nodes.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
Aggregations