Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14915

Camunda start form cannot be displayed in Tasklist

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • 7.18.0
    • 7.18.0-alpha6
    • 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):

        This is the controller panel for Smart Panels app

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

            [CAM-14915] Camunda start form cannot be displayed in Tasklist

            Yana Vasileva created issue -
            Yana Vasileva made changes -
            Description Original: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
             
                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            New: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
             
                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            Yana Vasileva made changes -
            Link New: This issue is related to CAM-14547 [ CAM-14547 ]
            Yana Vasileva made changes -
            Description Original: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
             
                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            New: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

             The Camunda form cannot be displayed when starting a process in Tasklist when the process and form are part of a process application.

                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            Yana Vasileva made changes -
            Description Original: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

             The Camunda form cannot be displayed when starting a process in Tasklist when the process and form are part of a process application.

                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            New: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

             The Camunda form cannot be displayed when starting a process in Tasklist.

                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            Daniel Kelemen made changes -
            Description Original: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

             The Camunda form cannot be displayed when starting a process in Tasklist.

                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. Root Cause (Required on prioritization):
                
                h3. Solution Ideas (Optional):
                
                h3. Hints (optional):
            * The example is working on 7.17.0
            New: h3. Environment (Required on creation):
             
            I found the issue with process and form packaged in a process application.
             
                h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):
             
                h3. Steps to reproduce (Required on creation):

            # Build the Java process application from the get started guide with 7.18.0-alpha6 version: https://github.com/camunda/camunda-get-started-java
            # Deploy on Tomcat
            # Start the {{Loan Approval}} process
                
                h3. Observed Behavior (Required on creation):

            The start form cannot be loaded and it's displayed:
            {code}Form failure: can't convert null to object{code}
                

                h3. 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
                
                h3. 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.
                
                h3. Solution Ideas (Optional):

            Either initialize variables to empty array or add null checks everywhere where it's used.
                
                h3. Hints (optional):
            Miklas Boskamp made changes -
            Attachment New: loan-approval.bpmn [ 54976 ]
            Attachment New: request-loan.form [ 54977 ]
            Attachment New: approve-loan.form [ 54978 ]

            The error can also be reproduced by deploying the three form and BPMN files attached to the ticket to a distro and start a process instance.

            Miklas Boskamp added a comment - The error can also be reproduced by deploying the three form and BPMN files attached to the ticket to a distro and start a process instance.
            Yana Vasileva made changes -
            Summary Original: Camunda form cannot be displayed in Tasklist New: Camunda start form cannot be displayed in Tasklist
            Yana Vasileva made changes -
            Assignee New: Thorben Lindhauer [ thorben.lindhauer ]

              michael.schoettes Michael Schoettes
              yana.vasileva Yana Vasileva
              Daniel Kelemen Daniel Kelemen
              Tassilo Weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: