Catalog Function Event.createEventFromXML() does not work as expected for Event payload "any" type.

Catalog Function Event.createEventFromXML() does not work as expected for Event payload "any" type.

book

Article ID: KB0091571

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

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","&ltMessageEvent>&ltpayload>"+messageWithoutNewLines+"</payload></MessageEvent>");

Issue/Introduction

Catalog Function Event.createEventFromXML() does not work as expected for Event payload "any" type.