public Node internalGetNode(long id) { try { return getNode(id); } catch (IllegalArgumentException e) { if (dynamic) { return null; } else { throw e; } } }
/** Helper method for nodes that have multiple default outgoing connections */ public List<Connection> getDefaultOutgoingConnections() { return getOutgoingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
@Override public Object getMetaData(String name) { return ((NodeImpl)node).getMetaData(name); }
private void connect(Node sourceNode, Node targetNode) { new ConnectionImpl( sourceNode, Node.CONNECTION_DEFAULT_TYPE, targetNode, Node.CONNECTION_DEFAULT_TYPE ); }
public SplitFactory constraint(long toNodeId, String name, String type, String dialect, String constraint, int priority) { ConstraintImpl constraintImpl = new ConstraintImpl(); constraintImpl.setName(name); constraintImpl.setType(type); constraintImpl.setDialect(dialect); constraintImpl.setConstraint(constraint); constraintImpl.setPriority(priority); getSplit().addConstraint( new ConnectionRef(toNodeId, Node.CONNECTION_DEFAULT_TYPE), constraintImpl); return this; }
protected Node createNode(Attributes attrs) { ActionNode result = new ActionNode(); result.setAction(new DroolsConsequenceAction()); return result; }
public void setId(final long id) { this.id = id; String uniqueId = (String) getMetaData("UniqueId"); if( uniqueId == null ) { setMetaData("UniqueId", "_jbpm-unique-" + uniqueIdGen.getAndIncrement() ); } }
public String getUniqueId() { String result = id + ""; NodeContainer nodeContainer = getNodeContainer(); while (nodeContainer instanceof CompositeNode) { CompositeNode composite = (CompositeNode) nodeContainer; result = composite.getId() + ":" + result; nodeContainer = composite.getNodeContainer(); } return result; }
public CompositeNode() { this.nodeContainer = new NodeContainerImpl(); }
/** Helper method for nodes that have multiple default incoming connections */ public List<Connection> getDefaultIncomingConnections() { return getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
public WorkflowProcessImpl() { nodeContainer = (org.jbpm.workflow.core.NodeContainer) createNodeContainer(); }
public Node internalGetNode(long id) { return getNode(id); }
public List<Node> getNodesRecursively() { List<Node> nodes = new ArrayList<>(); processNodeContainer(nodeContainer, nodes); return nodes; }
private void connect(Node sourceNode, Node targetNode) { new ConnectionImpl (sourceNode, Node.CONNECTION_DEFAULT_TYPE, targetNode, Node.CONNECTION_DEFAULT_TYPE); }
protected NodeContainer createNodeContainer() { return new NodeContainerImpl(); }
public static void connect(Node nodeOne, Node nodeTwo ) { new ConnectionImpl( nodeOne, Node.CONNECTION_DEFAULT_TYPE, nodeTwo, Node.CONNECTION_DEFAULT_TYPE ); } }
private void connect(Node sourceNode, Node targetNode) { new ConnectionImpl( sourceNode, Node.CONNECTION_DEFAULT_TYPE, targetNode, Node.CONNECTION_DEFAULT_TYPE ); }
private static void connect(Node sourceNode, Node targetNode) { new ConnectionImpl(sourceNode, Node.CONNECTION_DEFAULT_TYPE, targetNode, Node.CONNECTION_DEFAULT_TYPE); }
private void connect(Node sourceNode, Node targetNode) { new ConnectionImpl(sourceNode, Node.CONNECTION_DEFAULT_TYPE, targetNode, Node.CONNECTION_DEFAULT_TYPE); }
public RuleFlowNodeContainerFactory connection(long fromId, long toId) { Node from = nodeContainer.getNode(fromId); Node to = nodeContainer.getNode(toId); new ConnectionImpl( from, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE, to, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); return this; }