public static String getAttributeValue(Nodes attributes) { if (attributes.hasAny()) { Node attribute = attributes.get(0); if (attribute instanceof Attribute) { return attribute.getValue(); } } return ""; }
public boolean hasOutputVariable(MessageActivity msgActivity) { Nodes outVar = msgActivity.toXOM().query("attribute::outputVariable", CONTEXT); return outVar.hasAny(); }