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

DocumentCollection output only parameter doesn't work in generated forms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.46.0.Final
    • None
    • Forms Modeler
    • None
    • False
    • False
    • NEW
    • NEW
    • 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)

      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.

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

                Created:
                Updated:
                Resolved: