Details

    • Target Release:
    • Steps to Reproduce:
      Hide

      1. import the attached git repository to business central workbench.
      2. build and deploy it.
      3. run the attached curltest.sh (make sure the data.json file is at the same location).
      4. go to business central -> Task Inbox. you should see a user task with name "User Task" there. Click on it and you should see an error "Unable to find a form for task xx. Try Again later or check with your administrator."

      If you change the value in the data.json,
      from
      "accounts":null
      to
      "accounts":[]
      and run the curltest.sh again you should be able to see another "User Task" under Task Inbox. If you click on that task you should be able to open the task form and perform claim/start/complete

      Show
      1. import the attached git repository to business central workbench. 2. build and deploy it. 3. run the attached curltest.sh (make sure the data.json file is at the same location). 4. go to business central -> Task Inbox. you should see a user task with name "User Task" there. Click on it and you should see an error "Unable to find a form for task xx. Try Again later or check with your administrator." If you change the value in the data.json, from "accounts":null to "accounts":[] and run the curltest.sh again you should be able to see another "User Task" under Task Inbox. If you click on that task you should be able to open the task form and perform claim/start/complete
    • Sprint:
      2018 Week 39-41, 2018 Week 42-44, 2018 Week 45-47, 2018 Week 48-50
    • QE Test Coverage:
      +

      Description

      The issue occurs when a task form contains data objects that reference a list of other data objects and when the list is a null value.
      In the attached example, the relationship of the data objects is:
      DataObject ->Person
      Person ->Customer
      Customer -> List<Account>

      When the List<Account> is null, the task created via rest api will be showing under Task Inbox. However, when you click on that task it shows error "Unable to find a form for task xx. Try Again later or check with your administrator." and no task form is opened for that task.

      In the meanwhile, a NullPointerException occurs at DEBUG level:
      DEBUG [org.jbpm.workbench.forms.display.backend.provider.TaskFormValuesProcessor] (default task-24) Unable to generate render form: : java.lang.NullPointerException
      at org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.MultipleSubFormFieldValueMarshaller.toFlatValue(MultipleSubFormFieldValueMarshaller.java:59)
      at org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.MultipleSubFormFieldValueMarshaller.toFlatValue(MultipleSubFormFieldValueMarshaller.java:36)
      at org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller.lambda$toFlatValue$0(ModelMarshaller.java:94)

      The same data work fine with rhpam 7.0 alpha version. It breaks on 7.0.0.GA and 7.0.2.GA.

      I'm attaching a simple reproducer here for reference.

      We are looking for a fix that could open the existing tasks that were created using 7.0.0 alpha version. Those tasks were able to be opened in alpha version. After migrating to 7.0.0.GA or 7.0.2.GA version those tasks are not able to be opened.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  elguardian Enrique González Martínez
                  Reporter:
                  ghjboss Gary Hu
                  Tester:
                  Klara Kufova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: