IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Business objects programming > Programming model > Modeling business object type metadata
Designing business object type metadata
You can design a metadata structure to house the business object metadata.
To design the metadata structure follow these steps.
Procedure
- Create an XML schema file with a valid target namespace. This step is used when the instance metadata is added to the business object definition.
- Define a named complex type to define each separate piece of metadata that can be added to a business object. The complex type definition is used to define the structure of the dynamically typed DataObject used to read the instance metadata. The name of the complex type is used when the instance metadata is added to the business object definition.
Example
This example shows a portion of business object type metadata developed for a PeopleSoft adapter.<schema> targetNamespace="http://www.ibm.com/xmlns/prod/websphere/adapter/psft/ PSFTBODefinitionASI/7.0.0" xmlns:psft="http://www.ibm.com/xmlns/prod/websphere/adapter/psft/ PSFTBODefinitionASI/7.0.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <complexType name="PSFTBODefinitionASI"> <sequence> <element name="hostname" type="string"/> <element name="ipaddress" type="string"/> </sequence> </complexType> </schema>