Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6337

today() and now() functions not evaluated correctly in Test Scenarios

XMLWordPrintable

    • 2021 Week 37-39 (from Sep 13)
    • Hide

      example .dmn and .scesim files attached 

      [^check-today.dmn]

      [^check-today-test.scesim]

      Show
      example .dmn and .scesim files attached  [^check-today.dmn] [^check-today-test.scesim]
    • Undefined
    • NEW
    • NEW

      today() function does not evaluate correctly in Test Scenario table.  For example, string(today()) should be something like "2021-05-11" but instead it is null.
       
      Here's a simple example where the Decision node just outputs the input string. 
       

       

      Same issue present for now() FEEL function.
       
       
       

        1. check-today-1.dmn
          3 kB
          Fintan Mahon
        2. check-today-test-1.scesim
          16 kB
          Fintan Mahon
        3. datevalidation.dmn
          3 kB
          Yeser Amer
        4. DateValidationTest.scesim
          8 kB
          Yeser Amer
        5. Screenshot 2021-05-11 at 08.02.57-1.png
          76 kB
          Fintan Mahon

              yamer@redhat.com Yeser Amer
              fmahon Fintan Mahon (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: