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