@itentialopensource/versa-create-new-service-template
Version:
Versa Create New Service Template
1,095 lines • 29.9 kB
JSON
{
"name": "Versa Create New Service Template",
"tasks": {
"3672": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Error Connecting to Adapter",
"description": "Displays a message and runtime data to an operator. This can be used to request a decision, or used for acknowledgement only.",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Error",
"message": "Error fetching existing service template names from Versa Director.",
"body": "",
"btn_success": "Terminate",
"btn_failure": ""
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>ViewData</span>"
}
],
"groups": [],
"x": 0.6381418092909535,
"y": 0.9653333333333334,
"scheduled": false
},
"3947": {
"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": "formData1",
"value": {}
},
"outgoing": {
"value": null
}
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>new</span><span class='highlight-string'>Var</span>iable"
},
{
"key": "description",
"highlightString": "Create a <span class='highlight-string'>new</span> Job <span class='highlight-string'>var</span>iable by Job ID and assign it a value."
},
{
"key": "summary",
"highlightString": "Create a Job <span class='highlight-string'>Var</span>iable"
}
],
"groups": [],
"x": 0.05215973920130399,
"y": 0.644
},
"9518": {
"name": "transformation",
"canvasName": "transformation",
"summary": "JSON Transformation",
"description": "Perform a JSON Transformation using the JST library.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "6046642031a93f032b8c2b3a",
"variableMap": {
"formData1": "$var.job.formData1"
},
"options": {
"extractOutput": false
}
},
"outgoing": {
"organizationName": null,
"templateName": null,
"categoryName": null
}
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>transformation</span>"
},
{
"key": "summary",
"highlightString": "JSON <span class='highlight-string'>Transformation</span>"
},
{
"key": "description",
"highlightString": "Perform a JSON <span class='highlight-string'>Transformation</span> using the JST library."
}
],
"groups": [],
"x": 0.3952730236348818,
"y": 0.6293333333333333,
"task_name": "Versa Create New Service Template formData1"
},
"workflow_start": {
"name": "workflow_start",
"groups": [],
"x": -0.5224123879380603,
"y": 0.6466666666666666
},
"workflow_end": {
"name": "workflow_end",
"groups": [],
"x": 2.045639771801141,
"y": 0.9813333333333333
},
"6f78": {
"name": "query",
"canvasName": "query",
"summary": "Query Existing Template Names",
"description": "Query existing template names from Director response",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"pass_on_null": false,
"query": "[response][versanms.templates][template][*name]",
"obj": "$var.30de.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.6951915240423798,
"y": 0.624,
"scheduled": false
},
"a04b": {
"name": "arrayIncludes",
"canvasName": "includes",
"summary": "Finds if template name unique",
"description": "determine if the new template name exists in the existing list of names",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Array",
"variables": {
"incoming": {
"arr": "$var.6f78.return_data",
"searchElement": "$var.9518.templateName",
"fromIndex": 0
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>includes</span>"
},
{
"key": "description",
"highlightString": "Determines whether an array <span class='highlight-string'>includes</span> a certain element, returning true or false as appropriate."
}
],
"groups": [],
"actor": "Pronghorn",
"x": 0.8418907905460473,
"y": 0.6186666666666667,
"scheduled": false
},
"d403": {
"name": "evaluation",
"canvasName": "evaluation",
"summary": "Eval Valid Template Name",
"description": "Run an evaluation to confirm that the template name is valid",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"all_true_flag": false,
"evaluation_groups": [
{
"all_true_flag": false,
"evaluations": [
{
"query": "",
"operand_1": {
"variable": "result",
"task": "a04b"
},
"operator": "==",
"operand_2": {
"variable": false,
"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.9942950285248574,
"y": 0.6146666666666667
},
"e49d": {
"name": "transformation",
"canvasName": "transformation",
"summary": "JSON Transformation",
"description": "Perform a JSON Transformation using the JST library.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "5f60e098edbf0b0b207b68db",
"variableMap": {
"formData": "$var.134b.object"
},
"options": {
"extractOutput": true
}
},
"outgoing": {
"createServiceTemplatePayload": null
}
},
"deprecated": false,
"matched": [
{
"key": "description",
"highlightString": "Perform a JSON Transformation using the <span class='highlight-string'>JST</span> library."
}
],
"groups": [],
"x": 1.2559087204563977,
"y": 0.30933333333333335
},
"a41c": {
"name": "setObjectKey",
"canvasName": "setObjectKey",
"summary": "Create Service Template Payload",
"description": "Set the versanms.templateData object",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Object",
"variables": {
"incoming": {
"obj": {},
"path": [
"versanms.templateData"
],
"value": "$var.e49d.createServiceTemplatePayload"
},
"outgoing": {
"object": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>setObjec</span>tKey"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.4221678891605543,
"y": 0.31333333333333335,
"scheduled": false
},
"67bd": {
"name": "RenderJsonSchema",
"canvasName": "RenderJsonSchema",
"summary": "Show New Service Template Form",
"description": "Render JSON Schema",
"location": "Application",
"app": "JsonForms",
"displayName": "JsonForms",
"type": "manual",
"variables": {
"incoming": {
"jsonSchema": "$var.2dea.object",
"uiSchema": {
"organizationName": {
"ui:placeholder": "Organization Name"
},
"categoryName": {
"ui:placeholder": "Category Name"
},
"templateName": {
"ui:placeholder": "Template Name"
},
"composite_or_partial": {
"ui:disabled": true
}
},
"bindingSchema": {},
"validationSchema": {},
"formData": "$var.job.formData1"
},
"outgoing": {
"export": "$var.job.formData1"
},
"error": ""
},
"view": "/json-forms/task/RenderJsonSchema",
"deprecated": false,
"matched": [
{
"key": "displayName",
"highlightString": "<span class='highlight-string'>Json</span>Forms"
},
{
"key": "canvasName",
"highlightString": "Render<span class='highlight-string'>Json</span>Schema"
},
{
"key": "summary",
"highlightString": "Render <span class='highlight-string'>JSON</span> Schema"
},
{
"key": "description",
"highlightString": "Render <span class='highlight-string'>JSON</span> Schema"
}
],
"groups": [],
"x": 0.21923390383048086,
"y": 0.636,
"scheduled": false
},
"c4be": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Alert",
"description": "Displays a message and runtime data to an operator. This can be used to request a decision, or used for acknowledgement only.",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Alert",
"message": "Template name is not unique, would you like to go back to the form to edit the data or exit automation?",
"body": "$var.9518.templateName",
"btn_success": "Go Back To Form",
"btn_failure": "Exit Automation"
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>ViewData</span>"
}
],
"groups": [],
"x": 1.1711491442542787,
"y": 0.972,
"scheduled": false
},
"b5ef": {
"name": "addServiceTemplate",
"canvasName": "addServiceTemplate",
"summary": "Create Service Template",
"description": "This API adds a new Service template.",
"location": "Adapter",
"locationType": "VersaDirector",
"app": "VersaDirector",
"type": "automatic",
"displayName": "VersaDirector",
"variables": {
"incoming": {
"body": "$var.a41c.object",
"adapter_id": "Versa"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "addService<span class='highlight-string'>Template</span>"
},
{
"key": "summary",
"highlightString": "Add Service <span class='highlight-string'>Template</span>"
},
{
"key": "description",
"highlightString": "This API adds a new Service <span class='highlight-string'>template</span>."
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.6356968215158925,
"y": 0.30933333333333335,
"scheduled": false
},
"b284": {
"name": "getOrganizations",
"canvasName": "getOrganizations",
"summary": "Get organizations",
"description": "Finds all the organizations",
"location": "Adapter",
"locationType": "VersaDirector",
"app": "VersaDirector",
"type": "automatic",
"displayName": "VersaDirector",
"variables": {
"incoming": {
"deep": false,
"filters": "",
"limit": 250,
"offset": 0,
"adapter_id": "$var.job.adapter_id"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>getOrganizations</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": -0.3080684596577017,
"y": 0.648,
"scheduled": false
},
"52d4": {
"name": "query",
"canvasName": "query",
"summary": "Get Versa Adapter Instance ID",
"description": "Query data using a dot/bracket notation string and a matching key/value pair.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"pass_on_null": false,
"query": "versaAdapterId",
"obj": "$var.job.formData"
},
"outgoing": {
"return_data": "$var.job.adapter_id"
},
"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.43276283618581907,
"y": 0.648,
"scheduled": false
},
"ba02": {
"name": "query",
"canvasName": "query",
"summary": "get organizations array",
"description": "Query data using a dot/bracket notation string and a matching key/value pair.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"pass_on_null": false,
"query": "response.organizations.name",
"obj": "$var.b284.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.17359413202933985,
"y": 0.6426666666666667,
"scheduled": false
},
"2dea": {
"name": "setObjectKey",
"canvasName": "setObjectKey",
"summary": "Set orgs in form1",
"description": "Set an object key",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Object",
"variables": {
"incoming": {
"obj": {
"title": "New Service Template Form",
"type": "object",
"properties": {
"organizationName": {
"type": "string",
"title": "Organization Name",
"enum": [
"Org1",
"Org2"
]
},
"categoryName": {
"type": "string",
"title": "Category Name",
"enum": [
"Stateful Firewall",
"NextGen Firewall",
"QoS",
"General",
"Application Steering",
"Service Chain",
"Secure Access"
]
},
"templateName": {
"type": "string",
"title": "Template Name"
},
"composite_or_partial": {
"type": "string",
"default": "partial",
"enum": [
"partial"
],
"disabled": true
}
},
"required": [
"templateName",
"categoryName",
"organizationName"
]
},
"path": [
"properties",
"organizationName",
"enum"
],
"value": "$var.ba02.return_data"
},
"outgoing": {
"object": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>setObjectKey</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": -0.07008964955175224,
"y": 0.6426666666666667,
"scheduled": false
},
"134b": {
"name": "setObjectKey",
"canvasName": "setObjectKey",
"summary": "Set Object Key",
"description": "Set an object key",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Object",
"variables": {
"incoming": {
"obj": "$var.job.formData1",
"path": [
"categoryName"
],
"value": "$var.9518.categoryName"
},
"outgoing": {
"object": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>set</span><span class='highlight-string'>Object</span>Key"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>Set</span> <span class='highlight-string'>Object</span> Key"
},
{
"key": "description",
"highlightString": "<span class='highlight-string'>Set</span> an <span class='highlight-string'>object</span> key"
},
{
"key": "displayName",
"highlightString": "<span class='highlight-string'>Object</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.1165444172779135,
"y": 0.31333333333333335,
"scheduled": false
},
"30de": {
"name": "getTemplateMetadata",
"canvasName": "getTemplateMetadata",
"summary": "List of Service Templates for an Org",
"description": "This API call will list all the existing Service templates under a specific tenant",
"location": "Adapter",
"locationType": "VersaDirector",
"app": "VersaDirector",
"type": "automatic",
"displayName": "VersaDirector",
"variables": {
"incoming": {
"organization": "$var.9518.organizationName",
"type": "SERVICE",
"offset": 0,
"limit": 250,
"adapter_id": "Versa"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>getTemplateMetadata</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 0.5558272208638957,
"y": 0.6186666666666667,
"scheduled": false
},
"a5e7": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Error Connecting to Adapter",
"description": "Displays a message and runtime data to an operator. This can be used to request a decision, or used for acknowledgement only.",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Error",
"message": "Error fetching available organizations from Versa Director.",
"body": "",
"btn_success": "Terminate",
"btn_failure": ""
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>ViewData</span>"
}
],
"groups": [],
"x": -0.07253463732681337,
"y": 0.964,
"scheduled": false
},
"a610": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Error Creating New Service Template",
"description": "Displays a message and runtime data to an operator. This can be used to request a decision, or used for acknowledgement only.",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Error Creating New Service Template",
"message": "Error Creating New Service Template<br>Please review the error message below and choose to either GO BACK to form, or TERMINATE this workflow",
"body": "$var.b641.stringified",
"btn_success": "Go Back",
"btn_failure": "Terminate"
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>ViewData</span>"
}
],
"groups": [],
"x": 2.04319478402608,
"y": 0.312,
"scheduled": false
},
"b641": {
"name": "objectToString",
"canvasName": "toString",
"summary": "Converts a valid JSON value to a string.",
"description": "Converts a valid JSON value to a JSON string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Object",
"variables": {
"incoming": {
"value": "$var.b5ef.error",
"replacer": "",
"space": 2
},
"outgoing": {
"stringified": null
},
"error": ""
},
"deprecated": false,
"matched": [],
"groups": [],
"actor": "Pronghorn",
"x": 1.8321108394458028,
"y": 0.31066666666666665,
"scheduled": false
}
},
"transitions": {
"2246": {},
"3672": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"3947": {
"67bd": {
"type": "standard",
"state": "success"
}
},
"9518": {
"30de": {
"type": "standard",
"state": "success"
}
},
"workflow_start": {
"52d4": {
"type": "standard",
"state": "success"
}
},
"workflow_end": {},
"fa8f": {},
"2f57": {},
"f6ec": {},
"3a9b": {},
"6f78": {
"a04b": {
"type": "standard",
"state": "success"
}
},
"a04b": {
"d403": {
"type": "standard",
"state": "success"
}
},
"d403": {
"c4be": {
"type": "standard",
"state": "failure"
},
"134b": {
"type": "standard",
"state": "success"
}
},
"e49d": {
"a41c": {
"type": "standard",
"state": "success"
}
},
"a41c": {
"b5ef": {
"type": "standard",
"state": "success"
}
},
"214a": {},
"67bd": {
"9518": {
"type": "standard",
"state": "success"
}
},
"c4be": {
"workflow_end": {
"type": "standard",
"state": "failure"
},
"67bd": {
"type": "revert",
"state": "success"
}
},
"b5ef": {
"workflow_end": {
"type": "standard",
"state": "success"
},
"b641": {
"type": "standard",
"state": "error"
}
},
"b284": {
"ba02": {
"type": "standard",
"state": "success"
},
"a5e7": {
"type": "standard",
"state": "error"
}
},
"52d4": {
"b284": {
"type": "standard",
"state": "success"
}
},
"ba02": {
"2dea": {
"type": "standard",
"state": "success"
}
},
"2dea": {
"3947": {
"type": "standard",
"state": "success"
}
},
"134b": {
"e49d": {
"type": "standard",
"state": "success"
}
},
"30de": {
"3672": {
"type": "standard",
"state": "error"
},
"6f78": {
"type": "standard",
"state": "success"
}
},
"a5e7": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"a610": {
"workflow_end": {
"type": "standard",
"state": "failure"
},
"67bd": {
"type": "revert",
"state": "success"
}
},
"b641": {
"a610": {
"type": "standard",
"state": "success"
}
}
},
"font_size": 12,
"created": "2020-09-15T14:55:12.544Z",
"created_by": {
"provenance": "Local AAA",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": true,
"email": ""
},
"createdVersion": "5.10.4-2020.1.22.0",
"last_updated": "2021-03-09T16:16:10.624Z",
"last_updated_by": {
"provenance": "local_aaa",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false,
"email": "rahul.chakraborty@itential.com"
},
"lastUpdatedVersion": "5.29.14-2020.2.9",
"type": "automation",
"description": null,
"canvasVersion": 1,
"inputSchema": {
"type": "object",
"properties": {
"formData": {
"type": "object",
"examples": [
{
"name": "value"
}
]
}
},
"required": [
"formData"
]
},
"outputSchema": {
"type": "object",
"properties": {
"formData": {
"type": "object",
"examples": [
{
"name": "value"
}
]
},
"_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$"
},
"initiator": {
"type": "string"
},
"formData1": {
"type": [
"array",
"boolean",
"null",
"number",
"object",
"string"
]
},
"adapter_id": {
"type": [
"string",
"number",
"object",
"integer",
"array",
"boolean",
"null"
],
"examples": [
"value"
]
}
}
},
"tags": [],
"groups": []
}