{
  "header": {
    "id": "Validation_DM",
    "modelType": "document",
    "modelVersion": "28.3.0",
    "locales": [
      {
        "code": "en"
      },
      {
        "code": "de"
      }
    ],
    "annotations": [
      {
        "name": "roles",
        "value": "tester,reviewer"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "Validation_DM"
    },
    "modelConfig": {
      "timeZone": "UTC",
      "decimalSeparator": ".",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_18e74",
          "name": "Validation",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "group_833b5",
                "name": "ReceiptList",
                "Group": {
                  "repeatability": 1,
                  "elements": [
                    {
                      "type": "Group",
                      "id": "group_f71bf",
                      "name": "ApprovedCostTypes",
                      "Group": {
                        "repeatability": 10,
                        "elements": [
                          {
                            "type": "Field",
                            "id": "field_4d27a",
                            "name": "CostType",
                            "Field": {
                              "fieldType": {
                                "type": "EnumerationType",
                                "EnumerationType": {
                                  "values": [
                                    {
                                      "value": "1",
                                      "label": []
                                    },
                                    {
                                      "value": "2",
                                      "label": []
                                    },
                                    {
                                      "value": "3",
                                      "label": []
                                    }
                                  ]
                                }
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "CostType"
                                },
                                {
                                  "locale": "de",
                                  "text": "CostType"
                                }
                              ]
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_b4642",
                            "name": "CostType_Global",
                            "Field": {
                              "fieldType": {
                                "type": "EnumerationType",
                                "EnumerationType": {
                                  "values": [
                                    {
                                      "value": "1",
                                      "label": []
                                    },
                                    {
                                      "value": "2",
                                      "label": []
                                    },
                                    {
                                      "value": "3",
                                      "label": []
                                    }
                                  ]
                                }
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "CostType_Global"
                                },
                                {
                                  "locale": "de",
                                  "text": "CostType_Global"
                                }
                              ],
                              "global": true
                            }
                          },
                          {
                            "type": "Computation",
                            "id": "computation_cc135",
                            "name": "CostType_GlobalComp",
                            "Computation": {
                              "computedFieldRelPath": "../CostType_Global",
                              "computationAlternatives": [
                                {
                                  "precondition": "FieldFilled(CostType)",
                                  "operation": "[CostType]"
                                }
                              ],
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "error text for computation of CostType_GlobalComp"
                                },
                                {
                                  "locale": "de",
                                  "text": "error text for computation of CostType_GlobalComp"
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
                }
              },
              {
                "type": "Group",
                "id": "group_bce28",
                "name": "ReceiptlistReceipt",
                "Group": {
                  "repeatability": 1000,
                  "elements": [
                    {
                      "type": "Group",
                      "id": "group_336e3",
                      "name": "Receipt",
                      "Group": {
                        "repeatability": 1,
                        "elements": [
                          {
                            "type": "Field",
                            "id": "field_c7ffc",
                            "name": "CostType",
                            "Field": {
                              "fieldType": {
                                "type": "EnumerationType",
                                "EnumerationType": {
                                  "values": [
                                    {
                                      "value": "1",
                                      "label": []
                                    },
                                    {
                                      "value": "2",
                                      "label": []
                                    },
                                    {
                                      "value": "3",
                                      "label": []
                                    }
                                  ]
                                }
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "CostType"
                                },
                                {
                                  "locale": "de",
                                  "text": "CostType"
                                }
                              ]
                            }
                          },
                          {
                            "type": "Field",
                            "id": "field_60d60",
                            "name": "CostType_Global",
                            "Field": {
                              "fieldType": {
                                "type": "EnumerationType",
                                "EnumerationType": {
                                  "values": [
                                    {
                                      "value": "1",
                                      "label": []
                                    },
                                    {
                                      "value": "2",
                                      "label": []
                                    },
                                    {
                                      "value": "3",
                                      "label": []
                                    }
                                  ]
                                }
                              },
                              "label": [
                                {
                                  "locale": "en",
                                  "text": "CostType_Global"
                                },
                                {
                                  "locale": "de",
                                  "text": "CostType_Global"
                                }
                              ],
                              "global": true
                            }
                          },
                          {
                            "type": "Computation",
                            "id": "computation_73e98",
                            "name": "CostType_GlobalComp",
                            "Computation": {
                              "computedFieldRelPath": "../CostType_Global",
                              "computationAlternatives": [
                                {
                                  "precondition": "FieldFilled(CostType)",
                                  "operation": "[CostType]"
                                }
                              ],
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "error text for computation of CostType_GlobalComp"
                                },
                                {
                                  "locale": "de",
                                  "text": "error text for computation of CostType_GlobalComp"
                                }
                              ]
                            }
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_c0994",
                      "name": "R1",
                      "Rule": {
                        "errorEntityRelPath": "../Receipt/CostType",
                        "errorCode": "Error rule_c0994",
                        "errorCondition": "FieldFilled(Receipt/CostType) And\r\nNoFieldValueIncludedInValueList(Receipt/CostType in ../ReceiptList/ApprovedCostTypes*/CostType)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "R1"
                          },
                          {
                            "locale": "de",
                            "text": "R1"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_4afa4",
                      "name": "R2",
                      "Rule": {
                        "errorEntityRelPath": "../Receipt/CostType_Global",
                        "errorCode": "Error rule_4afa4",
                        "errorCondition": "FieldFilled(Receipt/CostType_Global) And\r\nNoFieldValueIncludedInValueList(Receipt/CostType_Global in ../ReceiptList/ApprovedCostTypes*/CostType)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "R2"
                          },
                          {
                            "locale": "de",
                            "text": "R2"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_aa05e",
                      "name": "R3",
                      "Rule": {
                        "errorEntityRelPath": "../Receipt/CostType",
                        "errorCode": "Error rule_aa05e",
                        "errorCondition": "FieldFilled(Receipt/CostType) And\r\nNoFieldValueIncludedInValueList(Receipt/CostType in ../ReceiptList/ApprovedCostTypes*/CostType_Global)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "R3"
                          },
                          {
                            "locale": "de",
                            "text": "R3"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_6bdae",
                      "name": "ComputedConfirm",
                      "Field": {
                        "fieldType": {
                          "type": "ConfirmType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "ComputedConfirm"
                          },
                          {
                            "locale": "de",
                            "text": "ComputedConfirm"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_a8665",
                      "name": "ComputedConfirmComp",
                      "Computation": {
                        "computedFieldRelPath": "../ComputedConfirm",
                        "computationAlternatives": [
                          {
                            "precondition": "FieldFilled(Receipt/CostType) And\r\nNoFieldValueIncludedInValueList(Receipt/CostType in ../ReceiptList/ApprovedCostTypes*/CostType)",
                            "operation": "True"
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of ComputedConfirmComp"
                          },
                          {
                            "locale": "de",
                            "text": "error text for computation of ComputedConfirmComp"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_02559",
                      "name": "R4",
                      "Rule": {
                        "errorEntityRelPath": "../Receipt/CostType",
                        "errorCode": "Error rule_02559",
                        "errorCondition": "FieldFilled(Receipt/CostType) And\r\nFieldFilled(ComputedConfirm)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "R4"
                          },
                          {
                            "locale": "de",
                            "text": "R4"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}