Try OpenEdge Now
skip to main content
Developing BPM Applications with Developer Studio
Managing business objects : Using the Business Object Manager : Importing business objects : Importing a business object from a Java Bean file
 
Importing a business object from a Java Bean file
Java Beans encapsulates multiple objects into a single object (or bean).
To import a business object from a Java Bean file:
1. From the Local section of the Business Object Manager dialog box, click Import. The Import dialog box appears.
2. Select JavaBean and then click OK. The Java Bean Import dialog box appears.
3. To add a Java Bean file as the source, click Add. The Add Source dialog box appears.
a. Click the ellipsis button beside the Location box to browse and select the Java file or a folder containing multiple Java files.
b. Select the existing Category or create a new category based on the requirement.
c. Select Linked Source checkbox. If you select the Linked Source checkbox, then the information of linking the source is passed on to the BO type as well.
The Linked Source feature is available only for importing a Java file and it is unavailable if you have selected a folder which contains multiple Java files. If you generate the Java file in a common resource project, the original Java file is referenced if you have selected the Linked Source checkbox.
The Linked Source, whose value is initially set to true, loses its value if you modify the imported business object.
d. Click OK.
The default (or initial) value of Java files with initialized variables is not imported.
In the JavaBean Import dialog box, the JavaBean details appear in the Sources section and the business objects available in the Java bean are displayed in the Types section. Click Modify in the Sources section to select another JavaBean file or category. Click Delete in the Sources section to delete the selected JavaBean file. To modify any of the listed business objects in the Types section, select the business object and click Modify. You can modify the details including name, category, and linked source attribute.
4. Click Generate.
The list of business object that you can import appears in Business Objects To Import dialog box.
5. Select one (or more) business object and click OK. The selected business objects are added to the list in the Business Object Manager.