/** * Returns true if this StringMapAttribute instance contains the * given key. */ public boolean hasKey (final String key) { return (this.get(key) != null); }
public static void displayAttributes(StringMapAttribute sma) { for(Iterator i = sma.stringKeySet().iterator(); i.hasNext();) { String key = (String)i.next(); Attribute attr = (Attribute)sma.get(key); String attrType = attr.getClass().getName(); attrType = attrType.substring(attrType.lastIndexOf(".")+1); System.out.print("\n" + key + " [" + attr + "] (" + attrType + ")"); } }
public WfCmdEdit(WorkSession session, String storeName, Header header, BufferedReader reader) { this.session = session; this.storeName = storeName; this.header = header; this.reader = reader; fei = header.getExpressionId(); try { ifItem = session.getAndLock(storeName, fei); } catch (Exception e) { throw new IllegalArgumentException("Can't get FlowExpresssionId " + fei.getWorkflowInstanceId() + ": " + e); } StringMapAttribute sma = header.getAttributes(); prompt = sma.get(Header.WF_DEFINITION_NAME) + " " + sma.get(Header.WF_DEFINITION_REVISION) + ": " + sma.get(Header.WF_INSTANCE_ID) + "> "; // prompt = "> "; modified = false; }
final StringMapAttribute sma = header.getAttributes(); System.out.println("Workflow " + sma.get(Header.WF_DEFINITION_NAME) + " " + sma.get(Header.WF_DEFINITION_REVISION) + " : " + sma.get(Header.WF_INSTANCE_ID)); StringAttribute subject = (StringAttribute)sma.get(Header.SUBJECT); System.out.println("\"" + (subject!=null ? subject.toString() : "") + "\""); System.out.println("Dispatch time : " + sma.get(Header.DISPATCH_TIME)); System.out.println("Last modified : " + header.getLastModified()); System.out.println("Participant : " + sma.get(Header.PARTICIPANT_NAME)); System.out.println("."); System.out.println(" * '"+key+"': '"+sma.get(key)+"'");
("validate() found matching key '"+aKey.toString()+"' ..."); final Attribute aValue = (Attribute)wi.getAttributes().get(aKey);
context.put(k, wi.getAttributes().get(k).toString());
result.put(key, (Attribute)slaveWi.getAttributes().get(key));
Object currentValue = workItem.getAttributes().get(fieldName);