Right, i think the documentation of this plugin is overwhelming, there say’s that “time” and “feel-time” data type is allowed.
(Here)https://camunda.github.io/feel-scala/feel-data-types
(And Here)https://camunda.github.io/feel-scala/camunda-setting-data-types-in-decision
SOLUTION
Anyway i guess there is a lot of people looking for a solution to handle Business days and day Hours rules in camunda dmn.
I will post here a script to do this.
TO HANDLE HOURS OR BUSINESS HOURS:
In the Input Expression the following JavaScript
In the input variable you must set the var “tiempo”
var d = new Date(dateInput);
tiempo = d.getHours();
So, now you can handle the hours (without mins or secs) in a format from 0 to 24
TO HANDLE DAYS OR BUSINESS DAYS
In the Input Expression the following JavaScript
In the input variable you must set the var “dia”
var InputDate = new Date(new Date(dateInput2).setHours(0,0,0));
dia = InputDate.getDay()
So, now you can handle the days (without mins or secs) in a format from 0 to 6
0=Monday
6=saturday
I hope this could be helpful for some one else