use of org.cristalise.kernel.lifecycle.CompositeActivityDef in project kernel by cristal-ise.
the class LifecycleRendererTest method generateDef_PNG.
@Test
public void generateDef_PNG() throws Exception {
String caDefXML = FileStringUtility.url2String(Gateway.getResource().getKernelResourceURL("boot/CA/ManageModule.xml"));
CompositeActivityDef caDef = (CompositeActivityDef) Gateway.getMarshaller().unmarshall(caDefXML);
BufferedImage img = new LifecycleRenderer(caDef.getChildrenGraphModel(), true).getWorkFlowModelImage(500, 500);
ImageIO.write(img, "png", new File("target/ManageModule.png"));
}
Aggregations