Class FlowGraphToGraphDotConverter


  • public final class FlowGraphToGraphDotConverter
    extends Object
    Creates graph dot files for a processing chain.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • FlowGraphToGraphDotConverter

        public FlowGraphToGraphDotConverter​(Mandant client,
                                            WorkflowTask task,
                                            ITaskFlowAnalysis analysis,
                                            FlowGraphToGraphDotConverterSettings settings)
        Creates a converter for writing a dot file with the flow graph of the given task, using the given flow graph analysis result.
        Parameters:
        client - Client scope where the task is located.
        task - Workflow task that was analyzed.
        analysis - Flow analysis of the task.
        settings - Settings for the conversion.
    • Method Detail

      • writeDotFile

        public void writeDotFile​(Writer writer)
                          throws IOException
        Writes the flow graph of the task to the given writer.
        Parameters:
        writer - Writer to write to.
        Throws:
        IOException - When the writer could not be written to.
      • writeToString

        public static String writeToString​(Mandant client,
                                           WorkflowTask task,
                                           ITaskFlowAnalysis analysis,
                                           FlowGraphToGraphDotConverterSettings settings)
        Creates a dot file with the flow graph of the given task, using the given flow graph analysis result.
        Parameters:
        client - Client scope where the task is located.
        task - Workflow task that was analyzed.
        analysis - Flow analysis of the task.
        settings - Settings for the conversion.
        Returns:
        A string with the dot file for the flow graph of the analysis.