Loading
保險
InsProductJSONService:trimOffAttributeCategory

InsProductJSONService:trimOffAttributeCategory

使用此服務可取得不包含屬性種類,但包含屬性所選值、屬性規則和屬性值規則的產品 JSON。

類別:InsProductJSONService

方法:trimOffAttributeCategory

此服務是用來建立輸出 JSON,以供批次流程 (不包含任何 UI 互動) 使用。

當您需要將屬性值對應至「報價條列項目」物件中的其他欄位時,也可以使用此服務。

運作方式

  1. 使用 inputKey 將具有一個根產品的標準產品 JSON 識別為輸入 JSON。

  2. 將屬性種類從產品 JSON 中移除。

  3. 如果 selectedValueAsObject 選項設定為 true,則會傳回具有 attributeSelectedValues 的產品 JSON 作為物件對應。

    如果 selectedValueAsObject 設定為 false,則傳回屬性SelectedValues 作為字串。

遠端選項

選項

描述

inputKey

inputKeyValue

服務用來尋找要刪除屬性種類之輸入 JSON 區域的金鑰。

selectedValueAsObject

true 或 false

設定為 true 時,服務會傳回 attributeSelectedValues 作為對應物件,而非字串。這可讓您轉換 JSONResult,輕鬆將屬性值對應至「報價條列項目」物件中的其他欄位。

設定為 false 時 (或如果沒有此選項),服務會傳回 attributeSelectedValues 作為字串。

輸入 JSON

此服務會取得使用 instanceKey 識別的標準產品 JSON,並輸入一個根產品。

若要瞭解如何建構產品 JSON,請參閱 產品 JSON 結構模型。

