Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2777

JBPM 4.3 EL cannot read null process variable - javax.el.PropertyNotFoundException is thrown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jBPM 4.4
    • jBPM 4.3
    • None

    Description

      EL cannot read process variable set to null value. Variable is seen from Java code. When I try to access it in JPDL by EL expression javax.el.PropertyNotFoundException is thrown.

      Simple test case (maven eclipse project) in attachment - it contains 1 process definition and 2 tests which show the issue.

      Forum thread: http://community.jboss.org/thread/147447?start=0&tstart=0

      reading variable cases:
      1: var exists and has a non-null value - Java returns value, EL returns value
      2: var exists and has value of 'null' - Java returns null, EL fails
      3: var does not exists - Java returns null, EL fails

      In cases 1,2 EL and Java should behave the same way... I think that in case 3 too, but which behavior is right ?

      Attachments

        1. JBPM-2777.patch
          12 kB
        2. jbpm-2777-2010-05-10.patch
          9 kB
        3. JBPM-2777-condition-testcase.patch
          2 kB
        4. jbpm-2777-patch
          8 kB
        5. test_jbpmTestCase.zip
          8 kB
        6. test.zip
          8 kB
        7. UelExpressionTest.java
          2 kB

        Issue Links

          Activity

            People

              rebody HuiSheng Xu (Inactive)
              jsobolewski_jira Jakub Sobolewski (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: