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

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

    XMLWordPrintable

    Details

    • Sprint:
      2021 Week 37-39 (from Sep 13)
    • Steps to Reproduce:
      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]
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      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.
       
       
       

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: