Notification messages are based on a message template that determines the format and contents of an e-mail notification message, including the message subject and body. A template is an HTML-formatted document that you can view or change as required to customize notification messages. The template text may include dynamic content that is generated at runtime by retrieving information from the running instance of the workflow process. You have the option to attach a report on the workflow execution results to the notification message. Notification messages are created, and normally sent, in HTML format. You can optionally configure the activity to format and send notification messages as plain text.
The Web Interface address setting specifies the address (URL) of the Active Roles Web Interface. The activity uses this setting to construct hyperlinks in the notification messages.
The e-mail server setting determines the name and other parameters of the e-mail server that is used for delivery of notification messages.
Script activities are typically used to perform automated steps in a workflow process. A Script activity is defined by a Script module created in Active Roles. Each Script module contains script code implementing certain functions. New Script modules can freely be added and the Script contained in a Script module can be developed and revised as necessary. This provides a mechanism for creating custom functions, enabling the extensibility of actions performed by a workflow.
Script activity has the following basic configuration settings:
- Script to use. Identifies the Script module to be used by the activity. Normally, the script held in the Script Module implements at least two functions: the function that will be run by the activity and the function that defines the activity parameters.
- Function to run. Identifies the script function that will be run by the activity.
- Function to declare parameters. Identifies the Script function that defines the activity parameters. For each parameter, this function defines the name of the parameter and other characteristics, such as a description, a list of possible values, the default value, and whether a value is required. Normally, the parameters are declared by a function named onInit.
- Parameter values. When Active Roles executes a Script activity, it passes the parameter values to the script function being run by that activity. The actions performed by the activity, and the results of those actions, depend upon the parameter values.
More information and instructions that apply to designing, implementing and using scripts, script modules, and script activities can be found in the Active Roles SDK documentation.