{
  "header": {
    "id": "LastRepeatIndex_DM",
    "modelType": "document",
    "modelVersion": "28.3.0",
    "locales": [
      {
        "code": "en"
      },
      {
        "code": "de"
      }
    ],
    "annotations": [
      {
        "name": "roles",
        "value": "tester,reviewer"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "LastRepeatIndex_DM"
    },
    "modelConfig": {
      "decimalSeparator": ".",
      "timeZone": "UTC",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_1f225",
          "name": "LastRepeatIndex",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Field",
                "id": "field_928b0",
                "name": "LastValue",
                "Field": {
                  "fieldType": {
                    "type": "StringType"
                  },
                  "label": [
                    {
                      "locale": "en",
                      "text": "Last Value"
                    },
                    {
                      "locale": "de",
                      "text": "Letze Wert"
                    }
                  ]
                }
              },
              {
                "type": "Computation",
                "id": "computation_c248c",
                "name": "LastValueComp",
                "Computation": {
                  "computedFieldRelPath": "../LastValue",
                  "computationAlternatives": [
                    {
                      "precondition": "MoreThanOneFieldFilled(MyRepeat*/RepeatValue)",
                      "operation": "FirstFilledValue(MyRepeat*/RepeatValue Having CurrentRepetition(MyRepeat) == NumberOfFilledGroups(MyRepeat*))"
                    }
                  ],
                  "errorMessage": [
                    {
                      "locale": "en",
                      "text": "error text for computation of LastValueComp"
                    },
                    {
                      "locale": "de",
                      "text": "error text for computation of LastValueComp"
                    }
                  ]
                }
              },
              {
                "type": "Group",
                "id": "group_5aac0",
                "name": "MyRepeat",
                "Group": {
                  "repeatability": 10,
                  "elements": [
                    {
                      "type": "Field",
                      "id": "field_a710f",
                      "name": "RepeatValue",
                      "Field": {
                        "fieldType": {
                          "type": "StringType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Repeatable Value"
                          },
                          {
                            "locale": "de",
                            "text": "Wiederholbare Wert"
                          }
                        ],
                        "requirednessConfig": {
                          "mode": "absoluteOrRelativeToNextRepAncestor"
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}