Supported Data Types
Data types in Decision Tables
All data in a decision table is stored as string values and is automatically cast when needed. Therefore, you don’t need to specify any data format for your input and output models. The automatic casting of conditions and results is described in the following sections.
The decimal separator is always a dot: 5.5
Condition Data Types
Conditions can be created using the following scalar data types:
Number
Boolean
String
Date
Conditions
Solver Request Data Example
The inputs below demonstrate the format in which you can send a request to match a particular row:
Number:
or
Boolean (True):
or
Boolean (False):
or
String:
Date and Time:
or as extended ISO-8601:
Empty Value:
The data cells now convert dates to strings. The old object format is deprecated but still supported. For example, the input:
will match the new condition 2024-09-23 13:27 +02:00
.
Read more about Date cells in the dedicated section.
Examples:
Condition [value in decision table] | Solver Request Value [value send on API] | Result |
---|---|---|
|
| Equal |
|
| Equal |
|
| Equal |
|
| Equal |
|
| Equal |
|
| Not Equal |
|
| Equal |
|
| Equal |
|
| Equal |
| Equal | |
|
| Equal |
| Not Equal! | |
<empty> |
| Equal |
<empty> | Value not presented in input JSON | Not Equal |
Calculation Data Types
Calculation columns support all the data types used by result columns.
Result Data Types
When calling the Solver API, the response returns an array of results based on the decision table setup. Response values are automatically cast to the following data types:
Boolean
Number
String
Date
JSON Object
JSON Arrays
Casting examples:
Decision Table Result Value | Solver Response Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Empty |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Last updated