MailSender delegate
Field name
Required
Description
<scriptTask id="scripttask1" name="Notify Requester" scriptFormat="groovy" activiti:autoStoreVariables="false">
<script><![CDATA[
def usersIds = users.getUserIds("role(Requester)");
if (usersIds.isEmpty()){
loggerApi.warn("No users to send a mail to, no mail will be sent");
} else {
mail.sendMails(usersIds, "in-progress", null, execution);
}
]]></script>
</scriptTask>Last updated
Was this helpful?