Difference between revisions of "JBPM3 mail configuration"

From OpenKM Documentation
Jump to: navigation, search
m
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
jBPM configuration file is located at $JBOSS_HOME/server/default/deploy/OpenKM.war/WEB-INF/classes/jbpm.cfg.xml. If you edit this file, you will see something like this:
+
The jBPM configuration file is located at '''$TOMCAT_HOME/webapps/OpenKM/WEB-INF/classes/jbpm.cfg.xml'''. If you edit this file, you will see something like this:
  
 
<source lang="xml">
 
<source lang="xml">
<string name="jbpm.mail.smtp.host" value="smtp.your-domain.com " />
+
<jbpm-configuration>
<string name="jbpm.mail.from.address" value="noreply@your-domain.com" />
+
  <string name="jbpm.mail.smtp.host" value="smtp.your-domain.com " />
<string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
+
  <string name="jbpm.mail.from.address" value="noreply@your-domain.com" />
<bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.OKMAddressResolver" singleton="true"/>
+
  <string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
 +
  <bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.AddressResolver" singleton="true"/>
 +
</jbpm-configuration>
 
</source>
 
</source>
  
As in JBoss mail configuration, you have to edit a couple of properties:
+
{{Note|In OpenKM 6.2.x you can also configure jBPM by creating a file '''$TOMCAT_HOME/jbpm.xml'''. If still using OpenKM 5.1.x, the right path is '''$JBOSS_HOME/jbpm.xml'''.}}
  
* '''jbpm.mail.smtp.host''': this is the host where is located your mail server. Can be localhost if you have a local mail server installed (like Postfix) Typically the same value of mail.smtp.host.
+
{{Note|In older OpenKM installations with JBoss, the path is '''$JBOSS_HOME/server/default/deploy/OpenKM.war/WEB-INF/classes/jbpm.cfg.xml'''}}
* '''jbpm.mail.from.address''': all the mails send by OpenKM will be from this mail. Can be in the form of noreply@your-domain.com. Typically the same value of mail.from.
 
  
jBPM notify you when a task has been assigned to you or when he wants to send you a reminder. These mail templates are defined in the file jbpm.mail.templates.xml which is located at the same place of the previous one. Here you can define a more elegant mail
+
As with the Tomcat mail configuration, you have to edit a couple of properties:
message. Also you have to configure a parameter here:
 
  
* '''BaseTaskListURL''': a value in the form of http://your-domain.com:8080/OpenKM.
+
* '''jbpm.mail.smtp.host''': this is the host where your mail server is located. Can be localhost if you have a local mail server installed (like Postfix). Typically the same value as ''mail.smtp.host'' in the Tomcat mail configuration.
 +
* '''jbpm.mail.from.address''': all the mails sent by OpenKM will be from this email address. Can be in the form of noreply@your-domain.com. Typically the same value as ''mail.from'' in the Tomcat mail configuration.
  
For more info, read http://docs.jboss.com/jbpm/v3.2/userguide/html/mail.html.
+
jBPM will notify you when a task has been assigned to you or when it wants to send you a reminder. The email templates are defined in the file '''jbpm.mail.templates.xml''' which is located in the same place as the jBPM configuration file. Here you can define a more elegant mail
 +
message.
 +
 
 +
For more information, read [http://docs.jboss.com/jbpm/v3.2/userguide/html/ch15.html jBPM User Guide: Email Support].
  
 
[[Category: Installation Guide]]
 
[[Category: Installation Guide]]
 
[[Category: Workflow Guide]]
 
[[Category: Workflow Guide]]

Latest revision as of 08:57, 18 July 2013

The jBPM configuration file is located at $TOMCAT_HOME/webapps/OpenKM/WEB-INF/classes/jbpm.cfg.xml. If you edit this file, you will see something like this:

<jbpm-configuration>
  <string name="jbpm.mail.smtp.host" value="smtp.your-domain.com " />
  <string name="jbpm.mail.from.address" value="noreply@your-domain.com" />
  <string name="resource.mail.templates" value="jbpm.mail.templates.xml"/>
  <bean name="jbpm.mail.address.resolver" class="com.openkm.workflow.AddressResolver" singleton="true"/>
</jbpm-configuration>

Nota clasica.png In OpenKM 6.2.x you can also configure jBPM by creating a file $TOMCAT_HOME/jbpm.xml. If still using OpenKM 5.1.x, the right path is $JBOSS_HOME/jbpm.xml.


Nota clasica.png In older OpenKM installations with JBoss, the path is $JBOSS_HOME/server/default/deploy/OpenKM.war/WEB-INF/classes/jbpm.cfg.xml

As with the Tomcat mail configuration, you have to edit a couple of properties:

  • jbpm.mail.smtp.host: this is the host where your mail server is located. Can be localhost if you have a local mail server installed (like Postfix). Typically the same value as mail.smtp.host in the Tomcat mail configuration.
  • jbpm.mail.from.address: all the mails sent by OpenKM will be from this email address. Can be in the form of noreply@your-domain.com. Typically the same value as mail.from in the Tomcat mail configuration.

jBPM will notify you when a task has been assigned to you or when it wants to send you a reminder. The email templates are defined in the file jbpm.mail.templates.xml which is located in the same place as the jBPM configuration file. Here you can define a more elegant mail message.

For more information, read jBPM User Guide: Email Support.