{
  "productJSON": {
    "records": [
      {
        "displaySequence": -1,
        "CalculatedPriceData": {
          "totalPremium": 0,
          "Jack_Kirkland_Male": {
            "InsLife.instanceKey": "Jack_Kirkland_Male",
            "premium": 0,
            "premiumADD": 0,
            "premiumWaiverOfPrem": 0,
            "amountADD": 1000000,
            "ID": "0"
          }
        },
        "RawPriceData": [
          {
            "calculationResults": [
              {
                "InsLife.instanceKey": "Jack_Kirkland_Male",
                "premium": 0,
                "premiumADD": 0,
                "premiumWaiverOfPrem": 0,
                "amountADD": 1000000,
                "ID": "0"
              }
            ],
            "aggregationResults": {
              "totalPremium": 0
            }
          }
        ],
        "Id": "01t1U000000kZheQAE",
        "Name": "Millennium Whole Life",
        "Family": "Individual Health",
        "ProductCode": "WL-Base",
        "LineOfBusiness__c": "Individual Life",
        "Type__c": "Whole Life",
        "SubType__c": "Prime",
        "IsRecommended__c": false,
        "ImageId__c": "library_folder",
        "RecordTypeName__c": "Product",
        "IsConfigurable__c": true,
        "PricingFormula__c": "SUM(baseLifePremium + premiumADD + premiumWaiverOfPrem)",
        "productId": "01t1U000000kZheQAE",
        "currencyCode": "EUR",
        "currencySymbol": "€",
        "Price": 0,
        "attributeCategories": {
          "totalSize": 2,
          "records": [
            {
              "displaySequence": 100,
              "Code__c": "terms",
              "Name": "Policy Terms",
              "id": "a081U000000waFPQAY",
              "productAttributes": {
                "totalSize": 7,
                "records": [
                  {
                    "code": "covExclusion",
                    "dataType": "text",
                    "inputType": "textarea",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwYQAW",
                    "label": "Exclusion - Custom",
                    "displaySequence": 5,
                    "hasRules": false,
                    "hidden": true,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": false,
                        "disabled": false
                      }
                    ],
                    "userValues": null,
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[0]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.covExclusion"
                  },
                  {
                    "code": "covStdExclusions",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": true,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwZQAW",
                    "label": "Exclusion - Standard",
                    "displaySequence": 6,
                    "hasRules": false,
                    "description": "Death resulting from the following activities or actions are not covered by the policy.",
                    "hidden": true,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "Act of War",
                        "readonly": false,
                        "disabled": false,
                        "value": "Act of War"
                      },
                      {
                        "id": "1",
                        "label": "Suicide",
                        "readonly": false,
                        "disabled": false,
                        "value": "Suicide"
                      },
                      {
                        "id": "2",
                        "label": "Extreme Sports",
                        "readonly": false,
                        "disabled": false,
                        "value": "Extreme Sports"
                      },
                      {
                        "id": "3",
                        "label": "Private Plane",
                        "readonly": false,
                        "disabled": false,
                        "value": "Private Plane"
                      },
                      {
                        "id": "4",
                        "label": "Illegal Activity",
                        "readonly": false,
                        "disabled": false,
                        "value": "Illegal Activity"
                      }
                    ],
                    "userValues": [
                      {
                        "Act of War": false
                      },
                      {
                        "Suicide": false
                      },
                      {
                        "Extreme Sports": false
                      },
                      {
                        "Private Plane": false
                      },
                      {
                        "Illegal Activity": false
                      }
                    ],
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[1]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[1]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.covStdExclusions"
                  },
                  {
                    "code": "covType",
                    "dataType": "text",
                    "inputType": "dropdown",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwaQAG",
                    "label": "Type",
                    "displaySequence": 7,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "10 Years",
                        "readonly": false,
                        "disabled": false,
                        "value": "10"
                      },
                      {
                        "id": "1",
                        "label": "20 Years",
                        "readonly": false,
                        "disabled": false,
                        "value": "20"
                      },
                      {
                        "id": "2",
                        "label": "Paid until 65",
                        "readonly": false,
                        "disabled": false,
                        "value": "Until65"
                      }
                    ],
                    "userValues": "10",
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[2]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[2]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.covType"
                  },
                  {
                    "code": "PART",
                    "dataType": "text",
                    "inputType": "dropdown",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwRQAW",
                    "label": "Participating",
                    "displaySequence": 8,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "Participating",
                        "readonly": false,
                        "disabled": false,
                        "value": "Participating"
                      },
                      {
                        "id": "1",
                        "label": "Non-participating",
                        "readonly": false,
                        "disabled": false,
                        "value": "Nonparticipating"
                      }
                    ],
                    "userValues": "Participating",
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[3]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[3]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.PART"
                  },
                  {
                    "code": "payFrequency",
                    "dataType": "text",
                    "inputType": "dropdown",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwdQAG",
                    "label": "Bill Frequency",
                    "displaySequence": 9,
                    "hasRules": true,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "Monthly",
                        "readonly": false,
                        "disabled": false,
                        "value": "month"
                      },
                      {
                        "id": "1",
                        "label": "Quarterly",
                        "readonly": false,
                        "disabled": false,
                        "value": "quarter"
                      },
                      {
                        "id": "2",
                        "label": "Annual",
                        "readonly": false,
                        "disabled": false,
                        "value": "annual"
                      }
                    ],
                    "userValues": "month",
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[4]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[4]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.payFrequency"
                  },
                  {
                    "code": "termDivMeth",
                    "dataType": "text",
                    "inputType": "dropdown",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwhQAG",
                    "label": "Dividend Method",
                    "displaySequence": 10,
                    "hasRules": true,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "Reinvest",
                        "readonly": false,
                        "disabled": false,
                        "value": "reinvest"
                      },
                      {
                        "id": "1",
                        "label": "Distribute",
                        "readonly": false,
                        "disabled": false,
                        "value": "distribute"
                      }
                    ],
                    "userValues": "reinvest",
                    "rules": [
                      {
                        "ruleType": "Hide",
                        "expression": "%WL-Base.PART% = 'Nonparticipating'",
                        "actions": {
                          "Hide": {
                            "rest": {
                              "params": {},
                              "method": null,
                              "link": null
                            },
                            "remote": {
                              "params": {}
                            },
                            "client": {
                              "params": {}
                            }
                          }
                        },
                        "ownsRule": "WL-Base.termDivMeth",
                        "instanceExpression": [
                          "",
                          "WL-Base.PART",
                          " = 'Nonparticipating'"
                        ],
                        "ruleEvaluation": false
                      }
                    ],
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[5]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[5]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.termDivMeth",
                    "hiddenByRule": false
                  },
                  {
                    "code": "termPayment",
                    "dataType": "text",
                    "inputType": "dropdown",
                    "multiselect": false,
                    "required": false,
                    "readonly": false,
                    "disabled": false,
                    "filterable": true,
                    "attributeId": "a091U000001TAwjQAG",
                    "label": "Payment Method",
                    "displaySequence": 11,
                    "hasRules": true,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "id": "0",
                        "label": "Credit Card",
                        "readonly": false,
                        "disabled": false,
                        "value": "credit"
                      },
                      {
                        "id": "1",
                        "label": "Check",
                        "readonly": false,
                        "disabled": false,
                        "value": "check"
                      },
                      {
                        "id": "2",
                        "label": "ACH",
                        "readonly": false,
                        "disabled": false,
                        "value": "ACH"
                      },
                      {
                        "id": "3",
                        "label": "Cash",
                        "readonly": false,
                        "disabled": false,
                        "value": "cash",
                        "rules": [
                          {
                            "ruleType": "Hide",
                            "expression": "%WL-Base.payFrequency%='month'",
                            "actions": {
                              "Hide": {
                                "rest": {
                                  "params": {},
                                  "method": null,
                                  "link": null
                                },
                                "remote": {
                                  "params": {}
                                },
                                "client": {
                                  "params": {}
                                }
                              }
                            },
                            "ownsRule": "WL-Base.termPayment",
                            "instanceExpression": [
                              "",
                              "WL-Base.payFrequency",
                              "='month'"
                            ],
                            "ruleEvaluation": true
                          }
                        ],
                        "hiddenByRule": true
                      }
                    ],
                    "userValues": "check",
                    "pathFromRoot": "attributeCategories.records[0].productAttributes.records[6]",
                    "pathFromChild": "attributeCategories.records[0].productAttributes.records[6]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.termPayment"
                  }
                ]
              }
            },
            {
              "displaySequence": 481,
              "Code__c": "FEATURE",
              "Name": "Features",
              "id": "a081U000000waDBQAY",
              "productAttributes": {
                "totalSize": 5,
                "records": [
                  {
                    "code": "featAccumCVLI",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": false,
                    "required": false,
                    "readonly": true,
                    "disabled": true,
                    "filterable": true,
                    "attributeId": "a091U000001TAcrQAG",
                    "label": "Accumulates Cash Value",
                    "displaySequence": 0,
                    "hasRules": true,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": true,
                        "disabled": true
                      }
                    ],
                    "userValues": true,
                    "rules": [
                      {
                        "ruleType": "Hide",
                        "expression": "AGE(%birth_date%)",
                        "actions": {
                          "Hide": {
                            "rest": {
                              "params": {},
                              "method": null,
                              "link": null
                            },
                            "remote": {
                              "params": {}
                            },
                            "client": {
                              "params": {}
                            }
                          }
                        },
                        "ownsRule": "WL-Base.featAccumCVLI",
                        "instanceExpression": [
                          "AGE(",
                          "birth_date",
                          ")"
                        ]
                      }
                    ],
                    "pathFromRoot": "attributeCategories.records[1].productAttributes.records[0]",
                    "pathFromChild": "attributeCategories.records[1].productAttributes.records[0]",
                    "productCode": "WL-Base",
                    "rulesCode": "WL-Base.featAccumCVLI"
                  },
                  {
                    "code": "featCashDividends",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": false,
                    "required": false,
                    "readonly": true,
                    "disabled": true,
                    "filterable": true,
                    "attributeId": "a091U000001TAcsQAG",
                    "label": "Pays Cash Dividends",
                    "displaySequence": 1,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": true,
                        "disabled": true
                      }
                    ],
                    "userValues": true,
                    "pathFromRoot": "attributeCategories.records[1].productAttributes.records[1]",
                    "pathFromChild": "attributeCategories.records[1].productAttributes.records[1]"
                  },
                  {
                    "code": "featGuaranteedBenefit",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": false,
                    "required": false,
                    "readonly": true,
                    "disabled": true,
                    "filterable": true,
                    "attributeId": "a091U000001TActQAG",
                    "label": "Guaranteed Death Benefit",
                    "displaySequence": 2,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": true,
                        "disabled": true
                      }
                    ],
                    "userValues": true,
                    "pathFromRoot": "attributeCategories.records[1].productAttributes.records[2]",
                    "pathFromChild": "attributeCategories.records[1].productAttributes.records[2]"
                  },
                  {
                    "code": "featLevelPremium",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": false,
                    "required": false,
                    "readonly": true,
                    "disabled": true,
                    "filterable": true,
                    "attributeId": "a091U000001TAcuQAG",
                    "label": "Level Premium Payments",
                    "displaySequence": 3,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": true,
                        "disabled": true
                      }
                    ],
                    "userValues": true,
                    "pathFromRoot": "attributeCategories.records[1].productAttributes.records[3]",
                    "pathFromChild": "attributeCategories.records[1].productAttributes.records[3]"
                  },
                  {
                    "code": "featPolicyLoan",
                    "dataType": "text",
                    "inputType": "checkbox",
                    "multiselect": false,
                    "required": false,
                    "readonly": true,
                    "disabled": true,
                    "filterable": true,
                    "attributeId": "a091U000001TAcvQAG",
                    "label": "Borrow Against Policy",
                    "displaySequence": 4,
                    "hasRules": false,
                    "hidden": false,
                    "cloneable": true,
                    "isNotTranslatable": false,
                    "values": [
                      {
                        "readonly": true,
                        "disabled": true
                      }
                    ],
                    "userValues": true,
                    "pathFromRoot": "attributeCategories.records[1].productAttributes.records[4]",
                    "pathFromChild": "attributeCategories.records[1].productAttributes.records[4]"
                  }
                ]
              }
            }
          ]
        },
        "childProducts": {
          "totalSize": 2,
          "records": [
            {
              "displaySequence": 1,
              "Id": "01t1U000000kZZiQAM",
              "Name": "Insured Life",
              "ProductCode": "InsLife",
              "LineOfBusiness__c": "Individual Life",
              "Type__c": "Whole Life",
              "IsRecommended__c": false,
              "ImageId__c": "avatar",
              "RecordTypeName__c": "InsuredPartySpec",
              "IsConfigurable__c": true,
              "PricingFormula__c": "baseLifePremium + premiumADD + premiumWaiverOfPrem",
              "Term__c": "Annual",
              "productId": "01t1U000000kZZiQAM",
              "pciId": "a2w1U000000QG8fQAG",
              "minQuantity": 1,
              "maxQuantity": 10,
              "instanceKey": "Jack_Kirkland_Male",
              "Price": 0,
              "attributeCategories": {
                "totalSize": 2,
                "records": [
                  {
                    "displaySequence": 449,
                    "Code__c": "LIFETERMS",
                    "Name": "Life Terms",
                    "id": "a081U000000waCQQAY",
                    "productAttributes": {
                      "totalSize": 1,
                      "records": [
                        {
                          "code": "lifeCoveageAmt",
                          "dataType": "text",
                          "inputType": "dropdown",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAYAQA4",
                          "label": "Coverage Amount",
                          "displaySequence": 0,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "id": "0",
                              "label": "$250,000",
                              "readonly": false,
                              "disabled": false,
                              "value": "250000"
                            },
                            {
                              "id": "1",
                              "label": "$500,000",
                              "readonly": false,
                              "disabled": false,
                              "value": "500000"
                            },
                            {
                              "id": "2",
                              "label": "$1,000,000",
                              "readonly": false,
                              "disabled": false,
                              "value": "1000000"
                            },
                            {
                              "id": "3",
                              "label": "$2,000,000",
                              "readonly": false,
                              "disabled": false,
                              "value": "2000000"
                            },
                            {
                              "id": "4",
                              "label": "$3,000,000",
                              "readonly": false,
                              "disabled": false,
                              "value": "3000000"
                            }
                          ],
                          "userValues": "500000",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[0].productAttributes.records[0]",
                          "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 0,
                          "originalAttributeIndex": 0,
                          "value": "$500,000",
                          "labelAndValue": {
                            "label": "Coverage Amount",
                            "valueLabel": "$500,000"
                          },
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.lifeCoveageAmt.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        }
                      ]
                    }
                  },
                  {
                    "displaySequence": 450,
                    "Code__c": "PER",
                    "Name": "Person",
                    "id": "a081U000000waFUQAY",
                    "productAttributes": {
                      "totalSize": 20,
                      "records": [
                        {
                          "code": "persBirthdate",
                          "dataType": "date",
                          "inputType": "date",
                          "multiselect": false,
                          "required": false,
                          "readonly": true,
                          "disabled": true,
                          "filterable": true,
                          "attributeId": "a091U000001TAyQQAW",
                          "label": "Birthdate",
                          "displaySequence": 1,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": true,
                              "disabled": true
                            }
                          ],
                          "userValues": "1965-09-09",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[0]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[0]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 0,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persBirthdate.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persName",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyeQAG",
                          "label": "Full Name",
                          "displaySequence": 2,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[1]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[1]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 1,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persName.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persSmoke",
                          "dataType": "text",
                          "inputType": "dropdown",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyjQAG",
                          "label": "Smoker",
                          "displaySequence": 3,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "id": "0",
                              "label": "Yes",
                              "readonly": false,
                              "disabled": false,
                              "value": "Y"
                            },
                            {
                              "id": "1",
                              "label": "No",
                              "readonly": false,
                              "disabled": false,
                              "value": "N"
                            }
                          ],
                          "userValues": "N",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[2]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[2]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 2,
                          "value": "No",
                          "labelAndValue": {
                            "label": "Smoker",
                            "valueLabel": "No"
                          },
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persSmoke.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persWeight",
                          "dataType": "number",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAymQAG",
                          "label": "Weight (lbs)",
                          "displaySequence": 4,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[3]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[3]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 3,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persWeight.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persFirstName",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyUQAW",
                          "label": "First Name",
                          "displaySequence": 5,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": "Jack",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[4]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[4]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 4,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persFirstName.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persMiddleName",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAycQAG",
                          "label": "Middle Name",
                          "displaySequence": 6,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[5]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[5]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 5,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persMiddleName.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persLastName",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAybQAG",
                          "label": "Last Name",
                          "displaySequence": 7,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": "Kirkland",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[6]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[6]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 6,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persLastName.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persHeight",
                          "dataType": "number",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyWQAW",
                          "label": "Height",
                          "displaySequence": 8,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[7]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[7]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 7,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persHeight.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persBMI",
                          "dataType": "number",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyPQAW",
                          "label": "Body Mass Index",
                          "displaySequence": 9,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[8]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[8]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 8,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persBMI.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persIncome",
                          "dataType": "currency",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyaQAG",
                          "label": "Annual Income",
                          "displaySequence": 10,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[9]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[9]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 9,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persIncome.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persGender",
                          "dataType": "text",
                          "inputType": "dropdown",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyVQAW",
                          "label": "Gender",
                          "displaySequence": 11,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "id": "0",
                              "label": "Male",
                              "readonly": false,
                              "disabled": false,
                              "value": "Male"
                            },
                            {
                              "id": "1",
                              "label": "Female",
                              "readonly": false,
                              "disabled": false,
                              "value": "Female"
                            }
                          ],
                          "userValues": "Male",
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[10]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[10]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 10,
                          "value": "Male",
                          "labelAndValue": {
                            "label": "Gender",
                            "valueLabel": "Male"
                          },
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persGender.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persAddress",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyNQAW",
                          "label": "Address",
                          "displaySequence": 12,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[11]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[11]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 11,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persAddress.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persStreet",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAylQAG",
                          "label": "Street",
                          "displaySequence": 13,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[12]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[12]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 12,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persStreet.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persPostalCode",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAygQAG",
                          "label": "Postal Code",
                          "displaySequence": 14,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[13]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[13]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 13,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persPostalCode.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persState",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAykQAG",
                          "label": "State",
                          "displaySequence": 15,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[14]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[14]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 14,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persState.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persCity",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyRQAW",
                          "label": "City",
                          "displaySequence": 16,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[15]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[15]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 15,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persCity.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persCountry",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAySQAW",
                          "label": "Country",
                          "displaySequence": 17,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[16]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[16]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 16,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persCountry.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persEmail",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyTQAW",
                          "label": "Email",
                          "displaySequence": 18,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[17]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[17]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 17,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persEmail.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persPhone",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyfQAG",
                          "label": "Phone",
                          "displaySequence": 19,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[18]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[18]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 18,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persPhone.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        },
                        {
                          "code": "persSalutation",
                          "dataType": "text",
                          "inputType": "text",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAyiQAG",
                          "label": "Salutation",
                          "displaySequence": 20,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[0].attributeCategories.records[1].productAttributes.records[19]",
                          "pathFromChild": "attributeCategories.records[1].productAttributes.records[19]",
                          "originalProductIndex": 0,
                          "originalCategoryIndex": 1,
                          "originalAttributeIndex": 19,
                          "productCode": "InsLife",
                          "rulesCode": "InsLife.persSalutation.Jack_Kirkland_Male",
                          "instanceKey": "Jack_Kirkland_Male"
                        }
                      ]
                    }
                  }
                ]
              },
              "childProducts": {
                "totalSize": 3,
                "records": [
                  {
                    "displaySequence": 1,
                    "Id": "01t1U000000kZi8QAE",
                    "Name": "Waiver of Premium",
                    "Description": "A waiver of premium rider is a supplemental insurance policy option that waives premium payments in the event the policyholder becomes critically ill, seriously injured, or disabled.",
                    "Family": "Individual Life",
                    "ProductCode": "WOP",
                    "LineOfBusiness__c": "Individual Health",
                    "Type__c": "Coverages",
                    "IsRecommended__c": false,
                    "PricingSource__c": "premiumWaiverOfPrem",
                    "RecordTypeName__c": "CoverageSpec",
                    "IsConfigurable__c": true,
                    "productId": "01t1U000000kZi8QAE",
                    "pciId": "a2w1U000000QG8gQAG",
                    "selectValidationMessage": {
                      "severity": "ERROR"
                    },
                    "isOptional": true,
                    "isSelected": false,
                    "parentInstanceKey": "Jack_Kirkland_Male",
                    "Price": 0,
                    "attributeCategories": {
                      "totalSize": 1,
                      "records": [
                        {
                          "displaySequence": 100,
                          "Code__c": "terms",
                          "Name": "Policy Terms",
                          "id": "a081U000000waFPQAY",
                          "productAttributes": {
                            "totalSize": 1,
                            "records": [
                              {
                                "code": "claimWait",
                                "dataType": "text",
                                "inputType": "dropdown",
                                "multiselect": false,
                                "required": false,
                                "readonly": false,
                                "disabled": false,
                                "filterable": true,
                                "attributeId": "a091U000001TAwTQAW",
                                "label": "Waiting Period",
                                "displaySequence": -1,
                                "hasRules": true,
                                "hidden": false,
                                "cloneable": true,
                                "isNotTranslatable": false,
                                "values": [
                                  {
                                    "id": "0",
                                    "label": "30",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "30"
                                  },
                                  {
                                    "id": "1",
                                    "label": "90",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "90"
                                  },
                                  {
                                    "id": "2",
                                    "label": "180",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "180",
                                    "rules": [
                                      {
                                        "ruleType": "Hide",
                                        "expression": "%InsLife.lifeCoveageAmt% > 1000000",
                                        "actions": {
                                          "Hide": {
                                            "rest": {
                                              "params": {},
                                              "method": null,
                                              "link": null
                                            },
                                            "remote": {
                                              "params": {}
                                            },
                                            "client": {
                                              "params": {}
                                            }
                                          }
                                        },
                                        "ownsRule": "WOP.claimWait.Jack_Kirkland_Male",
                                        "instanceExpression": [
                                          "",
                                          "InsLife.lifeCoveageAmt.Jack_Kirkland_Male",
                                          " > 1000000"
                                        ],
                                        "ruleEvaluation": false
                                      }
                                    ],
                                    "hiddenByRule": false
                                  }
                                ],
                                "userValues": "90",
                                "rules": [
                                  {
                                    "expression": "%ProductCode.AttributeCode%",
                                    "actions": {
                                      "": {
                                        "rest": {
                                          "params": {},
                                          "method": null,
                                          "link": null
                                        },
                                        "remote": {
                                          "params": {}
                                        },
                                        "client": {
                                          "params": {}
                                        }
                                      }
                                    },
                                    "ownsRule": "WOP.claimWait.Jack_Kirkland_Male"
                                  }
                                ],
                                "parentProductCode": "WOP",
                                "pathFromRoot": "childProducts.records[0].attributeCategories.records[0].productAttributes.records[0]",
                                "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                                "originalProductIndex": 0,
                                "originalCategoryIndex": 0,
                                "originalAttributeIndex": 0,
                                "value": "90",
                                "labelAndValue": {
                                  "label": "Waiting Period",
                                  "valueLabel": "90"
                                },
                                "productCode": "WOP",
                                "rulesCode": "WOP.claimWait.Jack_Kirkland_Male",
                                "instanceKey": "Jack_Kirkland_Male"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "pathFromRoot": "[0].childProducts.records[0].childProducts.records[0]",
                    "formattedParentInstanceKey": "jack_kirkland_male",
                    "parentProductName": "Jack_Kirkland_Male",
                    "originalIndex": 0,
                    "numberCategories": 3,
                    "numberAttributes": 3,
                    "popoverOpen": false,
                    "isOriginalOptional": true,
                    "isAddedOptional": false
                  },
                  {
                    "displaySequence": 1,
                    "Id": "01t1U000000kZVNQA2",
                    "Name": "Accidental Death",
                    "Description": "An accidental death benefit rider also known as a double indemnity clause provides a higher death benefit to the beneficiaries of the policy in case the insured dies because of an accident. The death benefit is generally a multiple of the face value of the base coverage.",
                    "Family": "Individual Life",
                    "ProductCode": "ADDCOV",
                    "LineOfBusiness__c": "Individual Health",
                    "Type__c": "Coverages",
                    "IsRecommended__c": false,
                    "PricingSource__c": "premiumADD",
                    "RecordTypeName__c": "CoverageSpec",
                    "IsConfigurable__c": true,
                    "productId": "01t1U000000kZVNQA2",
                    "pciId": "a2w1U000000QG8eQAG",
                    "isOptional": false,
                    "isSelected": true,
                    "parentInstanceKey": "Jack_Kirkland_Male",
                    "Price": 0,
                    "attributeCategories": {
                      "totalSize": 1,
                      "records": [
                        {
                          "displaySequence": 100,
                          "Code__c": "terms",
                          "Name": "Policy Terms",
                          "id": "a081U000000waFPQAY",
                          "productAttributes": {
                            "totalSize": 1,
                            "records": [
                              {
                                "code": "covBenefit",
                                "dataType": "text",
                                "inputType": "dropdown",
                                "multiselect": false,
                                "required": false,
                                "readonly": false,
                                "disabled": false,
                                "filterable": true,
                                "attributeId": "a091U000001TAwUQAW",
                                "label": "Benefit",
                                "displaySequence": 0,
                                "hasRules": true,
                                "hidden": false,
                                "cloneable": true,
                                "isNotTranslatable": false,
                                "values": [
                                  {
                                    "id": "0",
                                    "label": "2/3/4",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "2/3/4"
                                  },
                                  {
                                    "id": "1",
                                    "label": "5/6/7",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "5/6/7"
                                  },
                                  {
                                    "id": "2",
                                    "label": "7/8/9",
                                    "readonly": false,
                                    "disabled": false,
                                    "value": "7/8/9"
                                  }
                                ],
                                "userValues": "2/3/4",
                                "valueDecoder": "code1/code2/code3",
                                "rules": [
                                  {
                                    "actions": {
                                      "": {
                                        "rest": {
                                          "params": {},
                                          "method": null,
                                          "link": null
                                        },
                                        "remote": {
                                          "params": {}
                                        },
                                        "client": {
                                          "params": {}
                                        }
                                      }
                                    },
                                    "ownsRule": "ADDCOV.covBenefit.Jack_Kirkland_Male"
                                  }
                                ],
                                "parentProductCode": "ADDCOV",
                                "pathFromRoot": "childProducts.records[1].attributeCategories.records[0].productAttributes.records[0]",
                                "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                                "originalProductIndex": 1,
                                "originalCategoryIndex": 0,
                                "originalAttributeIndex": 0,
                                "value": "2/3/4",
                                "labelAndValue": {
                                  "label": "Benefit",
                                  "valueLabel": "2/3/4"
                                },
                                "productCode": "ADDCOV",
                                "rulesCode": "ADDCOV.covBenefit.Jack_Kirkland_Male",
                                "instanceKey": "Jack_Kirkland_Male"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "pathFromRoot": "[0].childProducts.records[0].childProducts.records[1]",
                    "formattedParentInstanceKey": "jack_kirkland_male",
                    "parentProductName": "Jack_Kirkland_Male",
                    "originalIndex": 1,
                    "numberCategories": 3,
                    "numberAttributes": 3,
                    "popoverOpen": false,
                    "lastNonOptional": true
                  },
                  {
                    "displaySequence": 1,
                    "Id": "01t1U000000kZTHQA2",
                    "Name": "Accelerated Benefit Rider",
                    "Description": "An accelerated death benefit (ADB) is a benefit that can be attached to a life insurance policy that enables the policyholder to receive cash advances against the death benefit in the case of being diagnosed with a terminal illness.",
                    "Family": "Individual Life",
                    "ProductCode": "ABR",
                    "LineOfBusiness__c": "Individual Life",
                    "Type__c": "Coverages",
                    "IsRecommended__c": false,
                    "PricingSource__c": "baseLifePremium",
                    "RecordTypeName__c": "CoverageSpec",
                    "IsConfigurable__c": true,
                    "productId": "01t1U000000kZTHQA2",
                    "pciId": "a2w1U000000QG8hQAG",
                    "isOptional": true,
                    "isSelected": false,
                    "parentInstanceKey": "Jack_Kirkland_Male",
                    "attributeCategories": {
                      "totalSize": 1,
                      "records": [
                        {
                          "displaySequence": 13,
                          "Code__c": "MAX",
                          "Name": "Maximums",
                          "id": "a081U000000waCrQAI",
                          "productAttributes": {
                            "totalSize": 1,
                            "records": [
                              {
                                "code": "ATTRIBUTE-074",
                                "dataType": "currency",
                                "inputType": "number",
                                "multiselect": false,
                                "required": false,
                                "readonly": false,
                                "disabled": false,
                                "filterable": true,
                                "attributeId": "a091U000001TAaRQAW",
                                "label": "Lifetime Maximum",
                                "displaySequence": 5,
                                "hasRules": true,
                                "hidden": false,
                                "cloneable": true,
                                "isNotTranslatable": false,
                                "values": [
                                  {
                                    "readonly": false,
                                    "disabled": false
                                  }
                                ],
                                "userValues": 1000000,
                                "rules": [
                                  {
                                    "ruleType": "Message",
                                    "expression": "%ABR.ATTRIBUTE-074% < 1000000",
                                    "actions": {
                                      "Message": {
                                        "rest": {
                                          "params": {},
                                          "method": null,
                                          "link": null
                                        },
                                        "remote": {
                                          "params": {}
                                        },
                                        "client": {
                                          "params": {}
                                        }
                                      }
                                    },
                                    "messages": [
                                      {
                                        "code": "Value cannot be below than 1000000",
                                        "severity": "ERROR",
                                        "message": "Value cannot be below than 1000000"
                                      }
                                    ],
                                    "ownsRule": "ABR.ATTRIBUTE-074.Jack_Kirkland_Male",
                                    "instanceExpression": [
                                      "",
                                      "ABR.ATTRIBUTE-074.Jack_Kirkland_Male",
                                      " < 1000000"
                                    ],
                                    "ruleEvaluation": false
                                  },
                                  {
                                    "ruleType": "Message",
                                    "expression": "%ABR.ATTRIBUTE-074% > 2000000",
                                    "actions": {
                                      "Message": {
                                        "rest": {
                                          "params": {},
                                          "method": null,
                                          "link": null
                                        },
                                        "remote": {
                                          "params": {}
                                        },
                                        "client": {
                                          "params": {}
                                        }
                                      }
                                    },
                                    "messages": [
                                      {
                                        "code": "Value cannot be more than 2000000",
                                        "severity": "ERROR",
                                        "message": "Value cannot be more than 2000000"
                                      }
                                    ],
                                    "ownsRule": "ABR.ATTRIBUTE-074.Jack_Kirkland_Male",
                                    "instanceExpression": [
                                      "",
                                      "ABR.ATTRIBUTE-074.Jack_Kirkland_Male",
                                      " > 2000000"
                                    ],
                                    "ruleEvaluation": false
                                  },
                                  {
                                    "ruleType": "Set Value",
                                    "expression": "%InsLife.lifeCoveageAmt% = 2000000",
                                    "valueExpression": "2000000",
                                    "actions": {
                                      "Set Value": {
                                        "rest": {
                                          "params": {},
                                          "method": null,
                                          "link": null
                                        },
                                        "remote": {
                                          "params": {}
                                        },
                                        "client": {
                                          "params": {}
                                        }
                                      }
                                    },
                                    "ownsRule": "ABR.ATTRIBUTE-074.Jack_Kirkland_Male"
                                  }
                                ],
                                "parentProductCode": "ABR",
                                "pathFromRoot": "childProducts.records[2].attributeCategories.records[0].productAttributes.records[0]",
                                "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                                "originalProductIndex": 2,
                                "originalCategoryIndex": 0,
                                "originalAttributeIndex": 0,
                                "productCode": "ABR",
                                "rulesCode": "ABR.ATTRIBUTE-074.Jack_Kirkland_Male",
                                "instanceKey": "Jack_Kirkland_Male"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "pathFromRoot": "[0].childProducts.records[0].childProducts.records[2]",
                    "formattedParentInstanceKey": "jack_kirkland_male",
                    "parentProductName": "Jack_Kirkland_Male",
                    "originalIndex": 2,
                    "numberCategories": 3,
                    "numberAttributes": 3,
                    "popoverOpen": false,
                    "isOriginalOptional": true,
                    "isAddedOptional": false,
                    "firstOptional": true,
                    "showTypeHeader": true
                  }
                ]
              },
              "pathFromRoot": "[0].childProducts.records[0]",
              "parentProductName": "Millennium Whole Life",
              "originalIndex": 0,
              "numberCategories": 2,
              "numberAttributes": 21
            },
            {
              "displaySequence": 1,
              "Id": "01t1U000000kZXWQA2",
              "Name": "Prior Claims",
              "ProductCode": "PriorClaims",
              "LineOfBusiness__c": "Property & Casualty",
              "Type__c": "Coverages",
              "IsRecommended__c": false,
              "RecordTypeName__c": "RatingFactSpec",
              "IsConfigurable__c": true,
              "Term__c": "Annual",
              "productId": "01t1U000000kZXWQA2",
              "pciId": "a2w1U000000QG8iQAG",
              "attributeCategories": {
                "totalSize": 1,
                "records": [
                  {
                    "displaySequence": 30,
                    "Code__c": "ClaimsHistory",
                    "Name": "Claims History",
                    "id": "a081U000000waCJQAY",
                    "productAttributes": {
                      "totalSize": 3,
                      "records": [
                        {
                          "code": "ClaimsLYNum",
                          "dataType": "number",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAXsQAO",
                          "label": "Number Of Claims Last Year",
                          "displaySequence": 1,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[1].attributeCategories.records[0].productAttributes.records[0]",
                          "pathFromChild": "attributeCategories.records[0].productAttributes.records[0]",
                          "originalProductIndex": 1,
                          "originalCategoryIndex": 0,
                          "originalAttributeIndex": 0,
                          "productCode": "PriorClaims",
                          "rulesCode": "PriorClaims.ClaimsLYNum"
                        },
                        {
                          "code": "3YrAveClaim",
                          "dataType": "number",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAXrQAO",
                          "label": "3 Year Average Claims",
                          "displaySequence": 2,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[1].attributeCategories.records[0].productAttributes.records[1]",
                          "pathFromChild": "attributeCategories.records[0].productAttributes.records[1]",
                          "originalProductIndex": 1,
                          "originalCategoryIndex": 0,
                          "originalAttributeIndex": 1,
                          "productCode": "PriorClaims",
                          "rulesCode": "PriorClaims.3YrAveClaim"
                        },
                        {
                          "code": "claimPYLosses",
                          "dataType": "currency",
                          "inputType": "number",
                          "multiselect": false,
                          "required": false,
                          "readonly": false,
                          "disabled": false,
                          "filterable": true,
                          "attributeId": "a091U000001TAXtQAO",
                          "label": "Prior Year Losses",
                          "displaySequence": 3,
                          "hasRules": false,
                          "hidden": false,
                          "cloneable": true,
                          "isNotTranslatable": false,
                          "values": [
                            {
                              "readonly": false,
                              "disabled": false
                            }
                          ],
                          "userValues": null,
                          "pathFromRoot": "childProducts.records[1].attributeCategories.records[0].productAttributes.records[2]",
                          "pathFromChild": "attributeCategories.records[0].productAttributes.records[2]",
                          "originalProductIndex": 1,
                          "originalCategoryIndex": 0,
                          "originalAttributeIndex": 2,
                          "productCode": "PriorClaims",
                          "rulesCode": "PriorClaims.claimPYLosses"
                        }
                      ]
                    }
                  }
                ]
              },
              "pathFromRoot": "[0].childProducts.records[1]",
              "parentProductName": "Millennium Whole Life",
              "originalIndex": 1,
              "numberCategories": 1,
              "numberAttributes": 3
            }
          ]
        },
        "pathFromRoot": "[0]",
        "pathFromChild": "[0]",
        "instanceKeyChildren": 1,
        "timestamp": 1576541094561,
        "parentProduct": true
      }
    ]
  }
}

輸出 JSON

輸出 JSON 會傳回產品 JSON 的屬性節點。

如果 selectedValueAsObject 設定為 true,則輸出會格式化為對應。

如果 selectedValueAsObject 設定為 false,則 attributeSelectedValue 節點的輸出會格式化為字串。

{
  "totalSize": null,
  "records": [
    {
      "displaySequence": -1,
      "CalculatedPriceData": {
        "totalPremium": 0,
        "Jack_Kirkland_Male": {
          "ID": "0",
          "amountADD": 1000000,
          "premiumWaiverOfPrem": 0,
          "premiumADD": 0,
          "premium": 0,
          "InsLife.instanceKey": "Jack_Kirkland_Male"
        }
      },
      "RawPriceData": [
        {
          "aggregationResults": {
            "totalPremium": 0
          },
          "calculationResults": [
            {
              "ID": "0",
              "amountADD": 1000000,
              "premiumWaiverOfPrem": 0,
              "premiumADD": 0,
              "premium": 0,
              "InsLife.instanceKey": "Jack_Kirkland_Male"
            }
          ]
        }
      ],
      "Id": "01t1U000000kZheQAE",
      "Name": "Millennium Whole Life",
      "Family": "Individual Health",
      "ProductCode": "WL-Base",
      "LineOfBusiness__c": "Individual Life",
      "Type__c": "Whole Life",
      "SubType__c": "Prime",
      "IsRecommended__c": false,
      "ImageId__c": "library_folder",
      "RecordTypeName__c": "Product",
      "IsConfigurable__c": true,
      "PricingFormula__c": "SUM(baseLifePremium + premiumADD + premiumWaiverOfPrem)",
      "productId": "01t1U000000kZheQAE",
      "currencyCode": "EUR",
      "currencySymbol": "€",
      "Price": 0,
      "pathFromRoot": "[0]",
      "pathFromChild": "[0]",
      "instanceKeyChildren": 1,
      "timestamp": 1576541094561,
      "parentProduct": true,
      "attributeSelectedValues": "{\"featPolicyLoan\":true,\"featLevelPremium\":true,\"featGuaranteedBenefit\":true,\"featCashDividends\":true,\"featAccumCVLI\":true,\"termPayment\":\"check\",\"termDivMeth\":\"reinvest\",\"payFrequency\":\"month\",\"PART\":\"Participating\",\"covType\":\"10\",\"covStdExclusions\":[{\"Act of War\":false},{\"Suicide\":false},{\"Extreme Sports\":false},{\"Private Plane\":false},{\"Illegal Activity\":false}]}",
      "rules": "{\"featAccumCVLI\":[{\"valueExpression\":null,\"ruleType\":\"Hide\",\"messages\":[],\"expression\":\"AGE(%birth_date%)\",\"actions\":{\"Hide\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}}],\"termDivMeth\":[{\"valueExpression\":null,\"ruleType\":\"Hide\",\"messages\":[],\"expression\":\"%WL-Base.PART% = 'Nonparticipating'\",\"actions\":{\"Hide\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}}]}",
      "childProducts": {
        "totalSize": 2,
        "records": [
          {
            "displaySequence": 1,
            "Id": "01t1U000000kZZiQAM",
            "Name": "Insured Life",
            "ProductCode": "InsLife",
            "LineOfBusiness__c": "Individual Life",
            "Type__c": "Whole Life",
            "IsRecommended__c": false,
            "ImageId__c": "avatar",
            "RecordTypeName__c": "InsuredPartySpec",
            "IsConfigurable__c": true,
            "PricingFormula__c": "baseLifePremium + premiumADD + premiumWaiverOfPrem",
            "Term__c": "Annual",
            "productId": "01t1U000000kZZiQAM",
            "pciId": "a2w1U000000QG8fQAG",
            "minQuantity": 1,
            "maxQuantity": 10,
            "instanceKey": "Jack_Kirkland_Male",
            "Price": 0,
            "pathFromRoot": "[0].childProducts.records[0]",
            "parentProductName": "Millennium Whole Life",
            "originalIndex": 0,
            "numberCategories": 2,
            "numberAttributes": 21,
            "attributeSelectedValues": "{\"persGender\":\"Male\",\"persLastName\":\"Kirkland\",\"persFirstName\":\"Jack\",\"persSmoke\":\"N\",\"persBirthdate\":\"1965-09-09\",\"lifeCoveageAmt\":\"500000\"}",
            "childProducts": {
              "totalSize": 3,
              "records": [
                {
                  "displaySequence": 1,
                  "Id": "01t1U000000kZi8QAE",
                  "Name": "Waiver of Premium",
                  "Description": "A waiver of premium rider is a supplemental insurance policy option that waives premium payments in the event the policyholder becomes critically ill, seriously injured, or disabled.",
                  "Family": "Individual Life",
                  "ProductCode": "WOP",
                  "LineOfBusiness__c": "Individual Health",
                  "Type__c": "Coverages",
                  "IsRecommended__c": false,
                  "PricingSource__c": "premiumWaiverOfPrem",
                  "RecordTypeName__c": "CoverageSpec",
                  "IsConfigurable__c": true,
                  "productId": "01t1U000000kZi8QAE",
                  "pciId": "a2w1U000000QG8gQAG",
                  "selectValidationMessage": "{\"severity\":\"ERROR\"}",
                  "isOptional": true,
                  "isSelected": false,
                  "parentInstanceKey": "Jack_Kirkland_Male",
                  "Price": 0,
                  "pathFromRoot": "[0].childProducts.records[0].childProducts.records[0]",
                  "formattedParentInstanceKey": "jack_kirkland_male",
                  "parentProductName": "Jack_Kirkland_Male",
                  "originalIndex": 0,
                  "numberCategories": 3,
                  "numberAttributes": 3,
                  "popoverOpen": false,
                  "isOriginalOptional": true,
                  "isAddedOptional": false,
                  "attributeSelectedValues": "{\"claimWait\":\"90\"}",
                  "rules": "{\"claimWait\":[{\"valueExpression\":null,\"ruleType\":null,\"messages\":[],\"expression\":\"%ProductCode.AttributeCode%\",\"actions\":{\"\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}}]}"
                },
                {
                  "displaySequence": 1,
                  "Id": "01t1U000000kZVNQA2",
                  "Name": "Accidental Death",
                  "Description": "An accidental death benefit rider also known as a double indemnity clause provides a higher death benefit to the beneficiaries of the policy in case the insured dies because of an accident. The death benefit is generally a multiple of the face value of the base coverage.",
                  "Family": "Individual Life",
                  "ProductCode": "ADDCOV",
                  "LineOfBusiness__c": "Individual Health",
                  "Type__c": "Coverages",
                  "IsRecommended__c": false,
                  "PricingSource__c": "premiumADD",
                  "RecordTypeName__c": "CoverageSpec",
                  "IsConfigurable__c": true,
                  "productId": "01t1U000000kZVNQA2",
                  "pciId": "a2w1U000000QG8eQAG",
                  "isOptional": false,
                  "isSelected": true,
                  "parentInstanceKey": "Jack_Kirkland_Male",
                  "Price": 0,
                  "pathFromRoot": "[0].childProducts.records[0].childProducts.records[1]",
                  "formattedParentInstanceKey": "jack_kirkland_male",
                  "parentProductName": "Jack_Kirkland_Male",
                  "originalIndex": 1,
                  "numberCategories": 3,
                  "numberAttributes": 3,
                  "popoverOpen": false,
                  "lastNonOptional": true,
                  "attributeSelectedValues": "{\"covBenefit.code3\":4,\"covBenefit.code2\":3,\"covBenefit.code1\":2,\"covBenefit\":\"2/3/4\"}",
                  "rules": "{\"covBenefit\":[{\"valueExpression\":null,\"ruleType\":null,\"messages\":[],\"expression\":null,\"actions\":{\"\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}}]}"
                },
                {
                  "displaySequence": 1,
                  "Id": "01t1U000000kZTHQA2",
                  "Name": "Accelerated Benefit Rider",
                  "Description": "An accelerated death benefit (ADB) is a benefit that can be attached to a life insurance policy that enables the policyholder to receive cash advances against the death benefit in the case of being diagnosed with a terminal illness.",
                  "Family": "Individual Life",
                  "ProductCode": "ABR",
                  "LineOfBusiness__c": "Individual Life",
                  "Type__c": "Coverages",
                  "IsRecommended__c": false,
                  "PricingSource__c": "baseLifePremium",
                  "RecordTypeName__c": "CoverageSpec",
                  "IsConfigurable__c": true,
                  "productId": "01t1U000000kZTHQA2",
                  "pciId": "a2w1U000000QG8hQAG",
                  "isOptional": true,
                  "isSelected": false,
                  "parentInstanceKey": "Jack_Kirkland_Male",
                  "pathFromRoot": "[0].childProducts.records[0].childProducts.records[2]",
                  "formattedParentInstanceKey": "jack_kirkland_male",
                  "parentProductName": "Jack_Kirkland_Male",
                  "originalIndex": 2,
                  "numberCategories": 3,
                  "numberAttributes": 3,
                  "popoverOpen": false,
                  "isOriginalOptional": true,
                  "isAddedOptional": false,
                  "firstOptional": true,
                  "showTypeHeader": true,
                  "attributeSelectedValues": "{\"ATTRIBUTE-074\":1000000}",
                  "rules": "{\"ATTRIBUTE-074\":[{\"valueExpression\":null,\"ruleType\":\"Message\",\"messages\":[{\"severity\":\"ERROR\",\"messageId\":null,\"message\":\"Value cannot be below than 1000000\",\"code\":\"Value cannot be below than 1000000\",\"bundleId\":null,\"actions\":{}}],\"expression\":\"%ABR.ATTRIBUTE-074% < 1000000\",\"actions\":{\"Message\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}},{\"valueExpression\":null,\"ruleType\":\"Message\",\"messages\":[{\"severity\":\"ERROR\",\"messageId\":null,\"message\":\"Value cannot be more than 2000000\",\"code\":\"Value cannot be more than 2000000\",\"bundleId\":null,\"actions\":{}}],\"expression\":\"%ABR.ATTRIBUTE-074% > 2000000\",\"actions\":{\"Message\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}},{\"valueExpression\":\"2000000\",\"ruleType\":\"Set Value\",\"messages\":[],\"expression\":\"%InsLife.lifeCoveageAmt% = 2000000\",\"actions\":{\"Set Value\":{\"rest\":{\"params\":{},\"method\":null,\"link\":null},\"remote\":{\"params\":{}},\"client\":{\"records\":[],\"params\":{}}}}}]}"
                }
              ]
            }
          },
          {
            "displaySequence": 1,
            "Id": "01t1U000000kZXWQA2",
            "Name": "Prior Claims",
            "ProductCode": "PriorClaims",
            "LineOfBusiness__c": "Property & Casualty",
            "Type__c": "Coverages",
            "IsRecommended__c": false,
            "RecordTypeName__c": "RatingFactSpec",
            "IsConfigurable__c": true,
            "Term__c": "Annual",
            "productId": "01t1U000000kZXWQA2",
            "pciId": "a2w1U000000QG8iQAG",
            "pathFromRoot": "[0].childProducts.records[1]",
            "parentProductName": "Millennium Whole Life",
            "originalIndex": 1,
            "numberCategories": 1,
            "numberAttributes": 3
          }
        ]
      }
    }
  ]
}
 
正在載入
Salesforce Help | Article