コード例 #1
0
ファイル: test_converter.py プロジェクト: openaire/vipe
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)
コード例 #2
0
ファイル: test_converter.py プロジェクト: JackB1ack/vipe
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)
コード例 #3
0
ファイル: oozie2png.py プロジェクト: JackB1ack/vipe
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