protected org.jdom.Element encodeAsXml (final LaunchItem li) throws CodingException { org.jdom.Element elt = encodeSuper(li); elt.setName(LAUNCHITEM); // // wfdUrl //elt.setAttribute // (WORKFLOW_DEFINITION_URL, li.getWorkflowDefinitionUrl()); elt.setAttribute (PROCESS_DEFINITION_URL, li.getWorkflowDefinitionUrl()); // // description map final org.jdom.Element dm = new org.jdom.Element(DESCRIPTION_MAP, XMLNS); if (li.getDescriptionMap() != null) dm.addContent(encodeAttribute(li.getDescriptionMap())); elt.addContent(dm); return elt; }
/** * Produces an exact replica of this InFlowWorkItem */ public Object clone () { LaunchItem clone = new LaunchItem (); //clone.setLastModified // (Utils.copyString(getLastModified())); clone.setLastModified(Time.toIsoDate()); clone.setAttributes ((StringMapAttribute)getAttributes().clone()); clone.setWorkflowDefinitionUrl (Utils.copyString(getWorkflowDefinitionUrl())); clone.setDescriptionMap ((StringMapAttribute)getDescriptionMap().clone()); clone.setReplyTo(getReplyTo().copy()); return clone; }