Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3753

CCE when accessing process variable

XMLWordPrintable

      Description of problem:
      Having process definition with a variable of type Integer. When a process instance is being launched from UI, process variable's initial value is passed into the instance as java.lang.String. When the variable is being accessed (e.g. in script task), CCE is thrown: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer

      First time I thought it's a bug in engine and I tested similar scenario without UI. I was able to reproduce the exception only when the process instance was started with parameters where the variable was inserted as String. So I guess there is the same problem. Business-central should initialize process variable correctly according to the variable's type in process definition.

      Steps to reproduce:
      1. start business-central CR1 on EAP 6.1
      2. create / use some project
      3. import attached process definition
      4. build & deploy the project
      5. run new process instance and watch the server log

      Version-Release number of selected component (if applicable):
      CR1

              swiderski.maciej Maciej Swiderski (Inactive)
              rsynek@redhat.com Radovan Synek (Inactive)
              Radovan Synek Radovan Synek (Inactive)
              Radovan Synek Radovan Synek (Inactive)
              Kris Verlaenen, Maciej Swiderski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: