Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3252

DocumentCollection output only parameter doesn't work in generated forms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.10.0.GA
    • 7.9.0.GA
    • Form Modeler
    • None
    • False
    • False
    • Release Notes
    • CR1
    • CR1
    • ?
    • Undefined
    • Hide
      1. Deploy the project from the attachment. The project is similar to the one from https://issues.redhat.com/browse/JBPM-9321
      2. Create a new process instance.
      3. Hit the endpoint:
        http://<host>:<port>/kie-server/services/rest/server/containers/\{containerId}/forms/tasks/\{taskInstanceId}/content\
        
      4. An exception is thrown with
        org.jbpm.document.DocumentCollection: java.lang.ClassCastException: java.lang.String cannot be cast to org.jbpm.document.DocumentCollection
        

        See the attachment for the whole stack trace.

      Show
      Deploy the project from the attachment. The project is similar to the one from https://issues.redhat.com/browse/JBPM-9321 Create a new process instance. Hit the endpoint: http://<host>:<port>/kie-server/services/rest/server/containers/\{containerId}/forms/tasks/\{taskInstanceId}/content\ An exception is thrown with org.jbpm.document.DocumentCollection: java.lang.ClassCastException: java.lang.String cannot be cast to org.jbpm.document.DocumentCollection See the attachment for the whole stack trace.
    • ---
    • ---
    • 2020 Week 40-42 (from Sep 28), 2020 Week 43-45 (from Okt 19)

    Description

      The issue is that if the documents are configured to be only the output variable, i.e. documents are to be uploaded as a part of the human task, then the input parameter of type DocumentColletion is not present and the default value "" (empty string) is casted to DocumentCollection, which fails.

      Attachments

        Issue Links

          Activity

            People

              mmacik@redhat.com Marian Macik
              mmacik@redhat.com Marian Macik
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: