Processing Option Service
The AIS Server provides a processing option service that enables you to retrieve the processing option fields and values for an application and version in EnterpriseOne.
The key strings can be derived by creating a type definition on the PO Data Structure in Object Management Workbench (OMW). The italicized portion of the #define below shows the key string for the example.
#define IDERRmnNetQuebecTaxCredit_27 27L
There are six supported data types. These are based on the data item used in the Processing Option Design Aid for each option.
You can get the type of the option before attempting to cast it, which is the recommended method. Or you can just cast it to the type you expect, because it is unlikely to change. The default is String, so you will always be able to get to a string version of the option value.
Type Code |
Type Constant |
Java Type |
JDE DD Type |
---|---|---|---|
1 |
STRING_TYPE |
String |
String |
2 |
CHAR_TYPE |
String |
Character |
9 |
BIG_DECIMAL_TYPE |
BIG Decimal |
Math Numeric |
11 |
DATE_TYPE |
Date |
Date |
15 |
INTEGER_TYPE |
Integer |
Integer |
55 |
CALENDAR_TYPE |
Calendar |
Utime |
The code in Example - Retrieving Processing Options with the Processing Option Service is an example of retrieving processing options for P0801, version ZJDE0001. First it populates the request values and calls the poRequest service. After deserializing the response to a ProcessingOptionSet object, it uses the getOptionValue method to retrieve the value for a specific processing option based on the key string.