core/src/main/java/nl/nn/adapterframework/util/flow/FlowDiagramManager.java
// Don't call this when no generator is set!
Don't call this when no generator is set!
Don ' t call this when no generator is set!
private void generateFlowDiagram(String name, String dot, File destination) throws IOException {
		log.debug("generating flow diagram for " + name);
		long start = System.currentTimeMillis();
		try (FileOutputStream outputStream = new FileOutputStream(destination)) {
			generator.generateFlow(name, dot, outputStream);
		} catch (IOException e) {
			if(log.isDebugEnabled()) log.debug("error generating flow diagram for ["+name+"]", e);
			throw e;
		}
		log.debug("finished generating flow diagram for ["+ name +"] in ["+ (System.currentTimeMillis()-start) +"] ms");
	}
private void generateFlowDiagram ( String name , String dot , File destination ) throws IOException { log . debug ( "generating flow diagram for " + name ) ; long start = System . currentTimeMillis ( ) ; try ( FileOutputStream outputStream = new FileOutputStream ( destination ) ) { generator . generateFlow ( name , dot , outputStream ) ; } catch ( IOException e ) { if ( log . isDebugEnabled ( ) ) log . debug ( "error generating flow diagram for [" + name + "]" , e ) ; throw e ; } log . debug ( "finished generating flow diagram for [" + name + "] in [" + ( System . currentTimeMillis ( ) - start ) + "] ms" ) ; }
Don't call this when no generator is set!
Don ' t call this when no generator is set!