Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1816

[Test Scenario][BC Included] today() and now() functions not evaluated correctly in Test Scenarios

    XMLWordPrintable

Details

    • False
    • False
    • Release Notes
    • CR1
    • +
    • Undefined
    • 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]
    • 2021 Week 40-42 (from Oct 4), 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th), 2022 Week 02-04 (from Jan 10)

    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

              yamer@redhat.com Yeser Amer
              rhn-support-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: