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

Tasklist: Embedded start forms produce non-configurable error when submission is prevented

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.15.0-alpha1, 7.15.0
    • 7.13.4, 7.12.10, 7.11.17, 7.14.0-alpha3
    • tasklist, webapp
    • None

    Description

      Steps to reproduce

      Submit an embedded start form that prevents the submission of the form.

      Expected behavior

      The form is not submitted, no error message is shown

      Observed behavior

      The form is not submitted and an error message is shown

      Reasoning

      • A prevented submission of a form is not an error
      • The developer should be able to decide whether an error is shown or not

      Root cause

      • The sdk-js throws an error when the submit is prevented [1]
      • The Tasklist start process modal shows this error notification [2]

      Solutions

      1. Skip error notification when submission is prevented
      2. Don't throw an error on preventing the form submission

      [1] https://github.com/camunda/camunda-bpm-webapp/blob/master/camunda-bpm-sdk-js/lib/forms/camunda-form.js#L472-L476
      [2] https://github.com/camunda/camunda-bpm-webapp/blob/bbfb11d0cd5a33c070eb2631aa11dbd955b1768b/ui/tasklist/client/scripts/process/plugins/action/modals/cam-tasklist-process-start-modal.js#L273-L276

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                hariharan.parasuraman Hariharan Parasuraman
                tassilo.weidner Tassilo Weidner
                Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce