Automation
1. AutomateScheduleTaskNotification
a. Automation
ensure automation AutomateScheduleTaskNotification kind: scheduled
modules: ["TaskList"]
startDateTime: "31/05/2024, 01:00:00"
repeatFrequencyKind: days
frequency: 1
b. Event
ensure event OnFire fire: onExpiry
ensure pipelineVar PendingInCompleteTask form: OutputPendingTask
d. CallReportInCompleteTasks
ensure var VarMappingPendingTaskToPendingTask kind: mapping
modules: ["TaskList"]
deploy: fixedOnDeploy
fromForm: OutputPendingTask
fromGrid: TaskDetails
toForm: OutputPendingTask
toGrid: TaskDetails
gridMappingMap: {
'MappingwVOGen': {
'fromGrid': 'TaskDetails',
'toGrid': 'TaskDetails',
'fromKey': '$RowId',
'toKey': '$RowId',
'insertVariant': 'insertForced',
'updateVariant': 'updateForced',
'removeVariant': 'removeForced',
'emptyVariant': 'overrideEmptyField',
'map': {
'${f:TaskDetails.Date}': 'TaskDetails.Date',
'${f:TaskDetails.Task}': 'TaskDetails.Task'
}
}
}
ensure automation AutomateScheduleTaskNotification
ensure event OnFire
ensure step CallReportInCompleteTasks kind: callReport
targetReport: ReportGetInCompleteTasks
outputPipelineVar: PendingInCompleteTask
reportOutputMappingVar: VarMappingPendingTaskToPendingTask
e. MessageSendOnWhatsappInCompleteTask
ensure step MessageSendOnWhatsappInCompleteTask kind: sendWhatsappTemplateMessage
executionConditionInputPipelineVar: PendingInCompleteTask
inputFormPipelineVar: PendingInCompleteTask
dataSourceRoles: [Member]
templateGroupId: "909f70f4e4203e4539fd6a79afd16c5a"
messageVarMap: ["{
'var':'VarTextPatternInCompleteTaskWhatsAppMessage',
'paramSet':['${f:TaskDetails.Task}']
}"]
f. MessageSendOnEmailInCompleteTasks
ensure step MessageSendOnEmailInCompleteTasks kind: sendEmail
inputFormPipelineVar: PendingInCompleteTask
dataSourceRoles: [Member]
messageVar: {
'var': 'VarParagraphInCompleteTaskEmailBody',
'paramSet': [
'${f:TaskDetails.Task}'
]
}
subjectVar: {
'var': 'VarTextPatternInCompleteTaskSubject'
}