Class SimpleFormModel

java.lang.Object
org.flowable.form.model.SimpleFormModel
All Implemented Interfaces:
Serializable, FormModel

public class SimpleFormModel extends Object implements FormModel
Author:
Joram Barrez, Tijs Rademakers
See Also:
  • Field Details

    • name

      protected String name
    • key

      protected String key
    • version

      protected int version
    • description

      protected String description
    • fields

      protected List<FormField> fields
    • outcomes

      protected List<FormOutcome> outcomes
    • outcomeVariableName

      protected String outcomeVariableName
  • Constructor Details

    • SimpleFormModel

      public SimpleFormModel()
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion(int version)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getFields

      public List<FormField> getFields()
      Do not use this method for logical operations since it only return the top level fields. I.e. A "container" field's sub fields are not returned. For verifying and listing all fields from a form use instead listAllFields().
      Returns:
      The top level fields, a container's sub fields are not returned.
    • setFields

      public void setFields(List<FormField> fields)
    • getOutcomes

      public List<FormOutcome> getOutcomes()
    • setOutcomes

      public void setOutcomes(List<FormOutcome> outcomes)
    • getOutcomeVariableName

      public String getOutcomeVariableName()
    • setOutcomeVariableName

      public void setOutcomeVariableName(String outcomeVariableName)
    • allFieldsAsMap

      public Map<String,FormField> allFieldsAsMap()
    • listAllFields

      public List<FormField> listAllFields()
    • collectSubFields

      protected void collectSubFields(List<FormField> fields, List<FormField> listOfAllFields)