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. Screenshot 2021-05-11 at 08.02.57-1.png
          Screenshot 2021-05-11 at 08.02.57-1.png
          76 kB
        2. DateValidationTest.scesim
          8 kB
        3. datevalidation.dmn
          3 kB
        4. check-today-test-1.scesim
          16 kB
        5. check-today-1.dmn
          3 kB

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

                Created:
                Updated:
                Resolved: