// initialize visit-flag of all widgets
for (Widget w : widgetShapeMap.keySet()) {
((NodeWidget) w).unvisit();
}
NodeWidget current = null;
NodeWidget next = null;
LinkedList<NodeWidget> queue = new LinkedList<NodeWidget>();
String appname = "visualizationApp";
if (wrkflowtable != null) {
appname = wrkflowtable.getName();
}
Element root = xmldoc.createElement("workflow-app");
root.setAttribute("xmlns", wrkflowtable.getNameSpace());
root.setAttribute("name", appname);
xmldoc.appendChild(root);
wrkflowtable.generateXML(xmldoc, root, null);
for (Connection c : this.connections) {
FunctionShape startShape = (FunctionShape) c.getStartShape();
NodeWidget w = (NodeWidget) startShape.asWidget();
if (w instanceof StartNodeWidget) {
queue.add(w);
break;
}
}