-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.15.0
-
None
-
None
Environment (Required on creation):
7.15.0 distribution, any application server, database, and browser
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
Unable to use forms in CMMN Human tasks
Check observed and expected screenshots in the attachments.
Steps to reproduce (Required on creation):
- Download 7.15.0 distribution
- Deploy the attached process and case model, together with the form
- Start a process instance `Process calling cmmn`
- Check the form in Human task
Observed Behavior (Required on creation):
The following error can be seen in Tasklist
Form failure: The process definition id is mandatory, but 'null' has been provided.
An exception is thrown in the server log file:
WARN 1592 --- [nio-8080-exec-1] org.camunda.bpm.engine.rest.exception : ENGINE-REST-HTTP500 org.camunda.bpm.engine.ProcessEngineException: The process definition id is mandatory, but 'null' has been provided. at org.camunda.bpm.engine.impl.cmd.GetFormKeyCmd.setProcessDefinitionId(GetFormKeyCmd.java:64) at org.camunda.bpm.engine.impl.cmd.GetFormKeyCmd.<init>(GetFormKeyCmd.java:55) at org.camunda.bpm.engine.impl.FormServiceImpl.getTaskFormKey(FormServiceImpl.java:103) at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.lambda$getTaskFormMediaType$1(TaskResourceImpl.java:446) at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.runWithoutAuthorization(TaskResourceImpl.java:456) at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.getTaskFormMediaType(TaskResourceImpl.java:443) at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.getDeployedForm(TaskResourceImpl.java:397)
Expected behavior (Required on creation):
The form is visualized and can be used for Human tasks part of case instances.
Root Cause (Required on prioritization):
The CMMN use case is not considered when trying to retrieve the task form media type:
https://github.com/camunda/camunda-bpm-platform/blob/a7df9b45d95ec17da9befd3f7e0888b7801038c8/engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/sub/task/impl/TaskResourceImpl.java#L440-L449