skip to main content
Corticon Server: Integration & Deployment Guide : Preparing Studio files for deployment : Java object mapping
 

Try Corticon Now

Java object mapping

If you have chosen to use Option 3 in Corticon Server Installation Options – in other words, the data payload of your call will be in the form of a map or collection of Java objects – then your Vocabulary may need to be configured to match the method names within those objects.
Note: For information about mapped Java objects usage on a .NET server, see Using .NET Business Objects as payload for Decision Services in the .NET Server Guide
Corticon Studio can import a package of classes and automatically match the object structure with the Vocabulary structure. In other words, it will try to determine which objects match which Vocabulary entities, which properties match which Vocabulary attributes, and which object references match which Vocabulary associations.
To perform this matching, Corticon Studio assumes your objects are JavaBean compliant, meaning they contain public get and set methods to expose those properties used in the Vocabulary. Without this JavaBean compliance, the automatic mapper may fail to fully map the package, and you will need to complete it manually.
To import package metadata:
1. Open your Vocabulary in Corticon Studio's Vocabulary Edit mode.
2. On the Vocabulary menu, choose Add Document Mapping > Add Java Object Mapping.
A new tab is added to the top level of the Vocabulary.
3. On the Java Object Mapping tab, click Import
Figure 284. Importing Java Class Metadata for Mapping
4. Use the Browse button to select the location of your Java Business Objects. They should be compiled class files or Java archives (.jar files).
Figure 285. Browsing to your Java Class files
5. Select the package containing the Java business objects as shown:
Figure 286. Importing Java Class Metadata for Mapping
6. When the import succeeds, you see the following message:
Figure 287. Java Class Metadata Import Success Message
Now that the import is complete, we will examine our Vocabulary to see what happened.
* Verifying Java object mapping
* Inheritance and Java object messaging