Supported Data Types
Last updated
Last updated
All data in a data table are stored as string values and are automatically casted 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 - "."
The conditions can be made using the following scalar data types:
Number
Boolean
String
Date
Condition [value in decision table] | Solver Request Value [value send on API] | Result |
---|---|---|
2.32 | 2.32 | Equal |
2.32 | "2.32" | Equal |
true | true | Equal |
false | false | Equal |
true | 1 | Equal |
false | 0 | Equal |
true | 2 | Not Equal |
true | "true" | Not Equal |
hello world | "hello world" | Equal |
"date": "2021-03-17", "time": "13:17", "timezone": "-09:00" | "date": "2021-03-17", "time": "13:17", "timezone": "-09:00" | Equal |
"date": "2021-03-17", "time": "13:17", "timezone": "-09:00" | "2021-03-17T13:17-09:00" | Equal |
"2021-03-17T13:17-09:00" | "2021-03-17T13:17-09:00" | Equal |
<empty> | "" | Equal |
<empty> | Value not presented in input JSON | Equal |
Calling Solver API returns an array of results according to the decision table setup. Response values are automatically cast to:
Boolean
Number OR Float
String
Date
JSON Object
JSON Arrays
Decision Table Result Value | Solver Response Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|