Ejemplo n.º 1
0
def convert_to_dot(pipeline_file_relative_path,
                   detail_level=DetailLevel.medium,
                   show_input_ports=False, show_output_ports=False):
    pipeline_yaml = read_as_string(__name__, pipeline_file_relative_path)
    pipeline = Pipeline.from_yaml_dump(pipeline_yaml)
    dot_converter = Converter(
        detail_level, show_input_ports, show_output_ports)
    return dot_converter.run(pipeline)
Ejemplo n.º 2
0
def convert_to_dot(pipeline_file_relative_path,
                   detail_level=DetailLevel.medium,
                   show_input_ports=False,
                   show_output_ports=False):
    pipeline_yaml = read_as_string(__name__, pipeline_file_relative_path)
    pipeline = Pipeline.from_yaml_dump(pipeline_yaml)
    dot_converter = Converter(detail_level, show_input_ports,
                              show_output_ports)
    return dot_converter.run(pipeline)
Ejemplo n.º 3
0
def convert_oozie_to_dot(xml_oozie_string, detail_level,
                         show_input_ports, show_output_ports,
                         vertical_orientation):
    """Convert XML Oozie workflow definition to a graph described in DOT format.

    See docstring for `convert_oozie_to_png` function for description of
    parameters.

    Return:
        string
    """
    oozie_graph = oozie_read(xml_oozie_string)
    pipeline = oozie_convert(oozie_graph, IISPipelineConverter())
    dot_converter = PipelineConverter(detail_level,
                                      show_input_ports, show_output_ports,
                                      vertical_orientation)
    dot_string = dot_converter.run(pipeline)
    return dot_string