{
  "metadata": {
    "name": "@itentialopensource/servicenow-create-ritm",
    "version": "0.2.6-2021.2.2",
    "description": "Order a Service Catalog item to create a Request Item (RITM)",
    "license": "Apache-2.0",
    "repository": {
      "type": "gitlab",
      "hostname": "gitlab.com",
      "path": "itentialopensource/pre-built-automations"
    },
    "keywords": [
      "Itential",
      "IAP",
      "App-Artifacts",
      "artifacts",
      "RITM",
      "Request",
      "Request Item",
      "ServiceNow",
      "Service Catalog"
    ],
    "author": "Itential Artifacts",
    "IAPDependencies": {
      "@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": 18523646
  },
  "manifest": {
    "bundleName": "ServiceNow Create RITM",
    "fingerprint": "5ea94070d52ec56988d703c0",
    "createdEpoch": "1588150384489",
    "artifacts": [
      {
        "id": "ServiceNow Create RITM (Service Catalog Order)",
        "name": "ServiceNow Create RITM (Service Catalog Order)",
        "type": "automation",
        "location": "/bundles/automations/ServiceNow Create RITM (Service Catalog Order).json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Create RITM (Service Catalog Order) - Automation Catalog",
        "name": "ServiceNow Create RITM (Service Catalog Order) - Automation Catalog",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Create RITM (Service Catalog Order) - Automation Catalog.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Create RITM (Service Catalog Order)",
        "name": "ServiceNow Create RITM (Service Catalog Order)",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Create RITM (Service Catalog Order).json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Display RITM variables",
        "name": "ServiceNow Display RITM variables",
        "type": "workflow",
        "location": "/bundles/workflows/ServiceNow Display RITM variables.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Create RITM (Service Catalog Order) form",
        "name": "ServiceNow Create RITM (Service Catalog Order) form",
        "type": "json-forms",
        "location": "/bundles/json_forms/ServiceNow Create RITM (Service Catalog Order) form.json",
        "properties": {
          "entryPoint": false
        }
      },
      {
        "id": "ServiceNow Create RITM - Workflow Error Email",
        "name": "ServiceNow Create RITM - Workflow Error Email",
        "type": "template",
        "location": "/bundles/templates/ServiceNow Create RITM - Workflow Error Email.json",
        "properties": {
          "entryPoint": false
        }
      }
    ]
  },
  "bundles": [
    {
      "type": "automation",
      "data": {
        "_id": "61cd0dc7b6a8f201aee6f92e",
        "name": "ServiceNow Create RITM (Service Catalog Order)",
        "description": "",
        "componentName": "ServiceNow Create RITM (Service Catalog Order) - Operations Manager",
        "componentType": "workflows",
        "gbac": {
          "write": [],
          "read": []
        },
        "created": "2021-12-30T01:39:19.837Z",
        "createdBy": "kay.wolfe@itential.com",
        "lastUpdated": "2021-12-30T01:39:19.837Z",
        "lastUpdatedBy": "kay.wolfe@itential.com",
        "triggers": [
          {
            "_id": "61cd0dc8b6a8f201aee6f92f",
            "created": "2021-12-30T01:39:20.190Z",
            "createdBy": "kay.wolfe@itential.com",
            "lastUpdated": "2021-12-30T01:39:20.190Z",
            "lastUpdatedBy": "kay.wolfe@itential.com",
            "name": "Manual Trigger (migrated from ServiceNow Create RITM (Service Catalog Order))",
            "type": "manual",
            "enabled": true,
            "actionType": "automations",
            "actionId": "61cd0dc7b6a8f201aee6f92e",
            "formId": "ServiceNow Create RITM (Service Catalog Order) form",
            "formData": {
              "sysIdOfServiceCatalogItem": "039c516237b1300054b6a3549dbe5dfc",
              "ritmVariables": {}
            },
            "migrationVersion": 1
          }
        ]
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Create RITM (Service Catalog Order) - Automation Catalog",
        "tasks": {
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0.19831932773109243,
            "y": 0.5689655172413793
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 0.8162464985994398,
            "y": 0.5635775862068966
          },
          "8de8": {
            "name": "childJob",
            "summary": "Create RITM",
            "description": "Create RITM",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "task": "",
                "workflow": "ServiceNow Create RITM (Service Catalog Order)",
                "variables": {
                  "sysIdOfServiceCatalogItem": {
                    "variable": "",
                    "task": "cc18",
                    "value": "return_data"
                  },
                  "ritmVariables": {
                    "variable": "",
                    "task": "467b",
                    "value": "return_data"
                  },
                  "_id": {
                    "variable": "",
                    "task": "job",
                    "value": "_id"
                  }
                },
                "data_array": "",
                "transformation": "",
                "loopType": ""
              },
              "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.4392156862745098,
            "y": 0.5711206896551724
          },
          "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.5557422969187675,
            "y": 0.6961206896551724,
            "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.5557422969187675,
            "y": 0.5711206896551724
          },
          "613a": {
            "name": "renderJinjaTemplate",
            "canvasName": "renderJinjaTemplate",
            "summary": "Render Jinja Template for \"ServiceNow Create RITM - Workflow Error Email\"",
            "description": "Render Jinja Template for \"ServiceNow Create RITM - Workflow Error Email\"",
            "location": "Application",
            "locationType": null,
            "app": "TemplateBuilder",
            "displayName": "TemplateBuilder",
            "type": "automatic",
            "variables": {
              "incoming": {
                "name": "ServiceNow Create RITM - 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": 0.6061624649859944,
            "y": 0.8426724137931034,
            "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": 0.8162464985994398,
            "y": 0.8405172413793104,
            "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": 0.6,
            "y": 0.7036637931034483
          },
          "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.2627450980392157,
            "y": 0.572198275862069
          },
          "b8f1": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query ritmNumber",
            "description": "Query ritmNumber",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "ritmNumber",
                "obj": "$var.8de8.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": 0.692436974789916,
            "y": 0.5625,
            "scheduled": false
          },
          "c3d7": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not query ritmNumber",
            "description": "Could not query ritmNumber",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "Tools",
            "type": "automatic",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not query ritmNumber"
              },
              "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.6901960784313725,
            "y": 0.7004310344827587,
            "scheduled": false
          },
          "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": 0.8134453781512605,
            "y": 0.6961206896551724,
            "scheduled": false
          },
          "467b": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query ritmVariables",
            "description": "Query ritmVariables",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "ritmVariables",
                "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.32717086834733894,
            "y": 0.6530172413793104,
            "scheduled": false
          },
          "cc18": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query sysIdOfServiceCatalogItem",
            "description": "Query sysIdOfServiceCatalogItem",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "displayName": "WorkFlowEngine",
            "type": "operation",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "sysIdOfServiceCatalogItem",
                "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.3243697478991597,
            "y": 0.49245689655172414,
            "scheduled": false
          }
        },
        "transitions": {
          "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"
            },
            "b8f1": {
              "type": "standard",
              "state": "success"
            }
          },
          "613a": {
            "9da6": {
              "type": "standard",
              "state": "success"
            }
          },
          "9da6": {
            "e702": {
              "type": "standard",
              "state": "success"
            }
          },
          "fe6a": {
            "613a": {
              "type": "standard",
              "state": "success"
            }
          },
          "a5db": {
            "cc18": {
              "type": "standard",
              "state": "success"
            },
            "467b": {
              "type": "standard",
              "state": "success"
            }
          },
          "b8f1": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            },
            "c3d7": {
              "type": "standard",
              "state": "failure"
            }
          },
          "c3d7": {
            "fe6a": {
              "type": "standard",
              "state": "error"
            }
          },
          "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-10T19:06:04.997Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": true,
          "email": "",
          "groups": [
            "admin",
            "pronghorn_admin"
          ]
        },
        "createdVersion": "5.5.9-2019.3.14.0",
        "last_updated": "2021-11-11T21:28:58.119Z",
        "last_updated_by": {
          "provenance": "ldap",
          "username": "admin@itential",
          "firstname": "admin@itential",
          "inactive": false
        },
        "lastUpdatedVersion": "5.40.5-2021.1.8.0",
        "type": "automation",
        "description": null,
        "inputSchema": {
          "type": "object",
          "properties": {
            "_id": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            },
            "formData": {
              "type": "object",
              "examples": [
                {
                  "name": "value"
                }
              ]
            }
          },
          "required": [
            "_id",
            "formData"
          ]
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{24}$"
            },
            "formData": {
              "type": "object",
              "examples": [
                {
                  "name": "value"
                }
              ]
            },
            "initiator": {
              "type": "string"
            },
            "taskError": {
              "type": [
                "string",
                "number",
                "object",
                "integer",
                "array",
                "boolean",
                "null"
              ],
              "examples": [
                "value"
              ]
            }
          }
        },
        "tags": [],
        "groups": []
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Create RITM (Service Catalog Order)",
        "tasks": {
          "2025": {
            "name": "orderNowServiceCatalog",
            "canvasName": "orderNowServiceCatalog",
            "summary": "Orders the specified catalog item.",
            "description": "Orders the specified catalog item.",
            "location": "Adapter",
            "locationType": "Servicenow",
            "app": "Servicenow",
            "type": "automatic",
            "displayName": "Servicenow",
            "variables": {
              "incoming": {
                "itemId": "$var.job.sysIdOfServiceCatalogItem",
                "body": "$var.572b.merged_object",
                "adapter_id": "servicenow"
              },
              "outgoing": {
                "result": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>orderNow</span>ServiceCatalog"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.26498422712933756,
            "y": 0.49676724137931033,
            "scheduled": false
          },
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0.01468048359240069,
            "y": 0.5043263288009888
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 0.8195583596214511,
            "y": 0.5107758620689655
          },
          "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.08454258675078864,
            "y": 0.41163793103448276
          },
          "f4c1": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query ritm number from response",
            "description": "Query ritm number from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "response[0].number",
                "obj": "$var.3a8a.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.6473186119873817,
            "y": 0.5086206896551724,
            "scheduled": false
          },
          "438f": {
            "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": "ritmNumber",
                "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.0832807570977918,
            "y": 0.5959051724137931
          },
          "814d": {
            "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": "ritmNumber",
                "value": "$var.f4c1.return_data"
              },
              "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.7305993690851735,
            "y": 0.5021551724137931
          },
          "8d9a": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not query RITM number from response.",
            "description": "Could not query RITM number from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not query RITM 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": 0.5798107255520505,
            "y": 0.6487068965517241,
            "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": "sysIdOfServiceCatalogItem"
                    }
                  }
                ]
              },
              "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.4138801261829653,
            "y": 0.9849137931034483
          },
          "572b": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Create OrderNow body",
            "description": "Create OrderNow body",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "sysparm_quantity",
                    "value": {
                      "task": "static",
                      "variable": 1
                    }
                  },
                  {
                    "key": "variables",
                    "value": {
                      "task": "job",
                      "variable": "ritmVariables",
                      "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.15962145110410095,
            "y": 0.49676724137931033
          },
          "a2b6": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query request number from response",
            "description": "Query request number from response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "response.number",
                "obj": "$var.2025.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.35331230283911674,
            "y": 0.4956896551724138,
            "scheduled": false
          },
          "888c": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Filter for querying request item",
            "description": "Filter for querying request item",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "request",
                    "value": {
                      "task": "a2b6",
                      "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": 0.41009463722397477,
            "y": 0.5
          },
          "3a8a": {
            "name": "queryTableByName",
            "canvasName": "queryTableByName",
            "summary": "Retrieves the RITM from sc_req_item table",
            "description": "Retrieves the RITM from sc_req_item table",
            "location": "Adapter",
            "locationType": "Servicenow",
            "app": "Servicenow",
            "type": "automatic",
            "displayName": "Servicenow",
            "variables": {
              "incoming": {
                "tableName": "sc_req_item",
                "sysparmQuery": "$var.888c.merged_object",
                "adapter_id": "servicenow"
              },
              "outgoing": {
                "result": null
              },
              "error": "$var.job.taskError"
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span><span class='highlight-string'>Table</span>ByName"
              },
              {
                "key": "summary",
                "highlightString": "Retrieves all the record in the <span class='highlight-string'>table</span>"
              },
              {
                "key": "description",
                "highlightString": "Retrieves all the records from the specified <span class='highlight-string'>table</span>."
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.5274447949526814,
            "y": 0.5075431034482759,
            "scheduled": false
          },
          "e8ff": {
            "name": "stub",
            "canvasName": "stub",
            "summary": "Could not query Request number from response.",
            "description": "Could not query Request number from response.",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "type": "error",
                "delay": "",
                "response": "Could not query Request 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": 0.3899053627760252,
            "y": 0.634698275862069,
            "scheduled": false
          }
        },
        "transitions": {
          "2025": {
            "a2b6": {
              "type": "standard",
              "state": "success"
            },
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "workflow_start": {
            "e6a6": {
              "type": "standard",
              "state": "success"
            },
            "438f": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_end": {},
          "e6a6": {
            "572b": {
              "type": "standard",
              "state": "success"
            }
          },
          "f4c1": {
            "814d": {
              "type": "standard",
              "state": "success"
            },
            "8d9a": {
              "type": "standard",
              "state": "failure"
            }
          },
          "438f": {
            "572b": {
              "type": "standard",
              "state": "success"
            }
          },
          "814d": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "8d9a": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "31e5": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "f7b6": {},
          "572b": {
            "2025": {
              "type": "standard",
              "state": "success"
            }
          },
          "a2b6": {
            "888c": {
              "type": "standard",
              "state": "success"
            },
            "e8ff": {
              "type": "standard",
              "state": "failure"
            }
          },
          "888c": {
            "3a8a": {
              "type": "standard",
              "state": "success"
            }
          },
          "3a8a": {
            "f4c1": {
              "type": "standard",
              "state": "success"
            },
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          },
          "e8ff": {
            "31e5": {
              "type": "standard",
              "state": "error"
            }
          }
        },
        "font_size": 12,
        "created": "2020-04-10T18:51:49.908Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": true,
          "email": "",
          "groups": [
            "admin",
            "pronghorn_admin"
          ]
        },
        "createdVersion": "5.5.9-2019.3.14.0",
        "last_updated": "2021-11-11T21:33:34.847Z",
        "last_updated_by": {
          "provenance": "ldap",
          "username": "admin@itential",
          "firstname": "admin@itential",
          "inactive": false
        },
        "lastUpdatedVersion": "5.40.5-2021.1.8.0",
        "type": "automation",
        "description": null,
        "inputSchema": {
          "type": "object",
          "properties": {
            "sysIdOfServiceCatalogItem": {
              "title": "itemId",
              "type": "string"
            },
            "ritmVariables": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            }
          },
          "required": [
            "sysIdOfServiceCatalogItem",
            "ritmVariables"
          ]
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "sysIdOfServiceCatalogItem": {
              "title": "itemId",
              "type": "string"
            },
            "ritmVariables": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            },
            "_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{24}$"
            },
            "initiator": {
              "type": "string"
            },
            "taskError": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            },
            "ritmNumber": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            }
          }
        },
        "tags": [],
        "groups": []
      }
    },
    {
      "type": "workflow",
      "data": {
        "name": "ServiceNow Display RITM variables",
        "tasks": {
          "650": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query sys_id from request item response",
            "description": "Query sys_id from request item response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "id",
                "obj": "$var.6888.return_data"
              },
              "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.32492997198879553,
            "y": 0.509698275862069,
            "scheduled": false
          },
          "3866": {
            "name": "merge",
            "canvasName": "merge",
            "summary": "Filter for name",
            "description": "Filter for name",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "data_to_merge": [
                  {
                    "key": "name",
                    "value": {
                      "task": "job",
                      "variable": "nameOfServiceCatalogItem",
                      "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.04873949579831933,
            "y": 0.5021551724137931
          },
          "4201": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query variables from the request item",
            "description": "Query variables from the request item",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "response.variables",
                "obj": "$var.474d.result"
              },
              "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.5058823529411764,
            "y": 0.5064655172413793,
            "scheduled": false
          },
          "6888": {
            "name": "query",
            "canvasName": "query",
            "summary": "Query first item from request item response",
            "description": "Query first item from request item response",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "operation",
            "displayName": "WorkFlowEngine",
            "variables": {
              "incoming": {
                "pass_on_null": false,
                "query": "response[0]",
                "obj": "$var.eee7.result"
              },
              "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.27675070028011206,
            "y": 0.5129310344827587,
            "scheduled": false
          },
          "workflow_start": {
            "name": "workflow_start",
            "groups": [],
            "x": 0,
            "y": 0.5
          },
          "workflow_end": {
            "name": "workflow_end",
            "groups": [],
            "x": 0.7098039215686275,
            "y": 0.509698275862069
          },
          "eee7": {
            "name": "queryTableByName",
            "canvasName": "queryTableByName",
            "summary": "Get the request item from the sc_cat_item table",
            "description": "Get the request item from the sc_cat_item table",
            "location": "Adapter",
            "locationType": "Servicenow",
            "app": "Servicenow",
            "type": "automatic",
            "displayName": "Servicenow",
            "variables": {
              "incoming": {
                "tableName": "sc_cat_item",
                "sysparmQuery": "$var.3866.merged_object",
                "adapter_id": "servicenow"
              },
              "outgoing": {
                "result": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>query</span><span class='highlight-string'>Table</span>ByName"
              },
              {
                "key": "summary",
                "highlightString": "Retrieves all the record in the <span class='highlight-string'>table</span>"
              },
              {
                "key": "description",
                "highlightString": "Retrieves all the records from the specified <span class='highlight-string'>table</span>."
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.16694677871148458,
            "y": 0.5086206896551724,
            "scheduled": false
          },
          "474d": {
            "name": "getServiceCatalogItemById",
            "canvasName": "getServiceCatalogItemById",
            "summary": "Retrieves a specified catalog item.",
            "description": "Retrieves a specified catalog item.",
            "location": "Adapter",
            "locationType": "Servicenow",
            "app": "Servicenow",
            "type": "automatic",
            "displayName": "Servicenow",
            "variables": {
              "incoming": {
                "sysparmLimit": 1,
                "catalogId": "$var.650.return_data",
                "adapter_id": "servicenow"
              },
              "outgoing": {
                "result": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [
              {
                "key": "canvasName",
                "highlightString": "<span class='highlight-string'>getServiceCata</span>logItemById"
              }
            ],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.4173669467787115,
            "y": 0.5053879310344828,
            "scheduled": false
          },
          "2eb4": {
            "name": "ViewData",
            "canvasName": "ViewData",
            "summary": "View variables",
            "description": "View variables",
            "location": "Application",
            "app": "WorkFlowEngine",
            "displayName": "Tools",
            "type": "manual",
            "variables": {
              "incoming": {
                "header": "$var.280c.output",
                "message": "Please find (ctrl + F) and note down the `name` fields corresponding to the `label` fields in the UI.",
                "body": "$var.4201.return_data",
                "variables": {},
                "btn_success": "Done",
                "btn_failure": ""
              },
              "outgoing": {},
              "error": ""
            },
            "view": "/workflow_engine/task/ViewData",
            "deprecated": false,
            "matched": [],
            "groups": [],
            "x": 0.6521008403361345,
            "y": 0.5032327586206896,
            "scheduled": false
          },
          "280c": {
            "name": "makeData",
            "canvasName": "makeData",
            "summary": "Format header text",
            "description": "Format header text",
            "location": "Application",
            "locationType": null,
            "app": "WorkFlowEngine",
            "type": "automatic",
            "displayName": "Tools",
            "variables": {
              "incoming": {
                "input": "Variables for Request Item <!id!>",
                "outputType": "string",
                "variables": "$var.6888.return_data"
              },
              "outgoing": {
                "output": null
              },
              "error": ""
            },
            "deprecated": false,
            "matched": [],
            "groups": [],
            "actor": "Pronghorn",
            "x": 0.5708683473389355,
            "y": 0.5043103448275862,
            "scheduled": false
          }
        },
        "transitions": {
          "650": {
            "474d": {
              "type": "standard",
              "state": "success"
            }
          },
          "3866": {
            "eee7": {
              "type": "standard",
              "state": "success"
            }
          },
          "4201": {
            "280c": {
              "type": "standard",
              "state": "success"
            }
          },
          "6888": {
            "650": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_start": {
            "3866": {
              "type": "standard",
              "state": "success"
            }
          },
          "workflow_end": {},
          "eee7": {
            "6888": {
              "type": "standard",
              "state": "success"
            }
          },
          "f38e": {},
          "474d": {
            "4201": {
              "type": "standard",
              "state": "success"
            }
          },
          "22ce": {},
          "7b17": {},
          "2eb4": {
            "workflow_end": {
              "type": "standard",
              "state": "success"
            }
          },
          "280c": {
            "2eb4": {
              "type": "standard",
              "state": "success"
            }
          }
        },
        "font_size": 12,
        "created": "2020-04-10T18:29:50.524Z",
        "created_by": {
          "provenance": "Local AAA",
          "username": "admin@pronghorn",
          "firstname": "admin",
          "inactive": true,
          "email": "",
          "groups": [
            "admin",
            "pronghorn_admin"
          ]
        },
        "createdVersion": "5.5.9-2019.3.14.0",
        "last_updated": "2021-11-11T21:36:18.189Z",
        "last_updated_by": {
          "provenance": "ldap",
          "username": "admin@itential",
          "firstname": "admin@itential",
          "inactive": false
        },
        "lastUpdatedVersion": "5.40.5-2021.1.8.0",
        "type": "automation",
        "description": null,
        "inputSchema": {
          "type": "object",
          "properties": {
            "nameOfServiceCatalogItem": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            }
          },
          "required": [
            "nameOfServiceCatalogItem"
          ]
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "nameOfServiceCatalogItem": {
              "type": [
                "array",
                "boolean",
                "null",
                "number",
                "object",
                "string"
              ]
            },
            "_id": {
              "type": "string",
              "pattern": "^[0-9a-f]{24}$"
            },
            "initiator": {
              "type": "string"
            }
          }
        },
        "tags": [],
        "groups": []
      }
    },
    {
      "type": "json-forms",
      "data": {
        "id": "5e90c46840a59941930a85e8",
        "created": "2020-04-10T19:09:28.237Z",
        "createdBy": "admin@pronghorn",
        "lastUpdated": "2020-04-10T19:25:46.129Z",
        "lastUpdatedBy": "admin@pronghorn",
        "name": "ServiceNow Create RITM (Service Catalog Order) form",
        "description": null,
        "struct": {
          "type": "object",
          "description": "",
          "items": [
            {
              "nodeId": "dbc3796d-08bb-4725-816c-e2bf8aa25adc",
              "type": "string",
              "title": "sys_id of Service Catalog Item",
              "description": "",
              "placeholder": "",
              "required": false
            },
            {
              "nodeId": "dfbcbd7e-58da-482d-8403-a2e3edabc29d",
              "type": "object",
              "description": "",
              "items": [],
              "title": "ritmVariables"
            }
          ]
        },
        "schema": {
          "title": "ServiceNow Create RITM (Service Catalog Order) form",
          "description": "",
          "type": "object",
          "required": [],
          "properties": {
            "sysIdOfServiceCatalogItem": {
              "type": "string",
              "title": "sys_id of Service Catalog Item",
              "description": ""
            },
            "ritmVariables": {
              "type": "object",
              "title": "ritmVariables",
              "description": "",
              "required": [],
              "properties": {}
            }
          }
        },
        "uiSchema": {
          "ritmVariables": {}
        },
        "bindingSchema": {
          "properties": {
            "ritmVariables": {
              "properties": {}
            }
          }
        },
        "validationSchema": {
          "ritmVariables": {}
        },
        "version": "2019.3"
      }
    },
    {
      "type": "template",
      "data": {
        "_id": "5e859b1a77a72b7d2f548b4e",
        "name": "ServiceNow Create RITM - 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": "<!-- Update the below line with your pre-built name -->\n# ServiceNow Order Service Catalog Item (Create RITM)\n\n<!-- Leave TOC intact unless you've added or removed headers -->\n## Table of Contents\n\n- [ServiceNow Order Service Catalog Item (Create RITM)](#servicenow-order-service-catalog-item-create-ritm)\n  - [Table of Contents](#table-of-contents)\n  - [Overview](#overview)\n    - [Operations Manager and JSON-Form](#operations-manager-and-json-form)\n    - [Main Workflow](#main-workflow)\n    - [Error Handling](#error-handling)\n  - [Installation Prerequisites](#installation-prerequisites)\n  - [Requirements](#requirements)\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 create a Request and a Request Item (RITM) using the Service Catalog API.\n\n\n### Operations Manager and JSON-Form\n\nThis Pre-Built has the Operations Manager Automation `ServiceNow Create RITM (Service Catalog Order)` that calls the workflow `ServiceNow Create RITM (Service Catalog Order) - Automation Catalog`. The Automation uses a JSON-Form to specify the `sys_id` of the Operations Manager item, as well as any variables needed to create the RITM. The workflow the Automation Item calls queries data from the `formData` job variable.\n\n### Main Workflow\n\nThe main workflow in this pre-built is the workflow `ServiceNow Create RITM (Service Catalog Order`, which takes in several input variables required to create a change.\n\n_Estimated Run Time_: 30 seconds\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## Requirements\n\nThis pre-built requires the following:\n\n- A [ServiceNow Open Source Adapter](https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow).\n- A ServiceNow account that has access to order a Service Catalog Item.\n- A ServiceNow account that has read access from the `sc_request` and `sc_req_item` tables.\n\n## Features\n\nThe main benefits and features of the pre-built are outlined below.\n\n- Place a Service Catalog order to create a Request and a Request Item (RITM).\n- Query the RITM Number after an order is placed and a Request is created.\n- A workflow to retrieve variables from a Service Catalog Item.\n\n## Future Enhancements\n\nThe following is planned for a future release of this pre-built:\n\n- Dynamically create a form using the variables from a Service Catalog Item.\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. If you do not currently have Admin Essentials installed on your server, please download the installer from your Nexus repository. Refer to the install instructions included in the Admin Essentials README.\n* The pre-built can be installed from within Admin Essentials. 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 pre-built 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\n* You must first retrieve the name of the variables required to create the Request. Go to ServiceNow and locate the name of the Request Item you wish to order.\n\n* Run the workflow `ServiceNow Display RITM variables` and input the RITM name.\n\n* Run the workflow `ServiceNow Create RITM (Service Catalog Order)` with the name of your variables and SYSID.\n\n_Example_\n\n```json\n  {\n   \"sysIdOfServiceCatalogItem\": \"186d917a6fab7980575967ddbb3ee4f2\",\n   \"ritmVariables\": {\"new_email\": \"myEmail@email.com\"}\n  }\n```\n\n## Additional Information\n\nPlease use your Itential Customer Success account if you need support when using this pre-built.\n"
}