{
  "header": {
    "id": "ExpressionsRepeat_DM",
    "modelType": "document",
    "modelVersion": "27.0.2",
    "locales": [
      {
        "code": "en"
      }
    ],
    "annotations": [],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "ExpressionsRepeat_DM"
    },
    "modelConfig": {
      "decimalSeparator": ".",
      "timeZone": "UTC",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_f256a",
          "name": "Root",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "group_e56be",
                "name": "Repeat",
                "Group": {
                  "repeatability": 5,
                  "elements": [
                    {
                      "type": "Group",
                      "id": "group_c39b2",
                      "name": "Attachment",
                      "Group": {
                        "repeatability": 1,
                        "usageType": "attachment",
                        "elements": [
                          {
                            "type": "Field",
                            "id": "field_6f76a",
                            "name": "original_filename",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_94d24",
                            "name": "internal_filename",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_c13ef",
                            "name": "content",
                            "Field": {
                              "fieldType": {
                                "type": "StringType",
                                "StringType": {
                                  "lineBreaksPermitted": true,
                                  "noValueValidation": true
                                }
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_b26e4",
                            "name": "attachment_id",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_6b737",
                            "name": "size",
                            "Field": {
                              "fieldType": {
                                "type": "NumberType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_bd294",
                            "name": "mime_type",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_982ca",
                            "name": "category",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_f81df",
                            "name": "description",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "rule_a017e",
                            "name": "AttachmentInternalFilenameRequired",
                            "Rule": {
                              "errorEntityId": "field_94d24",
                              "errorCode": "Error rule_a017e",
                              "errorCondition": "GroupFilled(RuleGroup) and FieldNotFilled(internal_filename)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Field internal_filename of customType attachment is not filled."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "rule_e2b30",
                            "name": "AttachmentMimeTypeRequired",
                            "Rule": {
                              "errorEntityId": "field_bd294",
                              "errorCode": "Error rule_e2b30",
                              "errorCondition": "GroupFilled(RuleGroup) and FieldNotFilled(mime_type)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Field mime_type of customType attachment is not filled."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "rule_95dd3",
                            "name": "AttachmentIdOrContentFilled",
                            "Rule": {
                              "errorEntityId": "field_c13ef",
                              "errorCode": "Error rule_95dd3",
                              "errorCondition": "GroupFilled(RuleGroup) and NotExactlyOneFieldFilled(attachment_id, content)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Either attachment_id or content must be filled in a customType attachment, but not both."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "rule_9e5cb",
                            "name": "SizeOfContentFilled",
                            "Rule": {
                              "errorEntityId": "field_c13ef",
                              "errorCode": "Error rule_9e5cb",
                              "errorCondition": "FieldFilled(content) and FieldNotFilled(size)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: If the content is filled, the size must be also filled."
                                }
                              ]
                            }
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_e9caa",
                      "name": "FieldForExpression",
                      "Field": {
                        "fieldType": {
                          "type": "StringType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Field for Expression"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_5ae34",
                      "name": "CopyInformation",
                      "Computation": {
                        "computedFieldId": "field_e9caa",
                        "computationAlternatives": [
                          {
                            "precondition": "FieldFilled(Attachment/original_filename)",
                            "operation": "[Attachment/original_filename]"
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of CopyInformation"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}