@itentialopensource/servicenow-create-ritm
Version:
Order a Service Catalog item to create a Request Item (RITM)
1,535 lines (1,534 loc) • 73.5 kB
JSON
{
"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"
]