UNPKG

@itentialopensource/email-notification

Version:

[Deprecated] Send Email Notifications

382 lines 9.16 kB
{ "name": "Email Notification", "tasks": { "8954": { "name": "transformation", "canvasName": "transformation", "summary": "Parse receiver emails", "description": "Perform a JSON Transformation using the JST library.", "location": "Application", "locationType": null, "app": "WorkFlowEngine", "type": "operation", "displayName": "WorkFlowEngine", "variables": { "incoming": { "tr_id": "64b16d632fd532015bdf29f9", "variableMap": { "receiverList": "$var.job.to" }, "options": { "extractOutput": true, "validateIncoming": true, "revertToDefaultValue": true } }, "outgoing": { "receiverList": null }, "decorators": [] }, "deprecated": false, "groups": [], "x": -0.39810834049871024, "y": 0.6856780735107731, "task_name": "Parse receiver emails", "retrySettings": null }, "workflow_start": { "name": "workflow_start", "groups": [], "x": -0.5107480653482374, "y": 0.6717363751584284 }, "workflow_end": { "name": "workflow_end", "groups": [], "x": 0.2003439380911436, "y": 0.6730038022813688 }, "4bd0": { "name": "transformation", "canvasName": "transformation", "summary": "Create Error Response", "description": "Create Error Response", "location": "Application", "locationType": null, "app": "WorkFlowEngine", "type": "operation", "displayName": "WorkFlowEngine", "variables": { "incoming": { "tr_id": "5ff35e589bc9347a490356a7", "variableMap": { "status": "error", "taskData": "$var.803.error" }, "options": { "extractOutput": true, "validateIncoming": false, "revertToDefaultValue": false } }, "outgoing": { "automationStatus": null }, "decorators": [] }, "deprecated": false, "groups": [], "x": -0.08598452278589853, "y": 0.9277566539923955, "retrySettings": null }, "465b": { "name": "transformation", "canvasName": "transformation", "summary": "Create Success Response", "description": "Create Success Response", "location": "Application", "locationType": null, "app": "WorkFlowEngine", "type": "operation", "displayName": "WorkFlowEngine", "variables": { "incoming": { "tr_id": "5ff35e589bc9347a490356a7", "variableMap": { "status": "success", "taskData": "$var.be47.response" }, "options": { "extractOutput": true, "validateIncoming": false, "revertToDefaultValue": false } }, "outgoing": { "automationStatus": null }, "decorators": [] }, "deprecated": false, "groups": [], "x": -0.049011177987962166, "y": 0.6806083650190115, "retrySettings": null }, "6fe9": { "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": "automationStatus", "value": "$var.465b.automationStatus" }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": 0.09458297506448839, "y": 0.6768060836501901 }, "4b75": { "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": "automationStatus", "value": "$var.4bd0.automationStatus" }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": 0.06362854686156492, "y": 0.9049429657794676 }, "be47": { "name": "mailWithOptions", "canvasName": "mailWithOptions", "summary": "Send email with cc, bcc, and attachment options", "description": "Email a message with cc, bcc, and attachment options.", "location": "Adapter", "locationType": "EmailOpensource", "app": "EmailOpensource", "type": "automatic", "displayName": "EmailOpensource", "variables": { "incoming": { "from": "$var.job.from", "to": "$var.8954.receiverList", "subject": "$var.job.subject", "body": "$var.job.body", "displayName": "", "cc": "", "bcc": "", "attachments": "", "adapter_id": "$var.job.adapterId" }, "outgoing": { "response": null }, "error": "", "decorators": [] }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": -0.23093371347113328, "y": 0.693359375, "scheduled": false } }, "transitions": { "4971": {}, "8954": { "be47": { "type": "standard", "state": "success" } }, "workflow_start": { "8954": { "type": "standard", "state": "success" } }, "workflow_end": {}, "d30a": {}, "4bd0": { "4b75": { "type": "standard", "state": "success" } }, "465b": { "6fe9": { "type": "standard", "state": "success" } }, "6fe9": { "workflow_end": { "type": "standard", "state": "success" } }, "4b75": { "workflow_end": { "type": "standard", "state": "success" } }, "be47": { "465b": { "type": "standard", "state": "success" }, "4bd0": { "type": "standard", "state": "error" } } }, "font_size": 12, "created": "2020-12-16T22:25:34.630Z", "created_by": { "provenance": "LDAP Server", "username": "abhansali", "firstname": "Ankit", "inactive": true }, "createdVersion": "5.10.4-2020.1.22.0", "last_updated": "2023-07-18T14:37:26.986Z", "last_updated_by": { "provenance": "local_aaa", "username": "admin@pronghorn", "firstname": "admin", "inactive": false }, "lastUpdatedVersion": "5.46.0-2023.1.13.0", "type": "automation", "description": null, "inputSchema": { "type": "object", "properties": { "to": { "$id": "receiverList", "type": "string" }, "from": { "title": "from", "type": "string", "examples": [ "example@itential.com" ], "minLength": 1 }, "subject": { "title": "subject", "type": "string", "examples": [ "Successful Device Deployment" ] }, "body": { "title": "body", "type": "string", "examples": [ "Your device successfully deployed with the following details..." ] }, "adapterId": { "type": [ "array", "boolean", "null", "number", "object", "string" ] } }, "required": [ "to", "from", "subject", "body", "adapterId" ] }, "outputSchema": { "type": "object", "properties": { "to": { "$id": "receiverList", "type": "string" }, "from": { "title": "from", "type": "string", "examples": [ "example@itential.com" ], "minLength": 1 }, "subject": { "title": "subject", "type": "string", "examples": [ "Successful Device Deployment" ] }, "body": { "title": "body", "type": "string", "examples": [ "Your device successfully deployed with the following details..." ] }, "adapterId": { "type": [ "array", "boolean", "null", "number", "object", "string" ] }, "_id": { "type": "string", "pattern": "^[0-9a-f]{24}$" }, "initiator": { "type": "string" }, "automationStatus": { "type": [ "array", "boolean", "null", "number", "object", "string" ] } } }, "migrationVersion": 2, "canvasVersion": 1, "tags": [], "groups": [] }