> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# FEEL Engine Type Handling

This documentation covers supported types of variable values when used in a FEEL expression and
supported output types.

In DMN, when defining a `typeRef` attribute on a **Variable**, **Input** or **Output** element, the
DMN Engine tries to convert the result value of the corresponding **Literal Expression**,
**Input Expression** or the **Output Entry**. When no `typeRef` attribute is specified, the DMN
Engine passes the return value of the FEEL Engine directly without any conversion. Please see the
documentation about [Supported Data Types in DMN] to learn more about the `typeRef` attribute.

The FEEL Engine might support more types than listed below. However, this page defines
which of the types are known for being...

* ...well integrable in ASEE Flow
* ...covered by automated tests

### Supported Variable Value Types

The variable value types listed in this section can be handled by the FEEL Engine when passing.

#### Java Native Types

* `java.lang.String`
* `java.lang.Float`
* `java.lang.Double`
* `java.lang.Integer`
* `java.lang.Long`
* `java.lang.Boolean`
* `java.util.Date`
* `java.util.Map`
* `java.util.List`

#### Spin Types

* `org.camunda.spin.json.SpinJsonNode`
* `org.camunda.spin.xml.SpinXmlElement`

For more information about the ASEE Flow Spin integration, please see the documentation about
[FEEL Engine Spin Integration].

### Return Types

The table displays:

* Which return value of a FEEL Expression maps to which Java type
* Which ASEE Flow specific variable type is assigned for the respective Java type

<table>
  <tr> <th>FEEL Expression Example</th> <th>FEEL Engine Return Type</th> <th>ASEE Flow Variable Type</th> </tr>
  <tr> <td>`null`</td> <td>`null`</td> <td>null</td> </tr>
  <tr> <td>`"foo"`</td> <td>`java.lang.String`</td> <td>string</td> </tr>
  <tr> <td>`3.1415`</td> <td>`java.lang.Double`</td> <td>double</td> </tr>
  <tr> <td>`3`</td> <td>`java.lang.Long`</td> <td>long</td> </tr>
  <tr> <td>`true`</td> <td>`java.lang.Boolean`</td> <td>boolean</td> </tr>
  <tr> <td>`time("11:45:30")`</td> <td>`java.time.LocalTime`</td> <td>object</td> </tr>
  <tr> <td> `time("11:45:30+02:00")`\
  &#x20;`time("10:31:10@Europe/Paris")` </td> <td>`org.camunda.feel.syntaxtree.ZonedTime`</td> <td>object</td> </tr>
  <tr> <td>`date("2017-03-10")`</td> <td>`java.time.LocalDate`</td> <td>object</td> </tr>
  <tr> <td>`date and time("2019-08-12T22:22:22")`</td> <td>`java.time.LocalDateTime`</td> <td>object</td> </tr>
  <tr> <td> `date and time("2019-08-12T22:22:22+02:00")`\
  &#x20;`date and time("2019-08-12T22:22:22@Europe/Berlin")` </td> <td>`java.time.ZonedDateTime`</td> <td>object</td> </tr>
  <tr> <td>`duration("P4D")`</td> <td>`java.time.Duration`</td> <td>object</td> </tr>
  <tr> <td>`duration("P1Y6M")`</td> <td>`java.time.Period`</td> <td>object</td> </tr>
  <tr> <td>`{ "foo": "bar" }`</td> <td>`java.util.Map` \*</td> <td>object</td> </tr>
  <tr> <td>`[ "foo", "bar", "baz" ]`</td> <td>`java.util.List` \*</td> <td>object</td> </tr>
</table>

\* Since the FEEL Engine is based on the [Scala Library], a Scala-specific implementation type for
`Map` and `List` is used

[Supported Data Types in DMN]: https://docs.aseeflow.org/user-guide/dmn-engine/data-types.md#supported-data-types

[FEEL Engine Spin Integration]: https://docs.aseeflow.org/user-guide/dmn-engine/feel/spin-integration.md

[Scala Library]: https://www.scala-lang.org/


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.