Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
===========
Catalog Function Event.createEventFromXML() does not work as expected for Event payload "any" type.
Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems
Symptoms:
=========
Payload includes the parent element of XML only.
Cause:
======
Product defect - see BE-14498
(Catalog Function uses setting before new lines and tab in XML only).
Resolution:
========
Remove TAB and NewLine characters from XML string before create the Event (see sample below).
String messageWithoutNewLines = String.replaceAll((String.replaceAll(message,"\n","")),"\t","");
Events.MessageEvent msgEvent = Event.createEventFromXML("/Events/MessageEvent","<MessageEvent><payload>"+messageWithoutNewLines+"</payload></MessageEvent>");