{
  "metadata": {
    "name": "@itentialopensource/servicenow-schedule-automation-using-change-request",
    "version": "0.2.5-2021.2.2",
    "description": "Allows you to dynamically schedule an Automation Catalog item to start an Automation at the scheduled Start Date of a ServiceNow Change Request.",
    "license": "Apache-2.0",
    "repository": {
      "type": "gitlab",
      "hostname": "gitlab.com",
      "path": "itentialopensource/pre-built-automations"
    },
    "keywords": [
      "Itential",
      "IAP",
      "App-Artifacts",
      "artifacts",
      "ServiceNow",
      "Automation Catalog",
      "Change Request",
      "Scheduling",
      "Schedule",
      "Change Window"
    ],
    "author": "Itential Artifacts",
    "IAPDependencies": {
      "@itential/app-automation_catalog": "2.4.2",
      "@itential/app-operations_manager": "",
      "@itential/app-json_forms": "1.13.0",
      "@itential/app-workflow_engine": "6.7.10",
      "@itential/app-template_builder": "2.3.6",
      "@itentialopensource/adapter-servicenow": "2.2.0"
    },
    "gitlabId": 18440776
  },
  "manifest": {
    "bundleName": "ServiceNow Schedule Automation Using Change Request",
    "fingerprint": "5ea6f925778a7c0c373bd1c8",
    "createdEpoch": "1588001061957",
    "artifacts": [
      {
        "id": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "type": "automation",
        "location": "/bundles/automations/ServiceNow Schedule Automation Catalog Item At Start Date.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Schedule Automation Catalog Item At Start Date - Automation Catalog",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date - Automation Catalog",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Schedule Automation Catalog Item At Start Date - Automation Catalog.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Schedule Automation Catalog Item At Start Date.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Schedule Automation Catalog Item At Start Date - Schedule Automation Catalog Item",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date - Schedule Automation Catalog Item",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Schedule Automation Catalog Item At Start Date - Schedule Automation Catalog Item.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Schedule Automation Catalog Item At Start Date form",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date form",
        "type": "json-forms",
        "location": "/bundles/json_forms/ServiceNow Schedule Automation Catalog Item At Start Date form.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Schedule Automation - Workflow Error Email",
        "name": "ServiceNow Schedule Automation - Workflow Error Email",
        "type": "template",
        "location": "/bundles/templates/ServiceNow Schedule Automation - Workflow Error Email.json",
        "properties": {
          "entryPoint": false
        }
      }
    ]
  },
  "bundles": [
    {
      "type": "automation",
      "data": {
        "_id": "61b25a613c220d01ae7f125c",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "description": "",
        "componentName": "ServiceNow Schedule Automation Catalog Item At Start Date - Automation Catalog",
        "componentType": "workflows",
        "gbac": {
          "write": [],
          "read": []
        },
        "created": "2021-12-09T19:34:57.288Z",
        "createdBy": "clarisa.colton@itential.com",
        "lastUpdated": "2021-12-09T19:35:05.633Z",
        "lastUpdatedBy": "clarisa.colton@itential.com",
        "triggers": [
          {
            "_id": "61b25a613c220d01ae7f125d",
            "created": "2021-12-09T19:34:57.616Z",
            "createdBy": "clarisa.colton@itential.com",
            "lastUpdated": "2021-12-09T19:34:57.616Z",
            "lastUpdatedBy": "clarisa.colton@itential.com",
            "name": "Manual Trigger (migrated from ServiceNow Schedule Automation Catalog Item At Start Date)",
            "type": "manual",
            "enabled": true,
            "actionType": "automations",
            "actionId": "61b25a613c220d01ae7f125c",
            "formId": "ServiceNow Schedule Automation Catalog Item At Start Date form",
            "formData": {
              "changeNumber": "CHG0000001",
              "workflowId": "c8dcc6cb-1148-4d8d-95ca-fe84f384b435",
              "formId": "5e99211a646ef3396401b2b5"
            },
            "migrationVersion": 1
          }
        ]
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date - Automation Catalog",
        "tasks": {
          "4728": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query formId",
            "description": "Query formId",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "formId",
                "obj": "$var.job.formData"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 0.41364421416234887,
            "y": 0.5006180469715699,
            "scheduled": false
          },
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0.18911917098445596,
            "y": 0.580964153275649
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 1.3013816925734025,
            "y": 0.5859085290482077
          },
          "8de8": {
            "name": "childJob",
            "summary": "Create Scheduled Automation Catalog Item",
            "description": "Create Scheduled Automation Catalog Item",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "task": "",
                "workflow": "ServiceNow Schedule Automation Catalog Item At Start Date",
                "variables": {
                  "changeNumber": {
                    "variable": "",
                    "task": "467b",
                    "value": "return_data"
                  },
                  "workflowId": {
                    "variable": "",
                    "task": "cc18",
                    "value": "return_data"
                  },
                  "formId": {
                    "variable": "",
                    "task": "4728",
                    "value": "return_data"
                  },
                  "initiator": {
                    "variable": "",
                    "task": "job",
                    "value": "initiator"
                  },
                  "_id": {
                    "variable": "",
                    "task": "job",
                    "value": "_id"
                  }
                }
              },
              "outgoing": {
                "job_details": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "name",
                "highlightString": "<span class='highlight-string'>child</span>Job"
              },
              {
                "key": "summary",
                "highlightString": "Run <span class='highlight-string'>Child</span> Job"
              },
              {
                "key": "description",
                "highlightString": "Run a <span class='highlight-string'>child</span> Job inside a Workflow"
              }
            ],
            "groups": [],
            "actor": "job",
            "x": 0.6200345423143351,
            "y": 0.5859085290482077
          },
          "f362": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query taskError from childJob and assign it to the job variable taskError",
            "description": "Query taskError from childJob and assign it to the job variable taskError",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "taskError",
                "obj": "$var.8de8.job_details"
              },
              "outgoing": {
                "return_data": "$var.job.taskError"
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 0.8894645941278065,
            "y": 0.7700865265760197,
            "scheduled": false
          },
          "9db0": {
            "name": "evaluation",
            "canvasName": "evaluation",
            "summary": "Check if taskError is empty",
            "description": "Check if taskError is empty",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "all_true_flag": false,
                "evaluation_groups": [
                  {
                    "all_true_flag": false,
                    "evaluations": [
                      {
                        "query": "taskError",
                        "operand_1": {
                          "variable": "job_details",
                          "task": "8de8"
                        },
                        "operator": "==",
                        "operand_2": {
                          "variable": "",
                          "task": "static"
                        }
                      }
                    ]
                  }
                ]
              },
              "outgoing": {
                "return_value": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>eval</span>uation"
              },
              {
                "key": "summary",
                "highlightString": "Run <span class='highlight-string'>Eval</span>uation Task"
              },
              {
                "key": "description",
                "highlightString": "Run an <span class='highlight-string'>eval</span>uation"
              }
            ],
            "groups": [],
            "x": 0.8169257340241797,
            "y": 0.5784919653893696
          },
          "613a": {
            "name": "renderJinjaTemplate",
            "canvasName": "renderJinjaTemplate",
            "summary": "Render Jinja Template for \"ServiceNow Schedule Automation - Workflow Error Email\"",
            "description": "Render Jinja Template for \"ServiceNow Schedule Automation - Workflow Error Email\"",
            "location": "Application",
            "locationType": null,
            "app": "TemplateBuilder",
            "displayName": "TemplateBuilder",
            "type": "automatic",
            "variables": {
              "incoming": {
                "name": "ServiceNow Schedule Automation - Workflow Error Email",
                "context": "$var.fe6a.merged_object"
              },
              "outgoing": {
                "renderedTemplate": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>render</span>JinjaTemplate"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Render</span> Jinja Template"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Render</span>s jinja template output."
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.3082901554404145,
            "y": 1.061804697156984,
            "scheduled": false
          },
          "9da6": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query renderedTemplate",
            "description": "Query renderedTemplate",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "renderedTemplate",
                "obj": "$var.613a.renderedTemplate"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.3013816925734025,
            "y": 0.9134734239802225,
            "scheduled": false
          },
          "fe6a": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Context for render jinja template task",
            "description": "Context for render jinja template task",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "taskError",
                    "value": {
                      "task": "job",
                      "variable": "taskError"
                    }
                  },
                  {
                    "key": "id",
                    "value": {
                      "task": "job",
                      "variable": "_id",
                      "editable": false
                    }
                  },
                  {
                    "key": "inputData",
                    "value": {
                      "task": "job",
                      "variable": "formData"
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 1.1614853195164077,
            "y": 1.0704573547589618
          },
          "a5db": {
            "name": "newVariable",
            "canvasName": "newVariable",
            "summary": "Create a Job Variable",
            "description": "Create a new Job variable by Job ID and assign it a value.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "name": "taskError",
                "value": ""
              },
              "outgoing": {
                "value": null
              }
            },
            "deprecated": false,
            "matched": [],
            "groups": [],
            "x": 0.30483592400690845,
            "y": 0.588380716934487
          },
          "e702": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Failure message placeholder, this can be an email task",
            "description": "Failure message placeholder, this can be an email task",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "success",
                "delay": "",
                "response": "$var.9da6.return_data"
              },
              "outgoing": {
                "response": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.2996545768566494,
            "y": 0.761433868974042,
            "scheduled": false
          },
          "467b": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query changeNumber",
            "description": "Query changeNumber",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "changeNumber",
                "obj": "$var.job.formData"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 0.4075993091537133,
            "y": 0.6996291718170581,
            "scheduled": false
          },
          "cc18": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query workflowId",
            "description": "Query workflowId",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "workflowId",
                "obj": "$var.job.formData"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 0.40932642487046633,
            "y": 0.6019777503090235,
            "scheduled": false
          }
        },
        "transitions": {
          "4728": {
            "8de8": {
              "type": "standard",
              "state": "success"
            }
          },
          "5513": {},
          "workflow_start": {
            "a5db": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_end": {},
          "8de8": {
            "9db0": {
              "type": "standard",
              "state": "success"
            }
          },
          "f362": {
            "fe6a": {
              "type": "standard",
              "state": "success"
            }
          },
          "9db0": {
            "f362": {
              "type": "standard",
              "state": "failure"
            },
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "613a": {
            "9da6": {
              "type": "standard",
              "state": "success"
            }
          },
          "9da6": {
            "e702": {
              "type": "standard",
              "state": "success"
            }
          },
          "fe6a": {
            "613a": {
              "type": "standard",
              "state": "success"
            }
          },
          "a5db": {
            "4728": {
              "type": "standard",
              "state": "success"
            },
            "cc18": {
              "type": "standard",
              "state": "success"
            },
            "467b": {
              "type": "standard",
              "state": "success"
            }
          },
          "e702": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "467b": {
            "8de8": {
              "type": "standard",
              "state": "success"
            }
          },
          "cc18": {
            "8de8": {
              "type": "standard",
              "state": "success"
            }
          }
        },
        "font_size": 12,
        "created": "2020-04-10T20:01:23.598Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": "",
          "groups": [
            "admin",
            "pronghorn_admin"
          ]
        },
        "createdVersion": "5.5.9-2019.3.14.0",
        "groups": [],
        "last_updated": "2020-04-17T03:20:30.729Z",
        "last_updated_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": "",
          "groups": [
            "admin",
            "pronghorn_admin"
          ]
        },
        "lastUpdatedVersion": "5.5.9-2019.3.14.0",
        "type": "automation",
        "description": null,
        "tags": []
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date",
        "tasks": {
          "5614": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not get start_date from response.",
            "description": "Could not get start_date from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not get start_date from response."
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.3989637305699483,
            "y": 0.7466007416563659,
            "scheduled": false
          },
          "9509": {
            "name": "makeData",
            "canvasName": "makeData",
            "summary": "Format Automation Catalog Name",
            "description": "Format Automation Catalog Name",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "input": "Automatically Scheduled Change #<!number!>",
                "outputType": "string",
                "variables": "$var.42d6.return_data"
              },
              "outgoing": {
                "output": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>make</span>Data"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Make</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Make</span> Data"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.5500863557858378,
            "y": 0.546353522867738,
            "scheduled": false
          },
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0.44559585492227977,
            "y": 0.546353522867738
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 1.4291882556131261,
            "y": 1.0865265760197775
          },
          "e6a6": {
            "name": "newVariable",
            "canvasName": "newVariable",
            "summary": "Create a Job Variable",
            "description": "Create a new Job variable by Job ID and assign it a value.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "name": "taskError",
                "value": ""
              },
              "outgoing": {
                "value": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "new<span class='highlight-string'>Varia</span>ble"
              },
              {
                "key": "summary",
                "highlightString": "Create a Job <span class='highlight-string'>Varia</span>ble"
              },
              {
                "key": "description",
                "highlightString": "Create a new Job <span class='highlight-string'>varia</span>ble by Job ID and assign it a value."
              }
            ],
            "groups": [],
            "x": 0.5509499136442142,
            "y": 0.5401730531520396
          },
          "f4c1": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query change number from response",
            "description": "Query change number from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "number",
                "obj": "$var.42d6.return_data"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>quer</span>y"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.197754749568221,
            "y": 0.5426452410383189,
            "scheduled": false
          },
          "8d9a": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not query change number from response.",
            "description": "Could not query change number from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not query change number from response."
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.2037996545768566,
            "y": 0.7466007416563659,
            "scheduled": false
          },
          "31e5": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Merge error data",
            "description": "Merge error data",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "taskError",
                    "value": {
                      "task": "job",
                      "variable": "taskError"
                    }
                  },
                  {
                    "key": "id",
                    "value": {
                      "task": "job",
                      "variable": "_id"
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 1.0587219343696028,
            "y": 1.0889987639060568
          },
          "888c": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Filter for querying change",
            "description": "Filter for querying change",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "number",
                    "value": {
                      "task": "job",
                      "variable": "changeNumber",
                      "editable": true
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 0.655440414507772,
            "y": 0.5451174289245982
          },
          "d1e0": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query start date from response",
            "description": "Query start date from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "start_date",
                "obj": "$var.42d6.return_data"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>quer</span>y"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.3946459412780656,
            "y": 0.5426452410383189,
            "scheduled": false
          },
          "42d6": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query first item from response",
            "description": "Query first item from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "response[0]",
                "obj": "$var.a624.result"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>quer</span>y"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.0112262521588946,
            "y": 0.5426452410383189,
            "scheduled": false
          },
          "5cf9": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not get change information from response.",
            "description": "Could not get change information from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not get change information from response."
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.0094991364421417,
            "y": 0.7404202719406675,
            "scheduled": false
          },
          "fc42": {
            "name": "childJob",
            "canvasName": "childJob",
            "summary": "Run Child Job",
            "description": "Run a child Job inside a Workflow",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "task": "",
                "workflow": "ServiceNow Schedule Automation Catalog Item At Start Date - Schedule Automation Catalog Item",
                "variables": {
                  "nextRunAt": {
                    "variable": "",
                    "task": "d1e0",
                    "value": "return_data"
                  },
                  "automationCatalogName": {
                    "variable": "",
                    "task": "9509",
                    "value": "output"
                  },
                  "description": {
                    "variable": "",
                    "task": "9509",
                    "value": "output"
                  },
                  "formData": {
                    "variable": "",
                    "task": "6e19",
                    "value": "merged_object"
                  },
                  "workflowId": {
                    "variable": "",
                    "task": "job",
                    "value": "workflowId",
                    "editable": true
                  },
                  "formId": {
                    "variable": "",
                    "task": "job",
                    "editable": true,
                    "value": "formId"
                  },
                  "initiator": {
                    "variable": "",
                    "task": "job",
                    "value": "initiator"
                  },
                  "_id": {
                    "variable": "",
                    "task": "job",
                    "value": "_id"
                  }
                }
              },
              "outgoing": {
                "job_details": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>child</span>Job"
              },
              {
                "key": "summary",
                "highlightString": "Run <span class='highlight-string'>Child</span> Job"
              },
              {
                "key": "description",
                "highlightString": "Run a <span class='highlight-string'>child</span> Job inside a Workflow"
              }
            ],
            "groups": [],
            "actor": "job",
            "x": 2.1407599309153715,
            "y": 0.5574783683559951
          },
          "8a5a": {
            "name": "evaluation",
            "canvasName": "evaluation",
            "summary": "Check if taskError is empty",
            "description": "Check if taskError is empty",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "all_true_flag": false,
                "evaluation_groups": [
                  {
                    "all_true_flag": false,
                    "evaluations": [
                      {
                        "query": "taskError",
                        "operand_1": {
                          "variable": "job_details",
                          "task": "fc42"
                        },
                        "operator": "==",
                        "operand_2": {
                          "variable": "",
                          "task": "static"
                        }
                      }
                    ]
                  }
                ]
              },
              "outgoing": {
                "return_value": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>eval</span>uation"
              },
              {
                "key": "summary",
                "highlightString": "Run <span class='highlight-string'>Eval</span>uation Task"
              },
              {
                "key": "description",
                "highlightString": "Run an <span class='highlight-string'>eval</span>uation"
              }
            ],
            "groups": [],
            "x": 2.139896373056995,
            "y": 0.9085290482076638
          },
          "a3a4": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query taskError",
            "description": "Query taskError",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "taskError",
                "obj": "$var.fc42.job_details"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.436096718480138,
            "y": 0.9357231149567367,
            "scheduled": false
          },
          "b8da": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not schedule job",
            "description": "Could not schedule job",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "$var.a3a4.return_data"
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.3316062176165804,
            "y": 0.9320148331273177,
            "scheduled": false
          },
          "6e19": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Scheduled Form Data",
            "description": "Scheduled Form Data",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "cmdbCi",
                    "value": {
                      "task": "bbc8",
                      "variable": "return_data"
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 1.8126079447322971,
            "y": 0.5562422744128553
          },
          "bbc8": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query cmdb_ci from response",
            "description": "Query cmdb_ci from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": ":get(cmdb_ci)",
                "obj": "$var.42d6.return_data"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>quer</span>y"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 1.7124352331606219,
            "y": 0.553770086526576,
            "scheduled": false
          },
          "d23b": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not get cmdb_ci from response.",
            "description": "Could not get cmdb_ci from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not get cmdb_ci from response."
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 1.677029360967185,
            "y": 0.7552533992583437,
            "scheduled": false
          },
          "a624": {
            "name": "queryTableByNameWithLimit",
            "canvasName": "queryTableByNameWithLimit",
            "summary": "Retrieves a limited number of records in the table",
            "description": "Retrieves a limited number of records in the table",
            "location": "Adapter",
            "locationType": "Servicenow",
            "app": "Servicenow",
            "type": "automatic",
            "displayName": "Servicenow",
            "variables": {
              "incoming": {
                "tableName": "change_request",
                "sysparmQueryKeyValuePairs": "$var.888c.merged_object",
                "sysparmQueryString": "",
                "sysparmLimit": "",
                "sysparmFields": "sys_id,cmdb_ci,start_date,number",
                "adapter_id": "servicenow"
              },
              "outgoing": {
                "result": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>queryTable</span>ByNameWithLimit"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.8350604490500864,
            "y": 0.546353522867738,
            "scheduled": false
          }
        },
        "transitions": {
          "5614": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "9509": {
            "bbc8": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_start": {
            "e6a6": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_end": {},
          "e6a6": {
            "888c": {
              "type": "standard",
              "state": "success"
            }
          },
          "f4c1": {
            "8d9a": {
              "type": "standard",
              "state": "failure"
            },
            "d1e0": {
              "type": "standard",
              "state": "success"
            }
          },
          "8d9a": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "31e5": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "f7b6": {},
          "888c": {
            "a624": {
              "type": "standard",
              "state": "success"
            }
          },
          "d1e0": {
            "5614": {
              "type": "standard",
              "state": "failure"
            },
            "9509": {
              "type": "standard",
              "state": "success"
            }
          },
          "42d6": {
            "f4c1": {
              "type": "standard",
              "state": "success"
            },
            "5cf9": {
              "type": "standard",
              "state": "failure"
            }
          },
          "5cf9": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "fc42": {
            "8a5a": {
              "type": "standard",
              "state": "success"
            }
          },
          "8a5a": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            },
            "a3a4": {
              "type": "standard",
              "state": "failure"
            }
          },
          "a3a4": {
            "b8da": {
              "type": "standard",
              "state": "success"
            }
          },
          "b8da": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "6e19": {
            "fc42": {
              "type": "standard",
              "state": "success"
            }
          },
          "bbc8": {
            "6e19": {
              "type": "standard",
              "state": "success"
            },
            "d23b": {
              "type": "standard",
              "state": "failure"
            }
          },
          "d23b": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "a624": {
            "42d6": {
              "type": "standard",
              "state": "success"
            },
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          }
        },
        "font_size": 12,
        "created": "2020-04-10T19:42:02.204Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": ""
        },
        "createdVersion": "5.5.9-2019.3.14.0",
        "groups": [],
        "last_updated": "2020-05-28T21:30:12.518Z",
        "last_updated_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": ""
        },
        "lastUpdatedVersion": "5.10.4-2020.1.3.0",
        "type": "automation",
        "description": null,
        "tags": []
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date - Schedule Automation Catalog Item",
        "tasks": {
          "1082": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Automation Catalog workflow ID and data",
            "description": "Automation Catalog workflow ID and data",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "workflowId",
                    "value": {
                      "task": "job",
                      "variable": "workflowId",
                      "editable": true
                    }
                  },
                  {
                    "key": "description",
                    "value": {
                      "task": "job",
                      "variable": "description"
                    }
                  },
                  {
                    "key": "formData",
                    "value": {
                      "task": "8535",
                      "variable": "object"
                    }
                  },
                  {
                    "key": "formId",
                    "value": {
                      "task": "job",
                      "variable": "formId",
                      "editable": true
                    }
                  },
                  {
                    "key": "gbac",
                    "value": {
                      "task": "static",
                      "variable": {
                        "write": [],
                        "read": []
                      }
                    }
                  },
                  {
                    "key": "initiator",
                    "value": {
                      "task": "job",
                      "variable": "initiator"
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 0.6385826771653543,
            "y": 0.5130674002751031
          },
          "6810": {
            "name": "newVariable",
            "canvasName": "newVariable",
            "summary": "Create a Job Variable",
            "description": "Create a new Job variable by Job ID and assign it a value.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "name": "taskError",
                "value": ""
              },
              "outgoing": {
                "value": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "new<span class='highlight-string'>Variable</span>"
              },
              {
                "key": "summary",
                "highlightString": "Create a Job <span class='highlight-string'>Variable</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a new Job <span class='highlight-string'>variable</span> by Job ID and assign it a value."
              }
            ],
            "groups": [],
            "x": 0.09685039370078741,
            "y": 0.49793672627235214
          },
          "8535": {
            "name": "setObjectKey",
            "canvasName": "setObjectKey",
            "summary": "Add automationCatalogId to formData",
            "description": "Add automationCatalogId to formData",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Object",
            "variables": {
              "incoming": {
                "obj": "$var.job.formData",
                "path": [
                  "automationCatalogId"
                ],
                "value": "$var.c179.return_data"
              },
              "outgoing": {
                "object": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>setObjec</span>tKey"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.5362204724409448,
            "y": 0.5048143053645117,
            "scheduled": false
          },
          "9845": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Failed to query Automation Catalog ID",
            "description": "Failed to query Automation Catalog ID",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Failed to query Automation Catalog ID"
              },
              "outgoing": {
                "response": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.42440944881889764,
            "y": 0.6918844566712518,
            "scheduled": false
          },
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0,
            "y": 0.5
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 1.1212598425196851,
            "y": 0.4594222833562586
          },
          "2e5f": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Scheduling object (nextRunAt)",
            "description": "Scheduling object (nextRunAt)",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "nextRunAt",
                    "value": {
                      "task": "job",
                      "variable": "nextRunAt",
                      "editable": true
                    }
                  },
                  {
                    "key": "disabled",
                    "value": {
                      "task": "static",
                      "variable": false
                    }
                  }
                ]
              },
              "outgoing": {
                "merged_object": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>merge</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Merge</span> Data"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Merge</span> data into a single object"
              }
            ],
            "groups": [],
            "x": 0.20708661417322835,
            "y": 0.49931224209078406
          },
          "dad8": {
            "name": "createAutomation",
            "canvasName": "createAutomation",
            "summary": "Create an automation catalog item",
            "description": "Create an automation catalog item",
            "location": "Application",
            "locationType": null,
            "app": "AutomationCatalog",
            "type": "automatic",
            "displayName": "AutomationCatalog",
            "variables": {
              "incoming": {
                "name": "$var.job.automationCatalogName",
                "description": "$var.job.description"
              },
              "outgoing": {
                "result": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>createA</span>utomation"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.3125984251968504,
            "y": 0.5006877579092159,
            "scheduled": false
          },
          "c179": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query Automation Catalog ID and assign it to job variable automationCatalogID",
            "description": "Query Automation Catalog ID and assign it to job variable automationCatalogID",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "id",
                "obj": "$var.dad8.result"
              },
              "outgoing": {
                "return_data": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>quer</span>y"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Quer</span>y Data Using 'json-query' Format"
              },
              {
                "key": "description",
                "highlightString": "<span class='highlight-string'>Quer</span>y data using a dot/bracket notation string and a matching key/value pair."
              }
            ],
            "groups": [],
            "x": 0.4251968503937008,
            "y": 0.5075653370013755,
            "scheduled": false
          },
          "fbb0": {
            "name": "evaluation",
            "canvasName": "evaluation",
            "summary": "Check if nextRunAt is not empty, meaning we need to schedule the AC",
            "description": "Check if nextRunAt is not empty, meaning we need to schedule the AC",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "all_true_flag": false,
                "evaluation_groups": [
                  {
                    "all_true_flag": false,
                    "evaluations": [
                      {
                        "query": "nextRunAt",
                        "operand_1": {
                          "variable": "merged_object",
                          "task": "2e5f"
                        },
                        "operator": "!=",
                        "operand_2": {
                          "variable": "",
                          "task": "static"
                        }
                      }
                    ]
                  }
                ]
              },
              "outgoing": {
                "return_value": null
              }
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>eva</span>luation"
              },
              {
                "key": "summary",
                "highlightString": "Run <span class='highlight-string'>Eva</span>luation Task"
              },
              {
                "key": "description",
                "highlightString": "Run an <span class='highlight-string'>eva</span>luation"
              }
            ],
            "groups": [],
            "x": 0.84251968503937,
            "y": 0.5061898211829436
          },
          "48f5": {
            "name": "updateAutomation",
            "canvasName": "updateAutomation",
            "summary": "Set workflow ID and data",
            "description": "Set workflow ID and data",
            "location": "Application",
            "locationType": null,
            "app": "AutomationCatalog",
            "type": "automatic",
            "displayName": "AutomationCatalog",
            "variables": {
              "incoming": {
                "id": "$var.c179.return_data",
                "options": "$var.1082.merged_object"
              },
              "outgoing": {
                "document": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>updateAut</span>omation"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.7448818897637796,
            "y": 0.5103163686382394,
            "scheduled": false
          },
          "dead": {
            "name": "scheduleAutomation",
            "canvasName": "scheduleAutomation",
            "summary": "Updates an automation's schedule",
            "description": "Updates an automation's schedule",
            "location": "Application",
            "locationType": null,
            "app": "AutomationCatalog",
            "type": "automatic",
            "displayName": "AutomationCatalog",
            "variables": {
              "incoming": {
                "id": "$var.c179.return_data",
                "options": "$var.2e5f.merged_object"
              },
              "outgoing": {
                "result": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": true,
            "matched": [],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.9559055118110236,
            "y": 0.3425034387895461,
            "scheduled": false
          },
          "cd39": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Log error",
            "description": "Log error",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "success",
                "delay": "",
                "response": "$var.job.taskError"
              },
              "outgoing": {
                "response": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>stub</span>"
              },
              {
                "key": "summary",
                "highlightString": "<span class='highlight-string'>Stub</span>"
              },
              {
                "key": "description",
                "highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.9811023622047244,
            "y": 0.7235213204951857,
            "scheduled": false
          }
        },
        "transitions": {
          "216": {},
          "1082": {
            "48f5": {
              "type": "standard",
              "state": "success"
            }
          },
          "6810": {
            "2e5f": {
              "type": "standard",
              "state": "success"
            }
          },
          "8535": {
            "1082": {
              "type": "standard",
              "state": "success"
            }
          },
          "9845": {
            "cd39": {
              "type": "standard",
              "state": "error"
            }
          },
          "workflow_start": {
            "6810": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_end": {},
          "2e5f": {
            "dad8": {
              "type": "standard",
              "state": "success"
            }
          },
          "dad8": {
            "c179": {
              "type": "standard",
              "state": "success"
            },
            "cd39": {
              "type": "standard",
              "state": "error"
            }
          },
          "c179": {
            "8535": {
              "type": "standard",
              "state": "success"
            },
            "9845": {
              "type": "standard",
              "state": "failure"
            }
          },
          "fbb0": {
            "dead": {
              "type": "standard",
              "state": "success"
            },
            "workflow_end": {
              "type": "standard",
              "state": "failure"
            }
          },
          "48f5": {
            "fbb0": {
              "type": "standard",
              "state": "success"
            },
            "cd39": {
              "type": "standard",
              "state": "error"
            }
          },
          "dead": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            },
            "cd39": {
              "type": "standard",
              "state": "error"
            }
          },
          "cd39": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          }
        },
        "font_size": 12,
        "created": "2020-05-28T21:15:31.010Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": ""
        },
        "createdVersion": "5.10.4-2020.1.3.0",
        "groups": [],
        "last_updated": "2020-05-28T21:15:36.618Z",
        "last_updated_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": false,
          "email": ""
        },
        "lastUpdatedVersion": "5.10.4-2020.1.3.0",
        "type": "automation",
        "description": null,
        "tags": []
      }
    },
    {
      "type": "json-forms",
      "data": {
        "id": "5e90d0d640a59941930a85e9",
        "created": "2020-04-10T20:02:30.970Z",
        "createdBy": "admin@pronghorn",
        "lastUpdated": "2020-04-17T03:22:26.802Z",
        "lastUpdatedBy": "admin@pronghorn",
        "name": "ServiceNow Schedule Automation Catalog Item At Start Date form",
        "description": null,
        "struct": {
          "type": "object",
          "description": "",
          "items": [
            {
              "nodeId": "bc4bd6d5-019a-46f0-b981-19c74ac682eb",
              "type": "string",
              "title": "Change Number",
              "description": "",
              "placeholder": "",
              "required": false
            },
            {
              "nodeId": "d9a0b476-078d-40ab-acfc-041125b896b0",
              "type": "string",
              "title": "Workflow ID",
              "description": "",
              "placeholder": "",
              "required": false,
              "enum": [],
              "binding": true,
              "rel": "collection",
              "targetPointer": "/enum",
              "method": "POST",
              "base": "/",
              "href": "workflow_engine/workflows/search",
              "body": {
                "options": {
                  "query": {}
                }
              },
              "sourcePointer": "/results",
              "sourceKeyPointer": "/_id"
            },
            {
              "nodeId": "2e34fc51-ffa8-4bc8-bd0d-132ecdf83b1d",
              "type": "string",
              "title": "Form ID",
              "description": "The ID of the JSON form that will hold the data for the job",
              "placeholder": "",
              "required": false
            }
          ]
        },
        "schema": {
          "title": "ServiceNow Schedule Automation Catalog Item At Start Date form",
          "description": "",
          "type": "object",
          "required": [],
          "properties": {
            "changeNumber": {
              "type": "string",
              "title": "Change Number",
              "description": ""
            },
            "workflowId": {
              "type": "string",
              "title": "Workflow ID",
              "description": "",
              "enum": []
            },
            "formId": {
              "type": "string",
              "title": "Form ID",
              "description": "The ID of the JSON form that will hold the data for the job"
            }
          }
        },
        "uiSchema": {},
        "bindingSchema": {
          "properties": {
            "workflowId": {
              "binding:method": "POST",
              "binding:link": {
                "$ref": "/links",
                "rel": "collection"
              },
              "binding:body": {
                "options": {
                  "query": {}
                }
              },
              "binding:source": {
                "propertyPointer": "/results",
                "keyPointer": "/_id"
              },
              "binding:target": {
                "propertyPointer": "/enum"
              },
              "binding:hyperSchema": {
                "type": "object",
                "base": "/",
                "links": [
                  {
                    "rel": "collection",
                    "href": "workflow_engine/workflows/search",
                    "targetMediaType": "application/json",
                    "targetSchema": {
                      "$ref": "#"
                    }
                  }
                ]
              }
            }
          }
        },
        "validationSchema": {},
        "version": "2019.3"
      }
    },
    {
      "type": "template",
      "data": {
        "_id": "5e859b1a77a72b7d2f548b4e",
        "name": "ServiceNow Schedule Automation - Workflow Error Email",
        "command": "",
        "template": "Automation Job ({{id}}) has failed.\n\nReason: {{taskError}}\n\n{% if inputData %}\nInput data:\n```\n{{inputData}}\n```\n{% endif %}",
        "type": "jinja2",
        "data": "{\n  \"taskError\": \"Could not complete automation\",\n  \"id\": \"jobId123456\",\n  \"inputData\": \"{\\\"name\\\": \\\"A name\\\"}\"\n}",
        "group": "Artifacts",
        "description": "",
        "created": "2020-04-11T17:29:03.721Z",
        "createdBy": {
          "_id": "5ff4d26456cfbf40abfd8f73",
          "provenance": "aaa",
          "username": "brett.mitchell@itential.com",
          "firstname": "Brett",
          "inactive": false
        },
        "lastUpdated": "2020-04-11T17:29:03.721Z",
        "lastUpdatedBy": {
          "_id": "5ff4d26456cfbf40abfd8f73",
          "provenance": "aaa",
          "username": "brett.mitchell@itential.com",
          "firstname": "Brett",
          "inactive": false
        },
        "version": 1
      }
    }
  ],
  "readme": "<!-- This is a comment in md (Markdown) format, it will not be visible to the end user -->\n\n<!-- Update the below line with your pre-built name -->\n# ServiceNow Schedule Automation Using Change Request\n\n<!-- Leave TOC intact unless you've added or removed headers -->\n## Table of Contents\n\n- [ServiceNow Schedule Automation Using Change Request](#servicenow-schedule-automation-using-change-request)\n  - [Table of Contents](#table-of-contents)\n  - [Overview](#overview)\n    - [Main Workflow](#main-workflow)\n    - [Error Handling](#error-handling)\n  - [Installation Prerequisites](#installation-prerequisites)\n  - [Features](#features)\n  - [Future Enhancements](#future-enhancements)\n  - [How to Install](#how-to-install)\n  - [How to Run](#how-to-run)\n  - [Additional Information](#additional-information)\n\n## Overview\n\nThis pre-built integrates with the [ServiceNow Open Source Adapter](https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow) to schedule an automation via Automation Catalog at the start of the **Planned start date**.\n\n\n### Main Workflow\n\nThe main workflow in this pre-built is the `ServiceNow Create Change` workflow, which takes in several input variables required to create a change.\n\n### Error Handling\n\nIf any task in the workflow fails to perform its expected function, the `taskError` job variable will hold the error message. If you are using any workflow in this pre-built as a childJob, you can use the `eval` task in Workflow Engine to check if the value of `taskError` is empty. If it is not empty, then the ServiceNow change that was created encountered an error.\n\n## Installation Prerequisites\n\nUsers must satisfy the following pre-requisites:\n\n* Itential Automation Platform\n  * `^2021.2`\n* [ServiceNow Open Source Adapter](https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow)\n  * `^2.2.0`\n\n## Features\n\nThe main benefits and features of the pre-built are outlined below.\n\n- Schedule an automation to run at the scheduled time in ServiceNow.\n\n\n## Future Enhancements\n\nThe following is planned for a future release of this pre-built:\n\n* Use the workflow name instead of the workflow id to schedule the automation.\n\n## How to Install\n\nTo install the pre-built:\n\n* Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the [Requirements](#requirements) section in order to install the pre-built. \n* The pre-built can be installed from within the pre-builts catalog. Simply search for the name of your desired pre-built and click the install button.\n\n<!-- OPTIONAL - Explain if external components are required outside of IAP -->\n<!-- Ex.: The Ansible roles required for this artifact can be found in the repository located at https://gitlab.com/itentialopensource/pre-built-automations/hello-world -->\n\n## How to Run\n\nUse the following to run the pre-built:\n* The planned start date/end date to run the automation can be modified in the service now account.\n* Run the Operations Manager Automation `ServiceNow Schedule Automation Catalog Item At Start Date` or run workflow `ServiceNow Schedule Automation Catalog Item At Start Date` in a childJob task or by itself.\n* An automation catalog item will be created in IAP to run the specified automation with the json form according to the schedule.\n\n## Additional Information\n\nPlease use your Itential Customer Success account if you need support when using this pre-built.\n"
}