-
Bug
-
Resolution: Done
-
Critical
-
7.0.2.GA
-
None
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.
- is cloned by
-
RHPAM-1566 Cannot open a task form from the Task Inbox in Business Central
- Closed