Class PdfMapSubflow

java.lang.Object
formflow.library.pdf.PdfMapSubflow

public class PdfMapSubflow extends Object
  • Constructor Details

    • PdfMapSubflow

      public PdfMapSubflow()
  • Method Details

    • getFieldsForIterations

      public Map<String,Object> getFieldsForIterations()
      Returns all the inputFields associated with a subflow's iterations, expanded out, up to the totalIterations number defined in the PdfMap yaml file. All the inputFields represented by iteration data are represented in the returned Map.
      Example Subflow data in the PDF file:
         subflowInfo:
           householdAndIncome:
             totalIterations: 2
             inputFields:
               householdMemberFirstName: LEGAL_NAME_FIRST_MEMBER
               householdMemberLastName: LEGAL_NAME_LAST_MEMBER
               householdMemberRelationship: RELATIONSHIP_MEMBER
               incomeTypes:
                 incomeJob: INCOME_HAS_JOB_MEMBER
                 incomeSelf: INCOME_HAS_SELF_EMPLOYMENT_MEMBER
                 incomeUnemployment: INCOME_HAS_UNEMPLOYMENT_MEMBER
       
      The above would generate the following map:
         Map.of(
            "householdMemberFirstName_1" : "LEGAL_NAME_FIRST_MEMBER_1",
            "householdMemberLastName_1" : "LEGAL_NAME_LAST_MEMBER_1",
            "householdMemberRelationship_1" : "RELATIONSHIP_MEMBER_1",
            "incomeTypes_1" :
                incomeJob: INCOME_HAS_JOB_MEMBER
                incomeSelf: INCOME_HAS_SELF_EMPLOYMENT_MEMBER
                incomeUnemployment: INCOME_HAS_UNEMPLOYMENT_MEMBER
       
      // TODO - start here
      Returns: