Designing User Message Forms
The user message forms are custom dialogs that are presented to users when they are invited to interact with user messages. The dialogs are separate user interface elements that can be accessed via the ${UserMessage_Link}
link in user message notification emails.
The user message uses the System_UserMessage_Notification definition in the partition of the user message as the email source. If this definition does not exist, it uses the GLOBAL.System_UserMessage_Notification definition. Note that the source of GLOBAL.System_UserMessage_Notification cannot be edited and contains no link to the form, so you duplicate it and place it in the same partition as your user message.
tip
When you duplicate GLOBAL.System_UserMessage_Notification, the system automatically removes the System_ prefix from the name; you have to revert this. The user message will only use System_UserMessage_Notification, not UserMessage_Notification.
Prerequisites
- The Module.Forms license key set to
true
. - Users interacting with user message forms need at least Use privileges on Restricted Scheduler Session Specification, Edit Processes on the user message process definition, and the scheduler-business-user role.
- A link to the form must be available; usually sent in the email.
- A user message process definition
Procedure
Create the Form
- Navigate to "Definitions > Processes".
- Choose Open Form Editor from the context-menu of your user message.
- Drag a Text control onto the first gray square in the title bar of the form, specify a title.
- For each parameter you want the user to see or interact with, you add a control.
- Choose Save and Close.
Duplicate the Notification Process Definition
- Navigate to "Definitions > Processes".
- Choose Duplicate from the context-menu of the GLOBAL.System_UserMessage_Notification process definition.
- In the newly opened editor, add the System_ prefix and select another partition; if you have no partition, close the editor and follow the Create a Partition procedure below. Proceed with step 2 of this procedure once the new partition has been created.
- In the Source field, add a link to the user message form (
${UserMessage_Link}
). - Choose Save & Close.
- Change the partition of the user message definition to the same as the newly created System_UserMessage_Notification definition; you may as well duplicate it.
Create a Partition (Optional)
- Navigate to "Security > Partitions".
- Choose Create Partition from the context-menu.
- Specify a Name and optionally a Description.
- Choose Save & Close.
Example
Link to the Form
You add a link to the user message form to the System_UserMessage_Notification in your partition by specifying the ${UserMessage_Link}
in the href
attribute.
A Mail definition Source field:
dy>Dear ${Subject_Name}<br/>
<br/>
${UserMessage_Operator} ${UserMessage_Action} User Message "${UserMessage_Text}" to ${UserMessage_NewAssignee}. [?if test="parameters.UserMessage_OldAssignee !== null"?] It was previously assigned to ${UserMessage_OldAssignee}.[?endif?]<br/>
User Message Files:<br/>
${UserMessage_FileLinks}<br/>
<br/>
[?=UserMessage.renderHistoryAsHTML(parameters.UserMessage_UniqueId, 'email')?]<br/>
<br/>
This is an automatically generated email. If this email was sent in error please contact the system administrator.<br/>
</body></html>
[Headers]
subject=Notification: ${UserMessage_Text}
In the following Mail definition, Click <a href="${UserMessage_Link}">here</a> to reply.<br />
was inserted into the Source field below:
<html><body>Dear ${Subject_Name}<br/>
<br/>
${UserMessage_Operator} ${UserMessage_Action} User Message "${UserMessage_Text}" to ${UserMessage_NewAssignee}. [?if test="parameters.UserMessage_OldAssignee !== null"?] It was previously assigned to ${UserMessage_OldAssignee}.[?endif?]<br/>
User Message Files:<br/>
${UserMessage_FileLinks}<br/>
<br/>
[?=UserMessage.renderHistoryAsHTML(parameters.UserMessage_UniqueId, 'email')?]<br/>
<br/>
Click <a href="${UserMessage_Link}">here</a> to reply.<br />
This is an automatically generated email. If this email was sent in error please contact the system administrator.<br/>
</body></html>
[Headers]
subject=Notification: ${UserMessage_Text}
See Also
usermessage user message