[jboss-user] [jBPM] - Re: Business Calendar - Saturday Working Day
Alejandro Guizar
do-not-reply at jboss.com
Wed Sep 15 06:29:34 EDT 2010
Alejandro Guizar [http://community.jboss.org/people/alex.guizar%40jboss.com] created the discussion
"Re: Business Calendar - Saturday Working Day"
To view the discussion, visit: http://community.jboss.org/message/561707#561707
--------------------------------------------------------------
> 1) Is the method of including Saturday as a working day specified above incorrect?
The configuration is correct, the placement might be wrong.
> 2) In what manner can the above be accomplished?
jbpm.businesscalendar.cfg.xml is only read if your jbpm.cfg.xml file imports it explicitly. If your jbpm.cfg.xml resource does import jbpm.businesscalendar.cfg.xml, it is possible that the default resource in jbpm-pvm.jar precedes the custom resource in the classpath and thus hides your custom configuration. To avoid this problem, there are two choices.
1. Rename your custom resource to a different name such as my.calendar.cfg.xml. Import my.calendar.cfg.xml from your jbpm.cfg.xml.
2. Place your business calendar configuration directly in jbpm.cfg.xml and remove the jbpm.businesscalendar.cfg.xml import, if any. This is the approach taken in the http://anonsvn.jboss.org/repos/jbpm/jbpm4/trunk/modules/test-cfg/src/test/java/org/jbpm/test/custom/cal/cfg/CustomBusinessCalendarCfgTest.java CustomBusinessCalendarCfgTest, which reads the following http://anonsvn.jboss.org/repos/jbpm/jbpm4/trunk/modules/test-cfg/src/test/resources/org/jbpm/test/custom/cal/cfg/jbpm.cfg.xml configuration.
<jbpm-configuration>
<import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.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"/>
<saturday hours="9:00-18:00"/>
</business-calendar>
</process-engine-context>
</jbpm-configuration>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/561707#561707]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100915/fce69576/attachment.html
More information about the jboss-user
mailing list