Hi Kogito Team,
I built a small example project plugging 2 dmns in a bpmn and got the following exception.
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.kie.kogito.process.ProcessInstanceExecutionException: Process instance with id 55f1d72b-d61f-44b7-9953-d85e077ecf0b failed becuase of java.lang.RuntimeException - DMN result errors:: Message [id=0, level=ERROR, path=null, line=24, column=-1
text=DMN: FEEL ERROR while evaluating literal expression 'years and months duration(s.dob, today())': Unable to find function 'years and months duration( lass org.kie.dmn.feel.runtime.functions.YearsAndMonthsFunctio )' (DMN id: _BA857A0A-5548-4F6D-9631-2B2E2A463F5E, FEEL expression evaluation error) ]] with root cause
java.lang.RuntimeException: DMN result errors:: Message [id=0, level=ERROR, path=null, line=24, column=-1
text=DMN: FEEL ERROR while evaluating literal expression 'years and months duration(s.dob, today())': Unable to find function 'years and months duration( lass org.kie.dmn.feel.runtime.functions.YearsAndMonthsFunctio )' (DMN id: _BA857A0A-5548-4F6D-9631-2B2E2A463F5E, FEEL expression evaluation error) ]
at org.jbpm.workflow.instance.node.RuleSetNodeInstance.internalTrigger(RuleSetNodeInstance.java:123) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:225) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:424) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:409) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:379) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:71) ~[jbpm-flow-1.20.0.Final.jar:1.20.0.Final]
Not sure what I am missing. Sample project attached.
--