{
"name": "appmixer.utils.tasks.RequestApprovalEmail",
"description": "People Task is a feature that allows human interaction inside workflows.",
"webhook": true,
"config": "appmixer:utils:tasks",
"inPorts": [
{
"name": "task",
"schema": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"requester": {
"type": "string",
"format": "email"
},
"approver": {
"type": "string",
"format": "email"
},
"decisionBy": {
"type": "string",
"format": "date-time"
}
},
"required": [
"title",
"description",
"requester",
"approver",
"decisionBy"
]
},
"inspector": {
"inputs": {
"title": {
"type": "text",
"label": "Task title",
"group": "transformation",
"index": 1,
"tooltip": "The title of the request. This title is displayed in the email that the approver and requester gets as a notification. The title is also displayed in the dashboard that is accessible to the requester and approver."
},
"description": {
"type": "textarea",
"label": "Description",
"group": "transformation",
"index": 2,
"tooltip": "The description of the request. This description is displayed in the email that the approver and requester gets as a notification. The description is also displayed in the dashboard that is accessible to the requester and approver. Markdown is supported. Try <code>*italic*</code>, <code>**bold**</code>, or <code>[link](url)</code>."
},
"requester": {
"type": "text",
"label": "Requester email",
"group": "transformation",
"index": 3,
"tooltip": "The email address of the requester."
},
"approver": {
"type": "text",
"label": "Approver email",
"group": "transformation",
"index": 4,
"tooltip": "The email address of the approver."
},
"decisionBy": {
"type": "date-time",
"label": "Decision by",
"group": "transformation",
"index": 5,
"tooltip": "The time by which the request must be rejected or confirmed."
}
},
"groups": {
"transformation": {
"label": "Transformation",
"index": 1
}
}
}
}
],
"outPorts": [
{
"name": "approved",
"options": [
{
"label": "Task ID",
"value": "id"
},
{
"label": "Title",
"value": "title"
},
{
"label": "Description",
"value": "description"
},
{
"label": "Status",
"value": "status"
},
{
"label": "Approver",
"value": "approver"
},
{
"label": "Requester",
"value": "requester"
},
{
"label": "Decision by",
"value": "decisionBy"
},
{
"label": "Decision made",
"value": "decisionMade"
}
]
},
{
"name": "rejected",
"options": [
{
"label": "Task ID",
"value": "id"
},
{
"label": "Title",
"value": "title"
},
{
"label": "Description",
"value": "description"
},
{
"label": "Status",
"value": "status"
},
{
"label": "Approver",
"value": "approver"
},
{
"label": "Requester",
"value": "requester"
},
{
"label": "Decision by",
"value": "decisionBy"
},
{
"label": "Decision made",
"value": "decisionMade"
}
]
},
{
"name": "due",
"options": [
{
"label": "Task ID",
"value": "id"
},
{
"label": "Title",
"value": "title"
},
{
"label": "Description",
"value": "description"
},
{
"label": "Status",
"value": "status"
},
{
"label": "Approver",
"value": "approver"
},
{
"label": "Requester",
"value": "requester"
},
{
"label": "Decision by",
"value": "decisionBy"
},
{
"label": "Decision made",
"value": "decisionMade"
}
]
}
],
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBpZD0iR3JvdXBfNTQxIiBkYXRhLW5hbWU9Ikdyb3VwIDU0MSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0zNjEpIj4KICAgIDxyZWN0IGlkPSJSZWN0YW5nbGVfMzMzNSIgZGF0YS1uYW1lPSJSZWN0YW5nbGUgMzMzNSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMiAzNjEpIiBmaWxsPSJub25lIi8+CiAgICA8ZyBpZD0iYXBwLnV0aWxzLnRhc2tzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNCAzNjMpIj4KICAgICAgPHBhdGggaWQ9InRhc2stbGlzdCIgZD0iTTYsMGg4YTYsNiwwLDAsMSw2LDZ2OGE2LDYsMCwwLDEtNiw2SDZhNiw2LDAsMCwxLTYtNlY2QTYsNiwwLDAsMSw2LDBaTTYsMkE0LDQsMCwwLDAsMiw2djhhNCw0LDAsMCwwLDQsNGg4YTQsNCwwLDAsMCw0LTRWNmE0LDQsMCwwLDAtNC00Wm02LDdoM2ExLDEsMCwwLDEsMCwySDEyYTEsMSwwLDAs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