gitgabrio commented on PR #5664:
URL:
https://github.com/apache/incubator-kie-drools/pull/5664#issuecomment-1915158800
HI @tarilabs
still trying to figure out. I'm trying to create a test where a `function`
(thhat accept date-time as parameter) is invoked with a `date`.
I've created the followi9ng dmn (adapted from an existing one):
```
<dmn:businessKnowledgeModel id="_80847A66-F03E-4B81-B406-0E3B8D177EC8"
name="normal">
<dmn:extensionElements/>
<dmn:variable id="_1D5A641F-31EE-42FF-8DAD-D229A9A998BD" name="normal"/>
<dmn:encapsulatedLogic id="_4A6C9D35-03DE-47F8-8ADD-6F15A27077A5"
kind="FEEL">
<dmn:formalParameter id="_3984C4F0-4E60-481A-9702-EAC914F1C63B"
name="a" typeRef="date and time"/>
<dmn:formalParameter id="_C419BFC7-53E0-4B2C-A2B1-BA5A22D2971D"
name="b" typeRef="time"/>
<dmn:literalExpression id="_88CC7676-B609-4430-8670-5B5735D5C6D5">
<dmn:text>a+b</dmn:text>
</dmn:literalExpression>
</dmn:encapsulatedLogic>
</dmn:businessKnowledgeModel>
<dmn:decision id="_3151179A-E33D-4A7E-9D9C-8CFE388E8640"
name="usingNormal">
<dmn:extensionElements/>
<dmn:variable id="_C1455FFB-C4C4-4ABA-A9DF-2E7A92F2588B"
name="usingNormal" typeRef="date and time"/>
<dmn:knowledgeRequirement id="_A1C84873-809C-44CD-90BE-AD32BFB8F79F">
<dmn:requiredKnowledge href="#_80847A66-F03E-4B81-B406-0E3B8D177EC8"/>
</dmn:knowledgeRequirement>
<dmn:literalExpression id="_B29EE21C-702B-40BB-A98A-1717BBC83C8C">
<dmn:text>normal( @"2019-03-31", duration( "P26M" ))</dmn:text>
</dmn:literalExpression>
</dmn:decision>
```
WIth my current knowledge of DMN spec, I think this implement the use-case
in point; but during the execution the code still does not hit the code you
mentioned (for the `normal( @"2019-03-31", duration( "P26M" ))` expression)
So, I have the following questions:
1. may it be that this kind of modification has to be done in
multiple/different places
2. could you provide an example, a dmn snippet, or point to some already
existing one, where that specific use-case is used ?
3. I also tried to look at tck (both `master` and `dmn1.5` branches), but I
was unable to find where this new use-case is tested
@baldimir @yesamer ^^
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]