public RuleFlowNodeContainerFactory done() { nodeContainer.addNode(node); return this.nodeContainerFactory; }
public Node[] getNodes() { return nodeContainer.getNodes(); }
public Node getNode() { if (node == null) { try { node = nodeContainer.getNode(nodeId); } catch (IllegalArgumentException e) { // unknown node id, returning null } } return node; }
public void addNode(Node node) { // TODO find a more elegant solution for this // preferrable remove id setting from this class // and delegate to GUI command that drops node if (node.getId() <= 0) { long id = 0; for (Node n: nodeContainer.getNodes()) { if (n.getId() > id) { id = n.getId(); } } ((org.jbpm.workflow.core.Node) node).setId(++id); } nodeContainer.addNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(this); }
public Node getOutNode() { if (outNode == null) { outNode = ((NodeContainer) parentNode.getNodeContainer()).internalGetNode(outNodeId); } return outNode; }
public void removeNode(final Node node) { nodeContainer.removeNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(null); }
public Context resolveContext(String contextId, Object param) { Context context = getContext(contextId); if (context != null) { context = context.resolveContext(param); if (context != null) { return context; } } return ((org.jbpm.workflow.core.NodeContainer) parentNodeContainer).resolveContext(contextId, param); }
public void addNode(Node node) { // TODO find a more elegant solution for this // preferrable remove id setting from this class // and delegate to GUI command that drops node if (node.getId() <= 0) { long id = 0; for (Node n: nodeContainer.getNodes()) { if (n.getId() > id) { id = n.getId(); } } ((org.jbpm.workflow.core.Node) node).setId(++id); } nodeContainer.addNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(this); }
public Node getInNode() { if (inNode == null) { inNode = ((NodeContainer) parentNode.getNodeContainer()).internalGetNode(inNodeId); } return inNode; }
public void removeNode(Node node) { nodeContainer.removeNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(null); }
public Context resolveContext(String contextId, Object param) { Context context = getContext(contextId); if (context != null) { context = context.resolveContext(param); if (context != null) { return context; } } return ((org.jbpm.workflow.core.NodeContainer) parentNodeContainer).resolveContext(contextId, param); }
public void addNode(final Node node) { nodeContainer.addNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(this); }
public Node[] getNodes() { List<Node> subNodes = new ArrayList<Node>(); for (Node node: nodeContainer.getNodes()) { if (!(node instanceof CompositeNode.CompositeNodeStart) && !(node instanceof CompositeNode.CompositeNodeEnd)) { subNodes.add(node); } } return subNodes.toArray(new Node[subNodes.size()]); }
public Node getNode(final long id) { return nodeContainer.getNode(id); }
public Node getNode() { try { return ((org.jbpm.workflow.core.NodeContainer) this.nodeInstanceContainer.getNodeContainer()).internalGetNode( this.nodeId ); } catch (IllegalArgumentException e) { throw new IllegalArgumentException( "Unknown node id: " + this.nodeId + " for node instance " + getUniqueId() + " for process instance " + this.processInstance, e); } }
public void removeNode(Node node) { nodeContainer.removeNode(node); ((org.jbpm.workflow.core.Node) node).setNodeContainer(null); }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); NodeContainer nodeContainer = (NodeContainer) parser.getParent(); final Node node = createNode(); final String id = attrs.getValue("id"); node.setId(new Long(id)); final String name = attrs.getValue("name"); node.setName(name); nodeContainer.addNode(node); return node; }
protected void processNodeContainer(org.jbpm.workflow.core.NodeContainer nodeContainer, List<Node> nodes) { for (Node node : nodeContainer.getNodes()){ nodes.add(node); if (node instanceof org.jbpm.workflow.core.NodeContainer) { processNodeContainer((org.jbpm.workflow.core.NodeContainer) node, nodes); } } } }
public Node getNode(long id) { return nodeContainer.getNode(id); }
public Node getOutNode() { if (outNode == null) { outNode = ((NodeContainer) parentNode.getNodeContainer()).internalGetNode(outNodeId); } return outNode; }