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

Human Task Priority raises casting exception using Integer as variable type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.65.0.Final
    • 7.62.0.Final
    • Runtime Engine
    • None
    • 2022 Week 02-04 (from Jan 10)

      When a human task priority is set through a MVEL expression and the variable is an Integer the following exception is raised:

      Caused by: java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')
          at deployment.kie-server.war//org.jbpm.services.task.wih.AbstractHTWorkItemHandler.createTaskBasedOnWorkItemParams(AbstractHTWorkItemHandler.java:131)
          at deployment.kie-server.war//org.jbpm.services.task.wih.LocalHTWorkItemHandler.executeWorkItem(LocalHTWorkItemHandler.java:67)
          at deployment.kie-server.war//org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:69)
       

       

              ftirados Francisco Javier Tirado Sarti
              dmarrazz@redhat.com Donato Marrazzo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: