How to correctly set the different implementation mechanism properties used by the REST & JSON plugin in the .tra files

How to correctly set the different implementation mechanism properties used by the REST & JSON plugin in the .tra files

book

Article ID: KB0071423

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON 2.1.0

Description

The Rest & JSON plugin supports different implementation mechanisms for using Render JSON, Parse JSON, and Invoke REST API activities. Those properties are mentioned in the User Guide document of the plugin along with the way to implement them. But when these mentioned properties are placed directly in the .tra file, those may not take effect.

For example, coping the below properties in the desginer.tra file and restarting the designer won't take the changes into effect.

com.tibco.com.restjson.xml2json.checkEmptyElement=true
com.tibco.com.restjson.json.prettyPrint=false

Issue/Introduction

How to set the properties correctly in the .tra file for them to take effect.

Environment

BW 5.x

Resolution

For those properties to take effect, "java.property." should be appended before the properties. This is done to let the application/Designer know that the property is a Java property.

For example, the above properties when changed to the below properties, work fine when added to the .tra file.

java.property.com.tibco.com.restjson.xml2json.checkEmptyElement=true
java.property.com.tibco.com.restjson.json.prettyPrint=false

Additional Information

REST & JSON plugin user guide.
https://docs.tibco.com/pub/bwpluginrestjson/2.1.0/doc/bwpluginrestjson/html/wwhelp/wwhimpl/js/html/wwhelp.htm