Camunda start form cannot be displayed in Tasklist

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Unresolved
    • Priority: L3 - Default
    • 7.18.0
    • Affects Version/s: 7.18.0-alpha6
    • Component/s: webapp
    • None

      Environment (Required on creation):

      Tested with process and form packaged in a process application. Edit: The issue is related to start forms.

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      Steps to reproduce (Required on creation):

      1. Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
      2. Deploy on Tomcat
      3. Start the Loan Approval process

      Observed Behavior (Required on creation):

      The start form cannot be loaded and it's displayed:

      Form failure: can't convert null to object

      Expected behavior (Required on creation):

      The form is displayed as described in https://docs.camunda.org/get-started/java-process-app/forms/#re-build-and-deploy

      Root Cause (Required on prioritization):

      The root cause is that the variables variable is not initialized in case of start event forms and it causes a frontend exception in https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/ui/tasklist/client/scripts/form/directives/cam-tasklist-form-camunda.js#L101

      In case of start event forms there is no taskId so the loadVariables call is skipped and variables remains uninitialized.

      Solution Ideas (Optional):

      Either initialize variables to empty array or add null checks everywhere where it's used.

      Hints (optional):

        1. approve-loan.form
          0.5 kB
          Miklas Boskamp
        2. image (4).png
          11 kB
          Yana Vasileva
        3. loan-approval.bpmn
          3 kB
          Miklas Boskamp
        4. request-loan.form
          0.5 kB
          Miklas Boskamp

            Assignee:
            Michael Schoettes
            Reporter:
            Yana Vasileva
            Daniel Kelemen Daniel Kelemen
            Tassilo Weidner-Mühl Tassilo Weidner-Mühl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: