Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9769

Form modeler not showing values in select

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 7.51.0.Final, 7.54.0.Final
    • Forms Modeler
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Hide
      1. In the model project create the following classes:
      package model;
      
      import lombok.Getter;
      import lombok.NoArgsConstructor;
      import lombok.Setter;
      import lombok.ToString;
      
      @Getter
      @Setter
      @ToString
      @NoArgsConstructor
      public class EnumDTO {
          private String nome;
          private EnumTest enumTest;
      }
      

       

      package model;
      
      public enum EnumTest {
          TEST1,
          TEST2
      }
      
      1. Import the archetype into project and define the External Data Objects
      2. Create a user task that the output should be from type model.EnumDTO
      3. Select the task and generate the form
      4. Back to assets page and click on the generated form
      5. Click to edit the component EnumTest
      6. On Options click on button "New Instance"
      7. Verify that the select "Value" is empty
      Show
      In the model project create the following classes: package model; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; @Getter @Setter @ToString @NoArgsConstructor public class EnumDTO { private String nome; private EnumTest enumTest; }   package model; public enum EnumTest { TEST1, TEST2 } Import the archetype into project and define the External Data Objects Create a user task that the output should be from type model.EnumDTO Select the task and generate the form Back to assets page and click on the generated form Click to edit the component EnumTest On Options click on button "New Instance" Verify that the select "Value" is empty

      The form modeler is not able to render options from a Java enum into a select field.

      If I have a model class that one of its fields is a enum and I use it in a user task that needs to be associated with a form, I can't see the options to choose the values to that ListBox.

              rh-ee-pefernan Pere Fernandez Perez
              samueltorga Samuel Torga de Morais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: