I recently created an XML validation service using Orbeon to validate XML sent into a business process. The Intalio business process retrieves the XML from eXist XML database and then I call a REST service. The REST service is actually an orbeon webapp that consists of an XPL file with several processors (validation processor and xsl processor) included within the XPL file. If the XML is valid, the REST service sends back an empty error message and the process proceeds. If the XML is invalid, the validation processor marks the element that is invalid with an error element <v:error> with some descriptive information. Before sending back the message to Intalio I transform the validation XML output to only include information about the error. The XML error message contains information about the XML document, the parent node of each error so user knows which element(s) contains the error, the value of that node(s) and the message contained within the <v:error> element(s) sent back from the Validation processor. The Intalio process then sends an HTML formatted email to the user.
Example of email:
Message: The complaint you submitted has the following errors. Please correct these errors and then resubmit your complaint. |
OTN: R04-12345 |
Officer: Police Officer1 |
Department: X Regional Police Department |
Defendant: Kitty Meow |
PersonSexCode: XN Error the value is not a member of the enumeration: ("U"/"F"/"M")
This solution was developed by BTM Software Solutions. Our web-site address is
http://BTMSoftwareSolutions.com for more information.
A great online marketing company for technical support inbound calls & pop up calls for tech support , PPC Expert For Tech Support by osiel web.
ReplyDelete