An email can be defined directly in your process model by using Mail Nodes, which are activity shapes from type 'Send'. Each email needs at least one recipient, a mail subject, and a mail body.
In every mail node, process variables can be used to integrate information from the form into the mail. For this purpose, the following syntax must be used:
${nameOfTheProcessVariable} |
In context, the text of a mail node could look like this:
Mail to: ${mailAdressOfRecipient} Mail subject: Info Mail text: The email has been sent from the process instance ${processInstanceName}. |
The text must be masked in order to send HTML mails. For this purpose, the text must be in included in a CDATA block.
<![CDATA[<html>...]]> |
Mail nodes can also be used to send documents that belong to the current process. For this purpose, the following parameter must be inserted into the mail text. The 'IDENTIFIER' is used to attach only needed documents and must be adapted according to the following descriptions. It is possible to use more than one identifier in one mail node.
{ATTACH_'IDENTIFIER'} |
The maximum size of attachments can also be specified in the client profile. If this is exceeded in a mail node, the documents are not attached to the email, but the mail body contains a link for downloading these attachments.
The first document added to the process will be attached to the email. This can also be restricted to the file format.
{ATTACH_FIRST_PDF} |
The latest document added to the process will be attached to the email. This can also be restricted to the file format.
{ATTACH_LAST_docx} |
All documents will be attached to the email. This can also be restricted to the file format.
{ATTACH_ALL_pdf} |
A document from the resource folder can also be attached directly to the email.
{ATTACH_RESOURCE:document.docx} |
If a file is located in a subdirectory of the resource folder, please include the path to the document.
{ATTACH_RESOURCE:folder1/pdf.pdf} |
All attached documents of a process instance with the file format specified in the Regular Expression will be attached to the email. To check the regex expression, use this link.
{ATTACH_REGEXP_ALL_(docx)$|(pdf)$} |
The first attached document of a process instance with the file format specified in the Regular Expression will be attached to the email.
{ATTACH_REGEXP_FIRST_(docx)$|(pdf)$} |
The latest attached document of a process instance with the file format specified in the Regular Expression will be attached to the email.
{ATTACH_REGEXP_LAST_(docx)$|(pdf)$} |
To ensure that the reply to an email goes to the correct recipient, you can specify who should receive the reply.
ADD_ANSWER_TO[REPLACE ME!] |
One or more email addresses, users, groups, or swimlanes, separated by comma or semicolon, can be assigned.
ADD_ANSWER_TO[REPLACE ME!,REPLACE ME!,REPLACE ME!] |
ADD_ANSWER_TO[user(REPLACE ME!)] |
ADD_ANSWER_TO[group(REPLACE ME!)] |
ADD_ANSWER_TO[swimlane(REPLACE ME!)] |
A variable can contain more than one mail address, but these must be separated by a comma or semicolon.
ADD_ANSWER_TO[${REPLACE ME!}] |
One or more email addresses, users, groups, or swimlanes, separated by comma or semicolon, can be assigned.
ADD_CC[REPLACE ME!] |