All Downloads are FREE. Search and download functionalities are using the official Maven repository.

BPMLeaveRequestIT.tasks.send-approved-notification.ts Maven / Gradle / Ivy

The newest version!
import { process } from "sdk/bpm"
import { sendMail } from "./mail-util"

const execution = process.getExecutionContext();
const executionId = execution.getId();

const processVariables = process.getVariables(executionId);

const fromDate = processVariables.fromDate;
const toDate = processVariables.toDate;
const approver = processVariables.approver;
const requester = processVariables.requester;

const subject = "Your leave request has been approved";
const content = `

Your leave request from [${fromDate}] to [${toDate}] has been approved by [${approver}]

`; sendMail(requester, subject, content)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy