public boolean isDefault(final Connection connection) { if ( connection == null ) { throw new IllegalArgumentException( "connection is null" ); } if ( this.type == TYPE_OR || this.type == TYPE_XOR ) { ConnectionRef ref = new ConnectionRef((String)connection.getMetaData().get("UniqueId"), connection.getTo().getId(), connection.getToType()); Constraint constraint = this.constraints.get(ref); String defaultConnection = (String) getMetaData().get("Default"); String connectionId = (String) connection.getMetaData().get("UniqueId"); if (constraint != null) { return constraint.isDefault(); } else if (constraint == null && connectionId.equals(defaultConnection)) { return true; } else { return false; } } throw new UnsupportedOperationException( "Constraints are " + "only supported with XOR or OR split types, not with: " + getType() ); }
writeNode(type, node, xmlDump, metaDataType); for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) { if (entry.getValue() != null && entry.getValue().isDefault()) { xmlDump.append("default=\"" + XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" + writeNode(type, node, xmlDump, metaDataType); for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) { if (entry.getValue() != null && entry.getValue().isDefault()) { xmlDump.append("default=\"" + XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +
public boolean isDefault(final Connection connection) { if ( connection == null ) { throw new IllegalArgumentException( "connection is null" ); } if ( this.type == TYPE_OR || this.type == TYPE_XOR ) { ConnectionRef ref = new ConnectionRef((String)connection.getMetaData().get("UniqueId"), connection.getTo().getId(), connection.getToType()); Constraint constraint = this.constraints.get(ref); String defaultConnection = (String) getMetaData().get("Default"); String connectionId = (String) connection.getMetaData().get("UniqueId"); if (constraint != null) { return constraint.isDefault(); } else if (constraint == null && connectionId.equals(defaultConnection)) { return true; } else { return false; } } throw new UnsupportedOperationException( "Constraints are " + "only supported with XOR or OR split types, not with: " + getType() ); }
writeNode(type, node, xmlDump, metaDataType); for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) { if (entry.getValue() != null && entry.getValue().isDefault()) { xmlDump.append("default=\"" + XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" + writeNode(type, node, xmlDump, metaDataType); for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) { if (entry.getValue() != null && entry.getValue().isDefault()) { xmlDump.append("default=\"" + XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +