{
  "header": {
    "id": "DomainProblemModel",
    "modelType": "document",
    "modelVersion": "27.1.0",
    "locales": [
      {
        "code": "en"
      }
    ],
    "labels": [],
    "annotations": [
      {
        "name": "roles",
        "value": "test"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "DomainProblemModel",
      "immutable": false
    },
    "modelConfig": {
      "timeZone": "UTC",
      "decimalSeparator": ".",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "typeDefinitions": [
      {
        "id": "typedef_0124ac88-a7a3-4957-9e03-d63731b7da52",
        "name": "InputSelectValues",
        "fieldType": {
          "type": "EnumerationType",
          "EnumerationType": {
            "values": [
              {
                "value": "Value1",
                "label": [
                  {
                    "locale": "en",
                    "text": "Value1"
                  }
                ]
              },
              {
                "value": "Value2",
                "label": [
                  {
                    "locale": "en",
                    "text": "Value2"
                  }
                ]
              }
            ],
            "categories": [
              {
                "name": "INPUT_TYPE",
                "values": [
                  "INPUT1",
                  "INPUT2"
                ],
                "description": ""
              }
            ],
            "alphabeticalSorting": true
          }
        }
      }
    ],
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "G7",
          "name": "Model",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "G8",
                "name": "RepeatModel",
                "Group": {
                  "repeatability": 5000,
                  "elements": [
                    {
                      "type": "Field",
                      "id": "field_belegeKArt",
                      "name": "ValueSelect",
                      "annotations": {
                        "pdf-column-header": "Ausgaben-/<br>Kostenposition"
                      },
                      "internalDescription": [
                        {
                          "locale": "en",
                          "text": "Zuordnung zur Kostenart des Belegs"
                        }
                      ],
                      "Field": {
                        "fieldType": {
                          "type": "TypeDefType",
                          "TypeDefType": {
                            "typeDefinitionId": "typedef_0124ac88-a7a3-4957-9e03-d63731b7da52"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Value Select"
                          }
                        ],
                        "required": true
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_322d9",
                      "name": "Input_Type",
                      "Field": {
                        "fieldType": {
                          "type": "EnumerationType",
                          "EnumerationType": {
                            "values": [
                              {
                                "value": "INPUT1",
                                "label": []
                              },
                              {
                                "value": "INPUT2",
                                "label": []
                              }
                            ],
                            "categories": []
                          }
                        }
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_19697",
                      "name": "Computation_InputType",
                      "Computation": {
                        "computedFieldId": "field_322d9",
                        "computationAlternatives": [
                          {
                            "operation": "[ValueSelect->INPUT_TYPE]",
                            "precondition": "FieldFilled(ValueSelect)"
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of Computation_InputType"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_de134",
                      "name": "Input_AlwaysVisible",
                      "Field": {
                        "fieldType": {
                          "type": "NumberType",
                          "NumberType": {
                            "minFractionalDigits": 2,
                            "maxFractionalDigits": 2,
                            "minValue": -999999999999.99,
                            "maxValue": 999999999999.99,
                            "trait": "amount"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Always visible"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_33bbf",
                      "name": "Input_Visible_INPUT1",
                      "Field": {
                        "fieldType": {
                          "type": "NumberType",
                          "NumberType": {
                            "minFractionalDigits": 2,
                            "maxFractionalDigits": 2,
                            "minValue": -999999999999.99,
                            "maxValue": 999999999999.99,
                            "trait": "amount"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Input 1"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_443e5",
                      "name": "Input_Visible_INPUT2",
                      "Field": {
                        "fieldType": {
                          "type": "NumberType",
                          "NumberType": {
                            "minFractionalDigits": 2,
                            "maxFractionalDigits": 2,
                            "minValue": -999999999999.99,
                            "maxValue": 999999999999.99,
                            "trait": "amount"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Input 2"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_c0a4a",
                      "name": "Value_Input1_Or_Input2",
                      "Field": {
                        "fieldType": {
                          "type": "NumberType",
                          "NumberType": {
                            "minFractionalDigits": 2,
                            "maxFractionalDigits": 2,
                            "minValue": -999999999999.99,
                            "maxValue": 999999999999.99,
                            "trait": "amount"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Value Input 1 or 2"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_7f4be",
                      "name": "Computation_Value_Input1_Or_Input2",
                      "Computation": {
                        "computedFieldId": "field_c0a4a",
                        "computationAlternatives": [
                          {
                            "precondition": "FieldFilled(Input_Visible_INPUT1)",
                            "operation": "[Input_Visible_INPUT1]"
                          },
                          {
                            "precondition": "FieldFilled(Input_Visible_INPUT2)",
                            "operation": "[Input_Visible_INPUT2]"
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of Computation_Value_Input1_Or_Input2"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Field",
                      "id": "field_7089e",
                      "name": "Value_AlwaysVisible",
                      "Field": {
                        "fieldType": {
                          "type": "NumberType",
                          "NumberType": {
                            "minFractionalDigits": 2,
                            "maxFractionalDigits": 2,
                            "minValue": -999999999999.99,
                            "maxValue": 999999999999.99,
                            "trait": "amount"
                          }
                        },
                        "label": [
                          {
                            "locale": "en",
                            "text": "Always Visible"
                          }
                        ]
                      }
                    },
                    {
                      "type": "Computation",
                      "id": "computation_3cffd",
                      "name": "Computation_AlwaysVisible",
                      "Computation": {
                        "computedFieldId": "field_7089e",
                        "computationAlternatives": [
                          {
                            "precondition": "FieldFilled(Input_AlwaysVisible)",
                            "operation": "[Input_AlwaysVisible]"
                          }
                        ],
                        "errorMessage": [
                          {
                            "locale": "en",
                            "text": "error text for computation of Computation_AlwaysVisible"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}