{
  "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": []
}
