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

In Camunda Forms, variable of type String instead of Json created for multi-select types with static options

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • 7.19.0, 7.18.x
    • None
    • tasklist, webapp
    • None

      Environment (Required on creation):

      Camunda Platform 7.18.0

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

      // GIVEN

      • When defining a form with a multi-select component that has static options (cf. attached screenshot)
      • AND a to-be-bound variable of type Json or Json serialized Object is yet not created in C7

      // WHEN

      The form is submitted.

      // THEN

      • A new variable is created that contains the user selection, but the wrong type String is assigned.
      • Camunda Forms cannot display the data entered by the user since the variable is not parsed to JSON.

      Steps to reproduce (Required on creation):

      1. Deploy the attached form and BPMN model
      2. In Tasklist, start a process instance, make a selection, and click the "Start" button
      3. In Tasklist, navigate to the created User Task

      Observed Behavior (Required on creation):

      The previously entered data is not reflected in the form.

      Expected behavior (Required on creation):

      The previously entered data is reflected in the form.

      Root Cause (Required on prioritization):

      The implementation only creates a Json-typed variable for dynamic multi-select components, which form definition has a valuesKey.

      Solution Ideas (Optional):

      Create a Json-typed variable for multi-select types, that form definition has static options.

      Hints (optional):

      -

        This is the controller panel for Smart Panels app

          1. Screenshot 2022-10-06 at 14.48.46.png
            133 kB
            Tassilo Weidner
          2. static-component-options.bpmn
            4 kB
            Tassilo Weidner
          3. static-component-options.form
            0.7 kB
            Tassilo Weidner

              Unassigned Unassigned
              tassilo.weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: