Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4325

Cannot submit form with subform containing unfilled char/float/double values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 6.4.0
    • Form Modeler
    • ER1
    • Hide

      1. In the administration perspective clone the bpms-assets repo: git://git.app.eng.bos.redhat.com/bpms-assets-6.4.x.git
      2. In Project Authoring, open the project "formmodeler", build & deploy.
      3. In process definitions, start process "SubformTest".
      4. In the form fill any data, just leave any of the char1, float1, double1 fields empty.
      5. Submit.

      Expected result: All required fields are highlighted and it is possible to add the missing data.
      Actual result: Form adds 0 to byte, int, long, short fields, if we put a number with no decimals in the place of float, zero is added at the first decimal place, if we put more decimals than 2 for double, it is rounded to two places. (see the attachments for before submit and after submit pictures) But we don't know what data are missing and it is not possible to edit the form anymore.

      Show
      1. In the administration perspective clone the bpms-assets repo: git://git.app.eng.bos.redhat.com/bpms-assets-6.4.x.git 2. In Project Authoring, open the project "formmodeler", build & deploy. 3. In process definitions, start process "SubformTest". 4. In the form fill any data, just leave any of the char1, float1, double1 fields empty. 5. Submit. Expected result: All required fields are highlighted and it is possible to add the missing data. Actual result: Form adds 0 to byte, int, long, short fields, if we put a number with no decimals in the place of float, zero is added at the first decimal place, if we put more decimals than 2 for double, it is rounded to two places. (see the attachments for before submit and after submit pictures) But we don't know what data are missing and it is not possible to edit the form anymore.

      When submitting a start process form with any field in the subform left empty, the UI does not respond in a helpful way. Instead some "random" changes are made in the form (e.g. '0' is filled into some of the fields (byte, int, long, short) if they were empty) and afterwards it is not possible to add any other input.The only way how to do it is to close it (which means loosing data already filled in) and start the process again. It seems to me, that this could be because of how the validation is done in the subforms.

        1. validation_subform_after.png
          54 kB
          Juraj Soltes
        2. validation_subform_before.png
          53 kB
          Juraj Soltes

              rh-ee-pefernan Pere Fernandez Perez
              jsoltes Juraj Soltes (Inactive)
              Jan Hrcek Jan Hrcek (Inactive)
              Jan Hrcek Jan Hrcek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: