I cannot use forms in CMMN Human task

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.16.0, 7.15.2, 7.16.0-alpha2
    • Affects Version/s: 7.15.0
    • Component/s: 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):

      1. Download 7.15.0 distribution
      2. Deploy the attached process and case model, together with the form
      3. Start a process instance `Process calling cmmn`
      4. 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

      Solution Ideas (Optional):

      Hints (Optional):

        1. observed.png
          observed.png
          21 kB
        2. form.html
          0.0 kB
        3. expected.png
          expected.png
          20 kB
        4. Error human task.png
          Error human task.png
          163 kB
        5. diagram_1.cmmn
          1 kB
        6. diagram_1.bpmn
          2 kB

            Assignee:
            Hariharan Parasuraman
            Reporter:
            Yana Vasileva
            Anton von Weltzien Anton von Weltzien
            Tobias Metzke-Bernstein Tobias Metzke-Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: