![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
This section also provides related procedures and a reference to the properties used (Table 76, Properties for Null Property Handling).The presence of the xsd:nillable attribute in an XSD element means that the corresponding element in the XML file permits null values.Setting tibco.be.schema.nil.attribs=true in studio.tra causes the xsd:nillable attribute ("xsd:nillable=true") to be set on all elements in the TIBCO BusinessEvents concept XSD. When an element in the XML file generated using that XSD has a null value, the xsi:nil="true" attribute is set on that element.When set to false, the xsd:nillable attribute is not added and the corresponding XML file does not treat empty elements as null values.In the absence of the xsd:nillable attribute in the XSD element, a corresponding empty element in the XML file is assumed to have a value. Elements that have no value are treated as empty strings ("").
Effect on schema generation tool The setting for this property affects the concept XSD files generated using the Generate Schema utility. See Exporting (Generating) Concept and Event Schema (XSD) Files for details.Setting the following property to false in the studio.tra file causes properties with null values to be included in the XML representation of a concept:tibco.be.schema.nil.attribs= true or falseSuppose a Customer concept instance has no value for its CustomerName property. By default, the CustomerName property is excluded from the XML output. The output might look like the following:
If null properties are excluded when concepts are serialized, the tibco.be.schema.nil.attribs property has no effect on concept serialization.The output for the Customer concept instance shown above would be as follows, where there is no value for the CustomerName element in the concept instance:
If you enable null values to be output to XML (see Enabling Null Property Values to Appear When Serializing Concepts to XML), then you may also want to configure additional properties for defining how to treat null values for numeric types and Booleans, as explained in this section.To address such issues, you can enable special treatment of numeric null values at design time. At runtime, TIBCO BusinessEvents then uses a special numeric value for each numeric datatype, and (by default) Boolean:FALSE for Booleans, to represent a null value. Default special values are provided and you can override the defaults at runtime (see Table 76, Properties for Null Property Handling).At runtime you can override the default values that indicate null. See Setting Runtime Properties for Special Treatment of Null Values.If you have enabled special treatment of null numeric properties, you can override the default special values that indicate null values of various datatypes in TIBCO BusinessEvents (shown in Property Reference for Null Property Handling).Set the following properties in the studio.tra file as needed to configure the output for your needs before you generate the EAR file.
Setting this property to true causes the xsd:nillable attribute ("xsd:nillable=true") to be set on all elements in the TIBCO BusinessEvents concept XSD. These properties are used only if tibco.be.schema.treat.null.values is set to true.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |