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