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

Case variable: "readonly" tag permits changing value after reopening case

    Details

    • Sprint:
      2020 Week 22-24 (from May 25), 2020 Week 25-27 (from Jun 15)
    • Steps to Reproduce:
      Hide

      As we have the limitation of not being able to start a case with a case file containing a readonly variable, steps are the following:
      1.- startCase without the readonly variable
      2.- cancelCase, add the readonly variable to the data and reopening it passing the updated caseFile
      3.- Repeat step 2.
      Expected exception isn't thrown.

      Show
      As we have the limitation of not being able to start a case with a case file containing a readonly variable, steps are the following: 1.- startCase without the readonly variable 2.- cancelCase, add the readonly variable to the data and reopening it passing the updated caseFile 3.- Repeat step 2. Expected exception isn't thrown.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      After cancelling a case, a variable tagged as "readonly" is added again in the case file with a different value when reopening the case. A VariableViolationException is expected, as these variables are not allowed to be set more than once, but it isn't thrown, changing its value and ignoring the restriction.

      Notice that currently for adding "readonly" variables when starting the case, it's not possible if the value is added through newCaseFileInstance, as when creating the case file with that variable, is considered as first assignation of the value and therefore it cannot be modified at startCase. This is also a weird behavior as makes "readonly" variables useless when starting the case.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ftirados Francisco Javier Tirado Sarti
                Reporter:
                gonzalomf Gonzalo Muñoz Fernández
                Tester:
                Gonzalo Muñoz Fernández
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: