public void linkOutgoingConnections(long outNodeId, String outNodeType, String outType) { linkOutgoingConnections(new NodeAndType(this, outNodeId, outNodeType), outType); }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); CompositeNode compositeNode = (CompositeNode) parser.getParent(); final String type = attrs.getValue("type"); emptyAttributeCheck(localName, "type", type, parser); final String nodeId = attrs.getValue("nodeId"); emptyAttributeCheck(localName, "nodeId", nodeId, parser); final String nodeOutType = attrs.getValue("nodeOutType"); emptyAttributeCheck(localName, "nodeOutType", nodeOutType, parser); compositeNode.linkOutgoingConnections(new Long(nodeId), nodeOutType, type); return null; }
public void addIncomingConnection(String type, Connection connection) { if (connection.getFrom().getNodeContainer() == this) { linkOutgoingConnections(connection.getFrom().getId(), connection.getFromType(), org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } else { super.addIncomingConnection(type, connection); CompositeNode.NodeAndType inNode = internalGetLinkedIncomingNode(type); if (inNode != null) { CompositeNodeStart start = new CompositeNodeStart(this, connection.getFrom(), type); internalAddNode(start); NodeImpl node = (NodeImpl) inNode.getNode(); if (node != null) { new ConnectionImpl( start, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE, inNode.getNode(), inNode.getType()); } } } }
join, Node.CONNECTION_DEFAULT_TYPE ); compositeNode.linkOutgoingConnections(join.getId(), Node.CONNECTION_DEFAULT_TYPE, Node.CONNECTION_DEFAULT_TYPE);
public void linkOutgoingConnections(long outNodeId, String outNodeType, String outType) { linkOutgoingConnections(new NodeAndType(this, outNodeId, outNodeType), outType); }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); CompositeNode compositeNode = (CompositeNode) parser.getParent(); final String type = attrs.getValue("type"); emptyAttributeCheck(localName, "type", type, parser); final String nodeId = attrs.getValue("nodeId"); emptyAttributeCheck(localName, "nodeId", nodeId, parser); final String nodeOutType = attrs.getValue("nodeOutType"); emptyAttributeCheck(localName, "nodeOutType", nodeOutType, parser); compositeNode.linkOutgoingConnections(new Long(nodeId), nodeOutType, type); return null; }
public void addIncomingConnection(String type, Connection connection) { if (connection.getFrom().getNodeContainer() == this) { linkOutgoingConnections(connection.getFrom().getId(), connection.getFromType(), org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); } else { super.addIncomingConnection(type, connection); CompositeNode.NodeAndType inNode = internalGetLinkedIncomingNode(type); if (inNode != null) { CompositeNodeStart start = new CompositeNodeStart(this, connection.getFrom(), type); internalAddNode(start); NodeImpl node = (NodeImpl) inNode.getNode(); if (node != null) { new ConnectionImpl( start, org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE, inNode.getNode(), inNode.getType()); } } } }