Delegation

Parent Previous Next

When you delegate a task, the recipient of the task receives an e-mail. If no adjustments have been made, the default text will be sent.

You can either customize the default text or create a template.



Standard Mail

You can customize the standard subject and body of the e-mail in the Backend.Config.xml of IYOPRO.

To do this, simply exchange the values of the keys DELEGATE_MAIL_SUBJECT_PREFIX and DELEGATE_MAIL_BODY_ADDITION with the texts you require.


You may use the following tags within your text:


The tag {USERNAME} is replaced with the original user's name.

The tag {COMMENT} is replaced with the comment provided by the person who delegated the task.

Use \n as new line indicator.




Template Mail

With the template you are able to not only customize the text of your e-mail but also design your e-mail.


Create the template for the mail body

For IYOPRO to use the template, there has to be a file named "DelegationInfo" at the following location:



The file can be either a .html or a .txt file.


In case of a delegation the template will be processed and sent with the following tags:


Except for Context TaskUrl, use $ characters instead of braces around the tags: $USERNAME$


Sample

This example shows a possible design of the e-mail body in html.


<table style="font-family:Tahoma, 'Times New Roman', serif;" width="100%">

   <tr bgcolor="#ffc000">

       <td style="padding-left:10px;"><b>Task was delegated by:</b></td>

       <td>$USERNAME$</td>

   </tr>

   <tr bgcolor="#ffc000">

       <td style="padding-left:10px;">Task:</td>

       <td><a href="{Context TaskUrl}" target="_blank">{Binding Token.Control.Name}</a></td>

   </tr>

   <tr bgcolor="#ffc000">

       <td style="padding-left: 10px;">Process:</td>

       <td>{Binding ProcessInstance.Name} [{Binding ProcessInstance.Id}]</td>

   </tr>

   <tr bgcolor="#ffc000">

       <td style="padding-left: 10px;">Details:</td>

       <td>{Binding ProcessInstance.Details}</td>

   </tr>

   <tr bgcolor="#ffc000">

       <td style="padding-left: 10px;">Comment: </td>

       <td>$COMMENT$</td>

   </tr>

</table>

<br />


Create the template for the mail subject

To use a custom mail subject, there has to be a .txt file named "DelegationInfo-Title" at the same location as the template for the mail body.


You may use the following tags:


Use $ characters instead of braces around the tags.


Sample

EN = IYOPRO task $SUBJECT$ was delegated by $USERNAME$