use of org.flyte.api.v1.WorkflowTemplate in project flytekit-java by flyteorg.
the class WorkflowTemplateIdl method ofBuilder.
public static WorkflowTemplate ofBuilder(SdkWorkflowBuilder builder) {
WorkflowMetadata metadata = WorkflowMetadata.builder().build();
List<Node> nodes = builder.getNodes().values().stream().map(SdkNode::toIdl).collect(toUnmodifiableList());
List<Binding> outputs = getOutputBindings(builder);
return WorkflowTemplate.builder().metadata(metadata).interface_(TypedInterface.builder().inputs(getInputVariableMap(builder)).outputs(getOutputVariableMap(builder)).build()).outputs(outputs).nodes(nodes).build();
}
Aggregations