public ForEachNodeFactory collectionExpression(String collectionExpression) { getForEachNode().setCollectionExpression(collectionExpression); return this; }
protected 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); ForEachNode forEachNode = (ForEachNode) node; final String variableName = element.getAttribute("variableName"); if (variableName != null && variableName.length() != 0) { forEachNode.setVariable(variableName, new ObjectDataType()); } final String collectionExpression = element.getAttribute("collectionExpression"); if (collectionExpression != null && collectionExpression.length() != 0) { forEachNode.setCollectionExpression(collectionExpression); } final String waitForCompletion = element.getAttribute("waitForCompletion"); if ("false".equals(waitForCompletion)) { forEachNode.setWaitForCompletion(false); } }
collectionName = dataInputs.get(inputDataRef); forEachNode.setCollectionExpression(collectionName);
forEachNode.setName("ForEach"); forEachNode.setId(3); forEachNode.setCollectionExpression("persons"); personDataType = new ObjectDataType(); personDataType.setClassName("org.drools.Person");
forEachNode.setCollectionExpression("collection"); forEachNode.setVariable("variableName", new ObjectDataType()); forEachNode.setWaitForCompletion(false);
public ForEachNodeFactory collectionExpression(String collectionExpression) { getForEachNode().setCollectionExpression(collectionExpression); return this; }
protected 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); ForEachNode forEachNode = (ForEachNode) node; final String variableName = element.getAttribute("variableName"); if (variableName != null && variableName.length() != 0) { forEachNode.setVariable(variableName, new ObjectDataType()); } final String collectionExpression = element.getAttribute("collectionExpression"); if (collectionExpression != null && collectionExpression.length() != 0) { forEachNode.setCollectionExpression(collectionExpression); } final String waitForCompletion = element.getAttribute("waitForCompletion"); if ("false".equals(waitForCompletion)) { forEachNode.setWaitForCompletion(false); } }
collectionName = dataInputs.get(inputDataRef); forEachNode.setCollectionExpression(collectionName);