/** * The counterpart of setField(). * It's actually a call to * CollectionAttribute.lookupAttribute(fieldName, this); */ public Attribute getField (final String fieldName) { /* if (log.isDebugEnabled()) log.debug("getField() for '"+fieldName+"'"); final Attribute a = CollectionAttribute.lookupAttribute(fieldName, this); if (a != null) return a; if (log.isDebugEnabled()) log.debug("getField() getting '"+fieldName+"' literally"); return this.get(new StringAttribute(fieldName)); */ return CollectionAttribute.lookupAttribute(fieldName, this); }
private String lookupFieldValue (final String key) { if (this.workitem == null) return null; final Attribute a = CollectionAttribute .lookupAttribute(key, this.workitem.getAttributes()); if (a == null) return null; return a.toString(); }
protected org.jdom.Content handleField (final InFlowWorkItem wi, final String key) { final Attribute a = CollectionAttribute .lookupAttribute(key, wi.getAttributes()); return XemeUtils.toXemeResult(this, a); }
log.debug("doLookup() car >"+scar+"< cdr >"+scdr+"<"); final Attribute newStartPoint = lookupAttribute(scar, startPoint);
/** * Dumping the whole wi or just a branch of its attribute tree. */ public static String dumpfield (final FlowExpression fe, final InFlowWorkItem wi, final String[] args) { String key = ""; if (args.length > 0) key = args[0]; final Attribute a = CollectionAttribute .lookupAttribute(key, wi.getAttributes()); final XmlWorkItemCoder coder = (XmlWorkItemCoder)Definitions .getXmlCoder(fe.context()); try { return coder.encodeAttribute(a).toString(); } catch (final CodingException e) { log.info("dumpfield() failure", e); return ""; } }