- 9.1. Business calendar
- 9.2. Console
- 9.3. Email
To customize the business calendar configuration,
remove the default business calendar configuration import
and replace it with the custom values.
<jbpm-configuration>
<import resource="jbpm.businesscalendar.cfg.xml" />
...
<process-engine-context>
<business-calendar>
<monday hours="9:00-18:00"/>
<tuesday hours="9:00-18:00"/>
<wednesday hours="9:00-18:00"/>
<thursday hours="9:00-18:00"/>
<friday hours="9:00-18:00"/>
<holiday period="01/02/2009 - 31/10/2009"/>
</business-calendar>
</process-engine-context>
</jbpm-configuration>
By default the server host and port of the console
web app are respectively
localhost
and
8080
. It is not hard to imagine
situations where it is needed to change those defaults.
Hence they are made configurable. To customize,
change the values of the default configuration
(e.g. in the file "jbpm.console.cfg.xml")
and replace them with the values you want.
<jbpm-configuration>
<process-engine-context>
<string name="jbpm.console.server.host" value="myNewHost">
<string name="jbpm.console.server.port" value="9191">
</process-engine-context>
</jbpm-configuration>
The default configuration looks for a
jbpm.mail.properties
classpath resource containing JavaMail properties
.
To send mail through a server other than local host, set the
mail.smtp.host
property in the mail properties file.
mail.smtp.host=localhost
mail.smtp.port=25
mail.from=noreply@jbpm.org
If the SMTP server requires authentication, the application can supply a
custom authenticator in the configuration file.
<mail-session>
<mail-server>
<session-properties resource="jbpm.mail.properties" />
<authenticator class='BasicAuthenticator'>
<field name='userName'><string value='aguizar'/></field>
<field name='password'><string value='wontsay'/></field>
</authenticator>
</mail-server>
</mail-session>
In Java EE environments it is often the case that a mail session is already
configured and bound to JNDI. To employ such a session, specify its JNDI name in
the configuration file.
<mail-session>
<mail-server session-jndi='java:comp/env/mail/smtp' />
</mail-session>
For more information follow my Tutorial online @ http://jbpmmaster.blogspot.com/
No comments:
Post a Comment