@itentialopensource/servicenow-create-ritm
Version:
Order a Service Catalog item to create a Request Item (RITM)
720 lines • 18.8 kB
JSON
{
"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": []
}