{
  "header": {
    "id": "CompRuleReferencesOwnPath_DM",
    "modelType": "document",
    "modelVersion": "28.2.0",
    "locales": [
      {
        "code": "en"
      },
      {
        "code": "de"
      }
    ],
    "annotations": [
      {
        "name": "roles",
        "value": "tester,reviewer"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "CompRuleReferencesOwnPath_DM",
      "immutable": false
    },
    "modelConfig": {
      "decimalSeparator": ".",
      "timeZone": "UTC",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_14f04",
          "name": "CompRuleReferencesOwnPath",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "group_fc4e0",
                "name": "MyGroup",
                "Group": {
                  "repeatability": 10,
                  "elements": [
                    {
                      "type": "Field",
                      "id": "field_56358",
                      "name": "VALUE",
                      "Field": {
                        "fieldType": {
                          "type": "EnumerationType",
                          "EnumerationType": {
                            "values": [
                              {
                                "value": "unused",
                                "label": []
                              },
                              {
                                "value": "v1",
                                "label": []
                              },
                              {
                                "value": "v2",
                                "label": []
                              },
                              {
                                "value": "v3",
                                "label": []
                              }
                            ]
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "VALUE"
                          },
                          {
                            "locale": "de",
                            "text": "VALUE"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_899b1",
                      "name": "NAME",
                      "Field": {
                        "fieldType": {
                          "type": "StringType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "NAME"
                          },
                          {
                            "locale": "de",
                            "text": "NAME"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_58cdf",
                      "name": "EXCLUDE",
                      "Field": {
                        "fieldType": {
                          "type": "StringType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "EXCLUDE"
                          },
                          {
                            "locale": "de",
                            "text": "EXCLUDE"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_1c719",
                      "name": "VALUE_TRIGGER",
                      "Field": {
                        "fieldType": {
                          "type": "BooleanType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "VALUE_TRIGGER"
                          },
                          {
                            "locale": "de",
                            "text": "VALUE_TRIGGER"
                          }
                        ],
                        "transient": true
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_e7530",
                      "name": "VALUE_TRIGGERComp",
                      "Computation": {
                        "computedFieldRelPath": "../VALUE_TRIGGER",
                        "computationAlternatives": [
                          {
                            "operation": "True",
                            "precondition": "(FieldValueIncludedInValueList(VALUE, \"v1\", \"v2\", \"v3\")\r\nAnd AtLeastOneFieldValueIncludedInValueList(../MyGroup*/VALUE Having [EXCLUDE]\r\n    == [$NAME]\r\n    And CurrentRepetition(RuleGroup) != CurrentRepetition($RuleGroup) In \"v1\", \"v2\", \"v3\"))\r\nOR [VALUE] == \"unused\""
                          },
                          {
                            "operation": "False",
                            "precondition": "NoFieldValueIncludedInValueList(../MyGroup*/VALUE Having [EXCLUDE] == [$NAME]\r\n    And CurrentRepetition(RuleGroup) != CurrentRepetition($RuleGroup) In \"v1\", \"v2\", \"v3\")\r\nAnd [VALUE] != \"unused\""
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of VALUE_TRIGGERComp"
                          },
                          {
                            "locale": "de",
                            "text": "error text for computation of VALUE_TRIGGERComp"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_a3504",
                      "name": "VALUE_COPY",
                      "Field": {
                        "fieldType": {
                          "type": "EnumerationType",
                          "EnumerationType": {
                            "values": [
                              {
                                "value": "unused",
                                "label": []
                              },
                              {
                                "value": "v1",
                                "label": []
                              },
                              {
                                "value": "v2",
                                "label": []
                              },
                              {
                                "value": "v3",
                                "label": []
                              }
                            ]
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "VALUE_COPY"
                          },
                          {
                            "locale": "de",
                            "text": "VALUE_COPY"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_64d95",
                      "name": "VALUE_COPYComp",
                      "Computation": {
                        "computedFieldRelPath": "../VALUE_COPY",
                        "computationAlternatives": [
                          {
                            "operation": "\"unused\"",
                            "precondition": "AtLeastOneFieldValueIncludedInValueList(../MyGroup*/VALUE Having [EXCLUDE] == [$NAME]\r\n    And CurrentRepetition(RuleGroup) != CurrentRepetition($RuleGroup) In \"v1\", \"v2\", \"v3\")\r\nOr [VALUE] == \"unused\""
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of VALUE_COPYComp"
                          },
                          {
                            "locale": "de",
                            "text": "error text for computation of VALUE_COPYComp"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_ce188",
                      "name": "MANUAL_TRIGGER",
                      "Field": {
                        "fieldType": {
                          "type": "ConfirmType"
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "MANUAL_TRIGGER"
                          },
                          {
                            "locale": "de",
                            "text": "MANUAL_TRIGGER"
                          }
                        ],
                        "transient": true
                      }
                    },
                    {
                      "type": "Rule",
                      "id": "rule_ee58c",
                      "name": "MANUAL_TRIGGER_IS_SET",
                      "Rule": {
                        "errorEntityRelPath": "../MANUAL_TRIGGER",
                        "errorCode": "Error rule_ee58c",
                        "errorCondition": "GroupFilled(RuleGroup)\nAnd FieldValueIncludedInValueList(VALUE, \"v1\", \"v2\", \"v3\")\nAnd AtLeastOneFieldValueIncludedInValueList(../MyGroup*/VALUE Having [EXCLUDE]\n    == [$NAME]\n    And CurrentRepetition(RuleGroup) != CurrentRepetition($RuleGroup) In \"v1\", \"v2\", \"v3\")\nAnd FieldNotFilled(MANUAL_TRIGGER)",
                        "severity": "ERROR",
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "Please set the Manual Trigger"
                          },
                          {
                            "locale": "de",
                            "text": "Please set the Manual Trigger"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}