//Comments and unnecessary optional parameters need to be removed before saving the Json editor
//For general system archiving configuration, delete the workflowSpaceId parameter
{
  "operation": "archive", // expected values: archive/delete
  "filters": [
    {
      "name": "ExampleName",
      "workflowPopulationFilter": { //optional
        "workflowSpaceId": "b4fa1ddf-6f7d-4a43-a752-a97c39832439", // optional GUID,
        "variables": [ // optional
          {
            "name": "Varname",
            "parameterName": "OK", // optional - by default has the same value as name
            "dbType": "String", // values from DbType enum
            "value": "ParamValue",
            "comparisonOperator": "eq", // expected values: eq/gt/lt/gte/lte/isnull/isnotnull
            "logicalOperator": "" // expected values: and/or/none
          }
        ],
        "childWorkflowSpaceIdsToExclude": ["182b2d2b-ebb2-45c2-a94f-ab276912c22a"], // optional GUID array
        "completedAfter": "", // date. optional
        "olderThan": {
          "amount": 1, // integer
          "timeUnit": "d" // expected values: d/m/y
        },
        "ignoreOpenChildren": false, // optional - false by default
        "archiveAsStandAlone": false // optional - false by default
      },
      "tablesToExclude": [ // optional
        {
          "name": "UACT5a40fb9e1ede4dd4b3baf0465b69f819",
          "schema": "dbo"
        }
      ],
      "tablesToInclude": [ // optional
        {
          "name": "EXT_LTR_WorkflowDemo",
          "schema": "dbo"
        }
      ],
      "enabled": true, // optional  - true by default
      "simulationMode": false, // optional - false by default
      "moveFilesToFilesArchiveStorage": true // optional - true by default, when true the actual files (blobs) are moved to the archive file storage, otherwise the actual files are left on the current file storage
    }
  ]
}