/** Helper method for nodes that have multiple default incoming connections */ public List<Connection> getDefaultIncomingConnections() { return getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
/** Helper method for nodes that have at most one default incoming connection */ public Connection getFrom() { final List<Connection> list = getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); if (list.size() == 0) { return null; } if (list.size() == 1) { return list.get(0); } if ("true".equals(System.getProperty("jbpm.enable.multi.con"))) { return list.get(0); } else { throw new IllegalArgumentException( "Trying to retrieve the from connection but multiple connections are present"); } }
/** Helper method for nodes that have multiple default incoming connections */ public List<Connection> getDefaultIncomingConnections() { return getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
/** Helper method for nodes that have at most one default incoming connection */ public Connection getFrom() { final List<Connection> list = getIncomingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); if (list.size() == 0) { return null; } if (list.size() == 1) { return list.get(0); } if ("true".equals(System.getProperty("jbpm.enable.multi.con"))) { return list.get(0); } else { throw new IllegalArgumentException( "Trying to retrieve the from connection but multiple connections are present"); } }