# DMN with type "time" not working as expected

**URL:** <https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668>\
**Category:** Camunda 8 Topics\
**Tags:** dmn-engine-feel\
**Created:** [March 21, 2025, 1:20pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668 "2025-03-21T13:20:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fockeb](https://forum.camunda.io/user_avatar/forum.camunda.io/fockeb/32/32332_2.png) [@fockeb](https://forum.camunda.io/u/fockeb)\
**Post date:** [March 21, 2025, 1:20pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/1 "2025-03-21T13:20:11Z")

</div>

Hi camunda community,

I’m facing an issue with Camunda 8.6.12 (SAAS) DMN engine when using an attribute with type “time” as an input parameter. I have created the following DMN table. The DMN is part of a bpmn flow. the variables “dayOfWeek” and “incidentTime” are mapped on the BPMN task:  
dayOfWeek: day of week(date and time(incidentTimestamp))  
incidentTime: time (date and time(incidentTimestamp))

 ![image](https://forum.camunda.io/uploads/default/original/3X/3/7/37c56beae6e51bc7a49f47388ca3bf83a7e66a90.png)

If I provide as input a time within the configured range between 05:00 and 08:00 like this

![image](https://forum.camunda.io/uploads/default/original/3X/5/5/550e6477eb7f60a6ebaee24018d052cdd283c461.png)

None of the rules, which are configured with “time” fires:

 ![image](https://forum.camunda.io/uploads/default/original/3X/0/f/0f82ec365ee13d6c72325524b51c2fc8c9e854e0.png)

I have tried several different types of time zone formats:

- “06:00:00@Europe/Berlin”
- “06:00:00+01:00”
- “06:00:00Z”
- “06:00”

Do you have any ideas how to solve this issue?

Thanks for your support!  
Bernd

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [March 21, 2025, 5:56pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/2 "2025-03-21T17:56:21Z")

</div>

Hi @fockeb - can you attach the DMN? I suspect that the range function doesn’t work with the `time` data type, but I admit I’m not certain and will need to look into it. It doesn’t match the last rule because the Incident Time doesn’t match. But if you can share this DMN, I can do some further testing!

---

<div class="post-metadata">

**Author:** ![fockeb](https://forum.camunda.io/user_avatar/forum.camunda.io/fockeb/32/32332_2.png) [@fockeb](https://forum.camunda.io/u/fockeb)\
**Post date:** [March 22, 2025, 6:51am UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/3 "2025-03-22T06:51:43Z")

</div>

I found the folution: I have to convert the time variable in the DMN to time:

 ![SmartSelect_20250322_074429_Chrome](https://forum.camunda.io/uploads/default/original/3X/f/1/f1336981bba7630bfd6fea6db22b8a232f657816.jpeg)

Thanks!  
Bernd

---

<div class="post-metadata">

**Author:** ![Philipp\_Ossler](https://forum.camunda.io/user_avatar/forum.camunda.io/philipp_ossler/32/25299_2.png) [@Philipp\_Ossler](https://forum.camunda.io/u/Philipp_Ossler)\
**Post date:** [March 25, 2025, 1:19pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/4 "2025-03-25T13:19:03Z")

</div>

Thank you for sharing your solution. 👍

I created the following feature request for it: [[DMN] Convert string value to input type · Issue #30144 · camunda/camunda · GitHub](https://github.com/camunda/camunda/issues/30144)

---

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [March 25, 2025, 3:22pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/5 "2025-03-25T15:22:13Z")

</div>

@Philipp_Ossler there was another thread on the forum that was supposed to result in a feature request as well… also relating to passing the variable types (similar to how C7 does it) since JSON isn’t type-safe. Might be worth while to link the two of those, since solving the generic case of “hinting” the variable type would also solve this issue.

---

<div class="post-metadata">

**Author:** ![fockeb](https://forum.camunda.io/user_avatar/forum.camunda.io/fockeb/32/32332_2.png) [@fockeb](https://forum.camunda.io/u/fockeb)\
**Post date:** [March 25, 2025, 9:22pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/6 "2025-03-25T21:22:52Z")

</div>

@Philipp_Ossler thanks for creating the feature request. This would be for sure the more intuitive solution!  
Bernd

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [April 1, 2025, 9:23pm UTC](https://forum.camunda.io/t/dmn-with-type-time-not-working-as-expected/60668/7 "2025-04-01T21:23:19Z")

</div>

Closed on April 1, 2025, 9:23pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
