How to use Instance.createTransientInstanceFromXML() to create child concepts referred in the XML file.
book
Article ID: KB0089948
calendar_today
Updated On:
TIBCO BusinessEvents Enterprise Edition
|
-
|
Not Applicable
|
-
|
Description
Resolution:
Description:
===========
How to use Instance.createTransientInstanceFromXML() to create child concepts referred in the XML file.
Example:
String sa = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?><ns0:NewConcept
xmlns:ns0=\"www.tibco.com/be/ontology/Concepts/NewConcept\"> <!-- property refCpt1 is a referenced concepts:--> <refCpt1> <HandleID>1</HandleID> <Code>AB</Code> </MessageRequest>
</ns0:refCpt1>";
Concepts.NewConcept cNewCpt =
Instance.createTransientInstanceFromXML(null, sa);
Environment:
==========
BusinessEvents 4.0.1
All Operating Systems
Symptoms:
=========
By default the child concept (MessageRequest) referred in the XML will not be created.
Cause:
======
Special properties required.
Resolution:
========
Add the properties below to the <BE-HOME>/studio/eclipse/configuration/studio.tra file.
# ---------------------------------------------
expand-schema=true
automatic_mapper_if_surround=true
filter-empty-elements=true
nillable-schema-elements=true
tibco.be.schema.ref.expand=true
tibco.be.schema.nil.attribs=true
tibco.be.schema.exclude.null.props=true
tibco.be.schema.treat.null.values=true
TIBCO.BE.function.catalog.Instance.createTransientInstanceFromXML=true
Issue/Introduction
How to use Instance.createTransientInstanceFromXML() to create child concepts referred in the XML file.
Feedback
thumb_up
Yes
thumb_down
No