Wednesday, July 16, 2008

Business Object

Business Object How to

Websphere Integration Developer v612

Contact us...

Contents

How to create a Business Object

Related links

Creating business objects

Business object editor

A Business Object

This is a business object.

The following steps below describe how to create this business object.

Create a Business Object

In the Business Integration view, right-click Data Types and select New > Business Object.

Assign Business Object Name

Enter the business object name (i.e StockQuoteRequest) in the Name entry box and click Next.

Set Derived Business Object

You can populate the new business object with fields from one or more existing business objects or create the new business object from scratch.

Click Finish.

An empty business object

An empty business object is created. Populate this business object by following the steps below.

Add fields

  1. Right-click inside the business object and select Add field.
  2. Repeat 1 above to add as many fields as required.

Change field name and type

Default attribute name (field1) and type (string) are automatically set up. You can change the default field name and type to suit your specific requirements.

To change the field name, just overtype the current field1 name.

To change the type, click on the current type (string) and select the required type (i.e double).

How to import a Business Object

Related links

Creating business objects

Business object editor

Introduction You can manually create and edit the XSD files using a text editor or XSD editor. Or, you can import XSD files into WID. This scenario is supported, provided that the file created in this manner is a properly formed schema and contains an XSD complex type definition.

Import a Business Object

In the Business Integration view, right-click Data Types and select Import

Select an Import Source

Expand the General folder, select File System and click Next.

Select the business object xsd

  1. Click Browse beside From directory and navigate to <installdir>ResourceAdaptersFlatFile_6.1.0.0_IF04samples
  2. Expand samples folder
  3. Select Customer.xsd.
  4. The Into folder should have the value SeparateCustomers.
  5. Click Finish
Imported Business object

No comments: