{
  "header": {
    "id": "DetachedRepeatExample_DM",
    "modelType": "document",
    "modelVersion": "27.0.2",
    "locales": [
      {
        "code": "en"
      }
    ],
    "annotations": [
      {
        "name": "roles",
        "value": "reviewer,tester"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "DetachedRepeatExample_DM"
    },
    "modelConfig": {
      "decimalSeparator": ".",
      "timeZone": "UTC",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_72b6f",
          "name": "DetachedRepeatExample",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "group_46c1e",
                "name": "MyDetachedRepeat",
                "Group": {
                  "repeatability": 10,
                  "elements": [
                    {
                      "type": "Field",
                      "id": "field_c27f2",
                      "name": "Field2",
                      "Field": {
                        "fieldType": {
                          "type": "ConfirmType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Field2"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_aa1c5",
                      "name": "Field1AndField2",
                      "Rule": {
                        "errorEntityId": "field_c27f2",
                        "errorCode": "Error rule_aa1c5",
                        "errorCondition": "GroupFilled(RuleGroup)\r\nand\r\nFieldFilled(../FieldsOutsideRepeat/Field1)\r\nand FieldFilled(Field2)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "Field1 and Field2 are filled"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Group",
                      "id": "group_8c51d",
                      "name": "Workarounds",
                      "Group": {
                        "repeatability": 1,
                        "elements": [
                          {
                            "type": "Field",
                            "id": "field_8d093",
                            "name": "Field1InRepeat",
                            "Field": {
                              "fieldType": {
                                "type": "ConfirmType"
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "Field1InRepeat"
                                }
                              ]
                            }
                          },
                          {
                            "type": "Computation",
                            "id": "computation_b48a1",
                            "name": "Field1InRepeat_Comp",
                            "Computation": {
                              "computedFieldId": "field_8d093",
                              "computationAlternatives": [
                                {
                                  "operation": "True",
                                  "precondition": "FieldFilled(../../FieldsOutsideRepeat/Field1)"
                                }
                              ],
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "error text for computation of Field1InRepeat_Comp"
                                }
                              ]
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_d3bbd",
                            "name": "Field1AndField2_Index3_AsField",
                            "Field": {
                              "fieldType": {
                                "type": "ConfirmType"
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "Field1AndField2_Index3_AsField"
                                }
                              ]
                            }
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_02a5b",
                      "name": "Field1AndField2_Workaround",
                      "Rule": {
                        "errorEntityId": "field_c27f2",
                        "errorCode": "Error rule_02a5b",
                        "errorCondition": "GroupFilled(RuleGroup)\r\nAnd FieldFilled(Field2)\r\nAnd FieldFilled(Workarounds/Field1InRepeat)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "Workaround: Field1 and Field2 are filled"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_3489d",
                      "name": "Field1AndField2_Index3_Workaround",
                      "Rule": {
                        "errorEntityId": "field_c27f2",
                        "errorCode": "Error rule_3489d",
                        "errorCondition": "GroupFilled(RuleGroup) and FieldFilled(Field2) and\r\nFieldFilled(Workarounds/Field1AndField2_Index3_AsField)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "Workaround: Field1 and Field2 with the Index 3 are filled"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "type": "Group",
                "id": "group_9e2b5",
                "name": "FieldsOutsideRepeat",
                "Group": {
                  "repeatability": 1,
                  "elements": [
                    {
                      "type": "Field",
                      "id": "field_c0a80",
                      "name": "Field1",
                      "Field": {
                        "fieldType": {
                          "type": "ConfirmType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Field1"
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "type": "Rule",
                "id": "rule_e1138",
                "name": "Field1AndField2_Index3",
                "Rule": {
                  "errorEntityId": "field_c27f2",
                  "errorCode": "Error rule_e1138",
                  "errorCondition": "GroupFilled(MyDetachedRepeat)\r\nAnd CurrentRepetition(MyDetachedRepeat) == 3\r\nAnd AllFieldsFilled(FieldsOutsideRepeat/Field1, MyDetachedRepeat*/Field2 Having CurrentRepetition(MyDetachedRepeat)\r\n    == 3)",
                  "severity": "ERROR",
                  "errorMessage": [
                    {
                      "locale": "en",
                      "text": "Field1 and Field2 with the Index 3 are filled"
                    }
                  ]
                }
              },
              {
                "type": "Computation",
                "id": "computation_1dec0",
                "name": "Field1AndField2_Index3_AsField_Comp",
                "Computation": {
                  "computedFieldId": "field_d3bbd",
                  "computationAlternatives": [
                    {
                      "operation": "True",
                      "precondition": "GroupFilled(MyDetachedRepeat)\r\nAnd CurrentRepetition(MyDetachedRepeat) == 3\r\nAnd AllFieldsFilled(FieldsOutsideRepeat/Field1, MyDetachedRepeat*/Field2 Having CurrentRepetition(MyDetachedRepeat)\r\n    == 3)"
                    }
                  ],
                  "errorMessage": [
                    {
                      "locale": "en",
                      "text": "error text for computation of Field1AndField2_Index3_AsField_Comp"
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}