Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2845

Expression in timer is not interpreted correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.8.0.GA
    • 7.6.0.GA, 7.7.0.GA
    • jBPM Core
    • None
      • Red Hat Process Automation Manager (RHPAM) 7.6.0
      • used myTest.bpmn process (attached with this JIRA);
    • Release Notes
    • CR1
    • +
    • Timer expressions with double quotes, e.g. #{java.lang.System.getProperty("delayInProductionEnv","PT10M")} are now interpreted correctly.
    • 2020 Week 13-15 (from Mar 23), 2020 Week 16-18 (from Apr 13), 2020 Week 19-21 (from May 4)

    Description

      The following expression in the intermediate timer:

      #{java.lang.System.getProperty("delayInProductionEnv","PT10M")}
      

      fails with the following message:
      "Process Compilation error Syntax error on tokens, delete these tokens"

      However, using a single quote instead of double works fine:

      #{java.lang.System.getProperty('delayInProductionEnv','PT10M')}
      

      Acceptance Criteria

      #{java.lang.System.getProperty("delayInProductionEnv","PT10M")} 
      

      Expression should work without any errors at runtime for all properties where expression can be used.

      Attachments

        1. HelloWorld.bpmn
          15 kB
        2. myTest.bpmn
          12 kB

        Activity

          People

            elguardian@gmail.com Enrique González Martínez (Inactive)
            rhn-support-bkramer1 Biljana Kramer
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: