Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.8.0
    • Fix Version/s: 7.10.0, 7.9.3, 7.8.9, 7.10.0-alpha3
    • Component/s: engine
    • Labels:
      None

      Description

      I found that execution of following query always leads to a "ProcessEngineException":

      createTaskQuery().or().active().processVariableValueEquals("FOO", 0).endOr().list()
      

      I think maybe this is a bug

      root cause exception of ProcessEngineException is:

      Caused by: org.apache.ibatis.ognl.OgnlException: source is null for getProperty(null, "stateCode")
      

      I looked into the source code Task.xml, found a mistake:

                  <if test="query.suspensionState != null">
                    <if test="suspensionState.stateCode == 1">
                      ${queryType} RES.SUSPENSION_STATE_ = 1
                    </if>
                    <if test="query.suspensionState.stateCode == 2">
                      ${queryType} RES.SUSPENSION_STATE_ = 2
                    </if>
                  </if>
      

      this line is wrong: <if test="suspensionState.stateCode == 1">
      I suppose the line should correct to <if test="query.suspensionState.stateCode == 1">

        Activity

        Show
        yana.vasileva Yana Vasileva added a comment - Related to https://github.com/camunda/camunda-bpm-platform/pull/300

          People

          • Assignee:
            yana.vasileva Yana Vasileva
            Reporter:
            zhangchao zhang chao
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development