How to include event property in outbound message even if it is empty

How to include event property in outbound message even if it is empty

book

Article ID: KB0073300

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.5, 5.6.x and 6.x

Description

There is an Outbound event from Tibco BE published to a queue. One of the event properties of type "string" is empty ("") in some cases. If the requirement is to publish/include the field in the event being sent even if it's empty then please follow the instructions below.

Environment

All Supported Environments

Resolution

The Event property published to the EMS queue when property has a non-null value. Set the value to "" if it's null.

There are two options available.
1) XSLT mapper - surround the value in a Choose statement and check stringLength (set value if > 0 otherwise set value to "").
2) Create Event with <URL>.<eventName>(<extiD>,<payload>,<prop1>,<prop2> ... <propn>) and set the value to "" if it's null.

Issue/Introduction

How to include event property in outbound message even if it is empty or null