Try OpenEdge Now
skip to main content
Application Developer's Guide
Developing Business Process Server adapters : Data mapping
 

Data mapping

Before coding a custom BP Server adapter, review the dataslots mapping to Java data types. The following data types are defined in Business Process Server: CHARACTER, INTEGER (containing Double, and Decimal), INT64, LOGICAL, DATETIME-TZ, LIST, Map, Object, and Business Object. The LOGICAL, INT64, INTEGER, and CHARACTER have one-to-one mapping to Java data types, as listed in the following table:
Table 10. Business Process Server dataslots to java data types mapping
Business Process Server dataslot type
Java data type
Notes
LOGICAL
com.progress.lang.Logical
None
DATE, DATETIME, DATETIME-TZ
com.progress.lang.DateTimeTZ
None
Document
java.lang.String
The Document dataslot, however, is actually a URL pointing to a document which resides on the Web server. Do not keep a document on the workflow engine, especially when it is large (as it becomes inefficient). However, only this URL is necessary to retrieve the actual document from the Web server.
LIST
java.util.Vector
None
Map
java.util.LinkedHashMap
None
DECIMAL
com.progress.lang.Decimal
None
INTEGER
com.progress.lang.Integer
None
INT64
com.progress.lang.Int64
None
Object
java.lang.Object
Your set() method must assign the object to the proper java class type. BP Server assigns the object, retrieved in the get() method to java.lang.Object.An example of how to use the Object dataslot is provided in the following section.
CHARACTER
com.progress.lang.Character
None
* Example of mapping an object dataslot
* Mapping existing methods from a predefined adapter