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

MultipleSelector element cannot read data from the variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.37.0.Final, 7.51.0.Final
    • Forms Modeler
    • NEW
    • NEW
    • Hide

      1. Import the attached process definition.
      2. Create a data object in the package com with a name ObjWithList (so full name is com.ObjWithList) and create one field named list of type List<String>. (See the screenshot)
      3. Go to the process definition and generate all forms.
      4. Configure the generated data object form to use MultipleInput for the list field.
      5. Duplicate the generated data object form and change the MultipleInput to MultipleSelector there.
      6. Use the subform with MultipleInput in the process form and the subform with MultipleSelector in the human task form.
      7. Start a process instance with some data in the list and then try to start the human task. There will be no data in the MultipleSelector.
      8. Change the task form to use the subform with MultipleInput. Start the process and go to the task form, data will be there.

      Show
      1. Import the attached process definition. 2. Create a data object in the package com with a name ObjWithList (so full name is com.ObjWithList) and create one field named list of type List<String>. (See the screenshot) 3. Go to the process definition and generate all forms. 4. Configure the generated data object form to use MultipleInput for the list field. 5. Duplicate the generated data object form and change the MultipleInput to MultipleSelector there. 6. Use the subform with MultipleInput in the process form and the subform with MultipleSelector in the human task form. 7. Start a process instance with some data in the list and then try to start the human task. There will be no data in the MultipleSelector. 8. Change the task form to use the subform with MultipleInput. Start the process and go to the task form, data will be there.

      I created an object with a List of Strings field and then created a process definition with a human task where this object is set as input/output. Then I used a MultipleInput form for the object as a subform within the process form. And for the human task I used the second subform where MultipleSelector was used for the list field of that object. The issue is that after I filled in some values to the list in the object using the MultipleInput via the process form, then when I started the task, nothing was shown in the MultipleSelector on the human task form. See the attachments.

        1. ListProcess.bpmn
          11 kB
        2. DataObject.png
          DataObject.png
          21 kB
        3. ProcessStart.png
          ProcessStart.png
          17 kB
        4. MultipleSelectorInHumanTask.png
          MultipleSelectorInHumanTask.png
          24 kB
        5. MultipleInputInHumanTask.png
          MultipleInputInHumanTask.png
          25 kB

              rh-ee-pefernan Pere Fernandez Perez
              mmacik@redhat.com Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: