The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Recommended Posts

Posted

Hi,

We areusing Business Event 5.3.

In our application, we arereceiving a HTTP Request with JSON payload through a HTTP Channel. The JSON Payload looks like below:

{

"Customer" :

{

"attributes" : {

"type" : "www.tibco.com/be/ontology/Concepts/Customer"

},

"Address": {

"address_line1" : "201 XYZ Street",

"city" : "PQR"

},

"name": "ABC",

"age": "22"

}

}

We have defined a Concept named "Address" with two properties, namely, "address_line1" and "city". And another Concept named "Customer" with properties "name", "age" and "Address" (with type as Contained Concept). We have also set Receiving Event Payload as "Customer" (XML Element Reference).

What we observe is that when a HTTP request comes with above JSON payload, BE is correctly setting the "name" and "age" properties inside the Customer Concept. But, it is setting "Address" as NULL. Any idea what needs to be done so that such nested Concepts are also set by the XML parser

We have looked at the examples provided with BE - both BEJSONClient and BEJSONServer use only elementary data elements in the JSON payload and do not use complex data elements inside JSON structure.

 

Thanks for your help.

Sumit

  • 10 months later...
Posted

For BE Address is a contained or referenced concept. You have to update the payload and add all elements to root folder or update payload and add child attribute.

eg:

{"Customer":

{"attributes":

{"type":"www.tibco.com/be/ontology/Concepts/Customer"},

"name":"ABC",

"age":22,

"Address":

{"attributes":

{"type":"www.tibco.com/be/ontology/Concepts/Address"},

"address_line1":"201 XYZ Street",

"city":"PQR"

}

}

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...