/** * creates a nested node. Also the nested node's parent pointer will be set * appropriatly. */ public Node createNode() { return createNode(null); }
/** creates a named node. * The current parent is either the process definition or a composite node * in case method {@link #compositeNode(String)} was called previously. */ public ProcessFactory node(String nodeName) { if (exceptionHandler!=null) { exceptionHandler.setNodeName(nodeName); } else { node = compositeElement.createNode(nodeName); scope = null; observableElement = node; event = null; eventListenerReference = null; transition = null; exceptionHandler = null; } return this; }