protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_XAND); split.setMetaData("EventBased", "true"); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_XOR); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_XOR); String isDefault = attrs.getValue("default"); split.setMetaData("Default", isDefault); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_OR); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_OR); String isDefault = attrs.getValue("default"); split.setMetaData("Default", isDefault); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }
split.setMetaData("x", 1); split.setMetaData("y", 2); split.setMetaData("width", 3); split.setMetaData("height", 4); split.setType(Split.TYPE_XOR); Connection connection = new ConnectionImpl(split, Node.CONNECTION_DEFAULT_TYPE, actionNode, Node.CONNECTION_DEFAULT_TYPE);
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_XAND); split.setMetaData("EventBased", "true"); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_XOR); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_XOR); String isDefault = attrs.getValue("default"); split.setMetaData("Default", isDefault); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }
protected Node createNode(Attributes attrs) { final String type = attrs.getValue("gatewayDirection"); if ("Converging".equals(type)) { Join join = new Join(); join.setType(Join.TYPE_OR); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_OR); String isDefault = attrs.getValue("default"); split.setMetaData("Default", isDefault); return split; } else { throw new IllegalArgumentException( "Unknown gateway direction: " + type); } }