The DynamicXml component serializes BPM object components into XML strings, and deserializes BPM objects from XML strings.
The following example writes a mail object into an XML string, and reads the mail object from the XML string:
mail as Mail mail.from = "me@here.com" mail.recipient = "somebody@somewhere.com" mail.subject = "A test" mail.message = "This is simple mail message." xmlTextResult as String xmlTextResult = createXmlTextFor(DynamicXml, object : mail, topLevelTag : "mail") consistentXmlText as String consistentXmlText = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + xmlTextResult display consistentXmlText object as Java.Lang.Object object = createObjectFrom(DynamicXml, xmlText : consistentXmlText, target : Mail()) display "Object class: " + object.getClass() display object