public class GraphGenerator extends Object
Since it delegates to WorkflowGraphHandler and a GraphRenderer, it is the single entry point when changing graph
generation behavior.
| Modifier and Type | Field and Description |
|---|---|
static String |
SAX_FEATURE_DISALLOW_DOCTYPE_DECL |
static String |
SAX_FEATURE_EXTERNAL_GENERAL_ENTITIES |
static String |
SAX_FEATURE_EXTERNAL_PARAMETER_ENTITIES |
| Constructor and Description |
|---|
GraphGenerator(String xml,
WorkflowJob job,
boolean showKill,
GraphRenderer graphRenderer)
Constructor Inversion of Control-style for better testability.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(OutputStream out,
OutputFormat outputFormat)
Stream the generated PNG, DOT or SVG stream to the caller.
|
public static final String SAX_FEATURE_EXTERNAL_GENERAL_ENTITIES
public static final String SAX_FEATURE_EXTERNAL_PARAMETER_ENTITIES
public static final String SAX_FEATURE_DISALLOW_DOCTYPE_DECL
public GraphGenerator(String xml, WorkflowJob job, boolean showKill, GraphRenderer graphRenderer)
xml - The workflow definition XMLjob - Current status of the jobshowKill - Flag to whether show 'kill' nodegraphRenderer - the rendererpublic void write(OutputStream out, OutputFormat outputFormat) throws ParserConfigurationException, SAXException, IOException
OutputStream is the responsibility
of the caller.out - the OutputStream to use on streamingoutputFormat - The output format to apply when renderingParserConfigurationException - if the parser is not configured properlySAXException - in case of XML errorIOException - in case of any other IO related issuesCopyright © 2020 Apache Software Foundation. All rights reserved.