Giter VIP home page Giter VIP logo

Comments (8)

etirelli avatar etirelli commented on August 22, 2024

@DanielThanner what you are pointing out matches my initial implementation/understanding of DMN, but after discussing it further with Gary, it seems that because there is currently no way to define in FEEL a type like "feel:function", that the implementation has to "implicitly" understand that the BKM is a function that returns a "feel:number" due to that type definition.

It is a mess, I would gladly change that if we can get it fixed in the spec. (or if my understanding of the issue turns out to be wrong)

from tck.

opatrascoiu avatar opatrascoiu commented on August 22, 2024

I agree with Daniel. According to DMN spec the typeRef of the variable is a FunctionType. The type of the body is the return type of the function. The FunctionType doesn't have to be specified, it can be inferred from the types of the parameters and the return type.

We should raise the issue at the next RTF.

We have two options:

  • keep the spec as it is and change the tests
  • change the spec so that the type of the variable is the return type and keep the tests as they are.

My preference is to change the tests. I don't see anything wrong with the spec. The function type can be inferred from parameters and return type.

from tck.

DanielThanner avatar DanielThanner commented on August 22, 2024

Our preference is also to change the DMN TCK tests. Currently there is nothing wrong with the specification. Only a feel:function type is missing, which can be introduced for DMN 1.2

--> To be compliant with the specification, we should change the DMN models of the affected test cases

from tck.

etirelli avatar etirelli commented on August 22, 2024

Discussed this further with other people, Denis, Gary, Bruce. It seems like the best approach will be to remove the typeRef from the BKM variables as suggest already by @DanielThanner .

@opatrascoiu it would be good if you can include something like a "feel:function[...]" type on your type improvement proposal to the RTF for 1.2.

from tck.

agilepro avatar agilepro commented on August 22, 2024

Agreed to update test cases. Leaving issue in to track until we get the changes make.

from tck.

DanielThanner avatar DanielThanner commented on August 22, 2024

Created pull request #120 with changed dmn files.

from tck.

opatrascoiu avatar opatrascoiu commented on August 22, 2024

@etirelli I'll look into it next week. Hopefully, I'll have more time.

from tck.

agilepro avatar agilepro commented on August 22, 2024

This is resolved by the PR that was merged today

from tck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.