/** Helper method for nodes that have multiple default outgoing connections */ public List<Connection> getDefaultOutgoingConnections() { return getOutgoingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
/** Helper method for nodes that have at most one default outgoing connection */ public Connection getTo() { final List<Connection> list = getOutgoingConnections(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 to connection but multiple connections are present"); } }
Map<String, List<org.kie.api.definition.process.Connection>> connectionsMap = targetNode.getOutgoingConnections(); ConnectionImpl outgoingConnection = null; for( String connectionType : connectionsMap.keySet() ) {
/** Helper method for nodes that have multiple default outgoing connections */ public List<Connection> getDefaultOutgoingConnections() { return getOutgoingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE); }
/** Helper method for nodes that have at most one default outgoing connection */ public Connection getTo() { final List<Connection> list = getOutgoingConnections(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 to connection but multiple connections are present"); } }
Map<String, List<org.kie.api.definition.process.Connection>> connectionsMap = targetNode.getOutgoingConnections(); ConnectionImpl outgoingConnection = null; for( String connectionType : connectionsMap.keySet() ) {