Try OpenEdge Now
skip to main content
BP Server Developer's Guide
E-mail templates for task completion : HTML e-mail templates : HTML template with dynamic content
 

HTML template with dynamic content

An HTML e-mail template file comprises of a header, the process-data, and a footer, and it has an ".htl" extension. An HTML e-mail template can use any of the e-mail variables and/or process-context variables. To complete a task successfully using an HTML template, you must enable the JavaScript option in your e-mail client. Otherwise, when you click the Submit button in your e-mail client, an error message is displayed and the task is not completed.
HTML templates can be classified into the following categories:
*Default templates (assigned.htl, available.htl)
*Custom templates with static file names (assignedwi.htl , availablewi.htl)
*Custom template using form fields
A custom template using form fields can be specified through the FormName field of the workstep properties. The file name for a custom template using form fields can be specified through a mapped dataslot and it must end with "_assigned.htl" or "_available.htl".
The directories where these templates are stored are as follows:
*Custom template using form fields: OEBPS_HOME\ebmsapps\<appName>\templates\email\<wsName>\
*Custom Templates with static file names: OEBPS_HOME\ebmsapps\<appName>\templates\email\<wsName>\
*Default Templates: OEBPS_HOME\ebmsapps\common\templates\email\
Also note that in the case of a custom template using form fields, the mapped dataslot template filenames should end with "_assigned", whereas in the case of a custom template with static filename, the filenames should end with "assignedwi" or "availablewi".
The order in which BP Server searches the templates is as follows:
*Custom template using form fields
*Custom Templates with static file names
*Default Templates
The Header(header.htl) and Footer(footer.htl) templates from the \common\templates\email folder are included in all type of templates mentioned above.
Depending on the template type specified for the bpserver.email.preferred.template.type parameter in the oebpsemail.properties file, BP Server selects either etl or htl templates. If the specified template is not available at the specified location, then BP Server looks for any other template in the same location.