|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |
The Java To XML activity allows you to convert a Java object’s data members into an XML document. See Java Schema for the conversion rules.
For example, the Java object has a method declared as public int setID(), but there is no method for getting the ID, and the data member ID is not public. In this case, there is an element named ID in this activity’s output schema, but that element has no value because there is no public mechanism for getting the data.XmlEnum and XmlEnumValue together provide a mapping of type enum to the XML representation.For more details and for the usage of these annotations, see, https://jaxb.java.net/nonav/2.2.4/docs/api/javax/xml/bind/annotation/XmlEnum.html
Table 4 Java to Schema Data Type Binding This change in behavior is enabled by a system property java.property.com.tibco.xml.conversion.SequencingViaAnnotation=true.BusinessWorks tries to get the order of the element through annotations when the property is set to true. The default value is false.The annotation element propOrder() can be used to customize content model to xs:sequence. This is used to specify the order of the XML elements in xs:sequence.
When this field is unchecked, you must supply an object reference for the Java Class specified on the Configuration tab. The object must be created and contained in the output schema of a previously executed activity, such as a Java Code activity, Java Method, or an XML To Java activity. In this case, the declaring class is included in the activity’s input schema. See Caching the Java Class for more information about caching the declared class.See TIBCO ActiveMatrix BusinessWorks Process Design for more information about mapping and transforming input data.
<declaringClass>
The Error Output tab lists the possible exceptions that can be thrown by this activity. See TIBCO ActiveMatrix BusinessWorks Error Codes for more information about error codes and corrective action to take.
|
| Copyright © Cloud Software Group, Inc. All Rights Reserved |