[
    {
      "actionKey": "SAVE_GOODIES",
      "label": "submit",
      "type": "primary",
      "icon": "save",
      "apiKey": "SAVE_GOODIES",
      "permissions": [
        {
          "roles": ["ROLE_OPERATIONAL_MANGER", "ROLE_ADMIN", "ROLE_RELATIONAL_MANAGER", "ROLE_SHOBA"],
          "condition": {
            "operator": "AND",
            "conditions": [
              {"field": "hasGoodies", "operator": "EQUALS", "value": true},
              {"field": "approvalStatus", "operator": "EQUALS", "value": "approved"}
            ]
          }
        }
      ],
      "onSuccess": [
        {
          "roles": ["ROLE_OPERATIONAL_MANGER", "ROLE_ADMIN", "ROLE_RELATIONAL_MANAGER", "ROLE_SHOBA"],
          "showToast": false,
          "showSuccessScreen": true,
          "successScreenConfig": {
            "scenarios": [
              {
                "scenarioKey": "GOODIES_SELECTION_SAVED",
                "condition": {
                  "operator": "AND",
                  "conditions": [
                    {"field": "goodiesStatus", "operator": "EQUALS", "value": "completed"}
                  ]
                },
                "screen": {
                  "title": "Goodies Selection Saved!",
                  "message": "Dear infinitheist {{seekerName}},\n\nYour goodies selection for {{programName}} has been saved successfully.\n\nRegistration Number: {{registrationNumber}}\n\nYou're all set!",
                  "variant": "success",
                  "showLogo": true,
                  "showBanner": true,
                  "logoUrl": "{{logoUrl}}",
                  "bannerImageUrl": "{{bannerImageUrl}}",
                  "actions": [
                    {
                      "actionKey": "VIEW_SUMMARY",
                      "label": "summary",
                      "type": "secondary",
                      "apiKey": "VIEW_REGISTRATION_SUMMARY"
                    },
                    {
                      "actionKey": "HOME",
                      "label": "home",
                      "type": "secondary",
                      "apiKey": null
                    }
                  ]
                }
              }
            ],
            "defaultScreen": {
              "title": "Goodies Selection Saved!",
              "message": "Dear infinitheist {{seekerName}},\n\nYour goodies selection has been saved successfully.\n\nRegistration Number: {{registrationNumber}}",
              "variant": "success",
              "showLogo": true,
              "showBanner": true,
              "logoUrl": "{{logoUrl}}",
              "bannerImageUrl": "{{bannerImageUrl}}",
              "actions": [
                {
                  "actionKey": "HOME",
                  "label": "home",
                  "type": "secondary",
                  "apiKey": null
                }
              ]
            }
          }
        }
      ]
    }
  ]