Data Type Compatibility between Intelligent Advisor and B2C Service

Policy Modeling attributes can only be mapped to fields in Oracle B2C Service that are of a compatible data type.

The following table describes the compatibility of data types between the two applications. 

Table 1. Data type compatibility between Intelligent Advisor and B2C Service
Intelligent Advisor B2C Service Notes
Boolean Boolean  
Number/Currency Decimal, Integer, Long, String

Integer/Long:

  • When stored as Integer/Long, it is rounded to the nearest whole number. When stored as Text, it is stored with full precision and unformatted (the decimal separator is a dot).

  • B2C Service currently only supports numbers in the range - 2,147,483,645 to 2,147,483,647. To restrict users from entering invalid numbers when the Intelligent Advisor attribute is stored as Integer/Long, specify an input validation with - 2,147,483,645 as the minimum value and 2,147,483,647 as the maximum value.

Decimal:

  • B2C Service 22B supports decimal data types (in both built-in and custom object fields). When an Intelligent Advisor attribute is associated with a Decimal field, the properties of the Decimal field (the minimum and maximum values allowed for the field, and the number of digits to the right of decimal point) can be seen by hovering over the field name in the Mapped out drop down in the Edit Attribute dialog:

    The Mapped out field in the Edit Attribute dialog in Policy Modeling showing the properties of the mapped decimal field

  • The input validation for the attribute is automatically updated with the minimum and maximum values for the field from B2C Service:

    The Input validation settings in the Edit Attribute dialog in Policy Modeling showing the properties of a mapped decimal field

  • If the mapped out value in the interview exceeds the specified maximum of decimal places in B2C Service, the value will be rounded to the maximum allowable number of decimal places when it is saved to B2C Service. For example, if a number attribute with a value of 1.235 is mapped out to a Decimal field with a maximum allowable decimal places of 2, then it will be rounded to 1.24 when it is saved in B2C Service.

  • Note that Customer Portal does not support the Decimal field type.

Date Date

B2C Service currently only supports dates after 1 Jan 1970. For pre-1970 dates, you need to:

  1. Create Integer fields in B2C Service for each of the date components (for example, dob_day, dob_month and dob_year). Refer to the Oracle B2C Service User Guide for details on how to create custom fields.
  2. Create three corresponding number attributes in Policy Modeling.
  3. Map the Intelligent Advisor attributes to their respective B2C Service fields, as required.
  4. Create a non-mapped Intelligent Advisor date attribute (for example, the date of birth).
  5. Write rules in Policy Modeling to extract the three components (day, month and year) of the date attribute into the three number attributes. See Get the date, day, month or year for more information.
  6. Use the date attribute, as needed, in other rules and on screens.

Alternatively, to restrict users from entering pre-1970 dates (for example, if you know that the values will be recent), specify an input validation with 1970-01-02 as the minimum value.

DateTime DateTime Stored in the equivalent UTC (Coordinated Universal Time) format
TimeOfDay String  
Text String  
Auto* All of the above B2C Service data types *This will only appear within Policy Modeling