-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
False
-
-
-
2021 Week 49-51 (from Dec 6th)
When a "user task" with notification is created in a bpmn workflow, an UnsupportedOperationException is thrown because some data is inserted into an "UnmodifiableMap". After analysing the code, it appears that the implementation is broken.
Stack trace:
Caused by: java.lang.UnsupportedOperationException
at java.base/java.util.Collections$UnmodifiableMap.putAll(Collections.java:1463)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildDeadlines(ProtobufProcessInstanceWriter.java:575)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildHumanTaskWorkItemData(ProtobufProcessInstanceWriter.java:532)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildHumanTaskNodeInstance(ProtobufProcessInstanceWriter.java:433)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildNodeInstanceContent(ProtobufProcessInstanceWriter.java:257)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildNodeInstances(ProtobufProcessInstanceWriter.java:224)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.buildWorkflowContext(ProtobufProcessInstanceWriter.java:196)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceWriter.writeProcessInstance(ProtobufProcessInstanceWriter.java:149)
at org.kie.kogito.serialization.process.impl.ProtobufProcessInstanceMarshaller.writeProcessInstance(ProtobufProcessInstanceMarshaller.java:39)
at org.kie.kogito.serialization.process.ProcessInstanceMarshallerService.marshallProcessInstance(ProcessInstanceMarshallerService.java:108)