{
  "eventsAndFunctions": [
    {
      "algorithm": {
        "parameters": [],
        "statements": [
          {
            "command": "ReadModel",
            "modelVariableName": "goalPartial",
            "variableName": "goalPartial"
          },
          {
            "command": "ReadModel",
            "modelVariableName": "planId",
            "variableName": "planId"
          },
          {
            "command": "ReadModel",
            "modelVariableName": "goalId",
            "variableName": "goalId"
          },
          {
            "command": "ReadModel",
            "modelVariableName": "mainGoalId",
            "variableName": "mainGoalId"
          },
          {
            "children": [
              {
                "command": "Set",
                "expression": "{}",
                "variableName": "goalPartialEdition"
              },
              {
                "command": "GetValue",
                "variableName": "goalPartialEdition.description",
                "widgetName": "txtDescription"
              },
              {
                "command": "GetValue",
                "variableName": "goalPartialEdition.fixedAmount",
                "widgetName": "txtAmount"
              },
              {
                "command": "GetValue",
                "variableName": "goalPartialEdition.percentageAmount",
                "widgetName": "txtPercentageAmount"
              },
              {
                "command": "Execute",
                "expression": "ExtStrategicPlanMng.PlanGoalPartialUpdate(^planId, ^mainGoalId, ^goalId, ^goalPartial.id, ^goalPartialEdition)"
              }
            ],
            "command": "If",
            "expression": "IsNotNull(^goalPartial.id)"
          }
        ],
        "typeReturn": "any",
        "variables": [
          {
            "name": "goalPartial",
            "type": "ExtStrategicPlanMng.GoalPartial"
          },
          {
            "name": "goalPartialEdition",
            "type": "ExtStrategicPlanMng.GoalPartialEdition"
          },
          {
            "name": "planId",
            "type": "string"
          },
          {
            "name": "goalId",
            "type": "string"
          },
          {
            "name": "mainGoalId",
            "type": "string"
          }
        ]
      },
      "name": "main_submit"
    }
  ],
  "model": [
    {
      "name": "goalPartial",
      "required": false,
      "type": "ExtStrategicPlanMng.GoalPartial"
    },
    {
      "name": "planId",
      "required": false,
      "type": "string"
    },
    {
      "name": "goalId",
      "required": false,
      "type": "string"
    },
    {
      "name": "mainGoalId",
      "required": false,
      "type": "string"
    }
  ],
  "root": {
    "children": [
      {
        "children": [
          {
            "binding": "goalPartial.description",
            "label": "[[Description]]",
            "last": true,
            "name": "txtDescription",
            "size": 2,
            "widget": "TextArea"
          },
          {
            "allowDecimals": true,
            "binding": "goalPartial.fixedAmount",
            "label": "[[Amout]]",
            "name": "txtAmount",
            "widget": "NumericBox"
          },
          {
            "allowDecimals": true,
            "binding": "goalPartial.percentageAmount",
            "label": "[[PercentageAmount]]",
            "name": "txtPercentageAmount",
            "widget": "NumericBox"
          }
        ],
        "layout": "form"
      }
    ],
    "layout": "responsive"
  },
  "routing": null,
  "unused": []
}