UNPKG

@itentialopensource/servicenow-create-ritm

Version:

Order a Service Catalog item to create a Request Item (RITM)

727 lines 19.1 kB
{ "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": [] }