public void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); Split splitNode = (Split) node; String type = element.getAttribute("type"); if (type != null && type.length() != 0 ) { splitNode.setType(new Integer(type)); } }
public SplitFactory type(int type) { getSplit().setType(type); return this; }
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_AND); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_AND); 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_UNDEFINED); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_UNDEFINED); 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("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); Constraint constraint = new ConstraintImpl();
public void handleNode(final Node node, final Element element, final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { super.handleNode(node, element, uri, localName, parser); Split splitNode = (Split) node; String type = element.getAttribute("type"); if (type != null && type.length() != 0 ) { splitNode.setType(new Integer(type)); } }
public SplitFactory type(int type) { getSplit().setType(type); return this; }
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_AND); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_AND); 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_UNDEFINED); return join; } else if ("Diverging".equals(type)) { Split split = new Split(); split.setType(Split.TYPE_UNDEFINED); 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); } }
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); } }