Este contenido no está disponible en el idioma seleccionado.
Chapter 11. Business Calendar
		Read this chapter to learn about the Business Process Manager's calendar functionality, which is used to calculate due dates for tasks and timers.
	
		It does so by adding or subtracting a duration with a base date. (If the base date is omitted, the current date is used by default.)
	
11.1.  Due Date 
Copiar enlaceEnlace copiado en el portapapeles!
			The due date is comprised of a duration and a base date. The formula used is: 
duedate ::= [<basedate> +/-] <duration>
		11.1.1.  Duration 
Copiar enlaceEnlace copiado en el portapapeles!
				A duration is specified in either absolute or business hours by use of this formula: 
duration ::= <quantity> [business] <unit>
			
				In the calculation above, 
<quantity> must be a piece of text that is parsable with Double.parseDouble(quantity). <unit> will be one of: second, seconds, minute, minutes, hour, hours, day, days, week, weeks, month, months, year or years. Adding the optional business flag will mean that only business hours will be taken into account for this duration. (Without it, the duration will be interpreted as an absolute time period.)
			11.1.2.  Base Date 
Copiar enlaceEnlace copiado en el portapapeles!
				The base date is calculated in this way: 
basedate ::= <EL>.
			
				In the formula above, 
<EL> can be any Java Expression Language expression that resolves to a Java Date or Calendar object.
			Warning
					Do not reference variables of any other object types, as this will result in a 
JbpmException error.
				
				The base date is supported in a number of places, these being a plain timer's duedate attributes, on a task reminder and the timer within a task. However, it is not supported on the repeat attributes of these elements.
			
11.1.3.  Due Date Examples 
Copiar enlaceEnlace copiado en el portapapeles!
				The following uses are all valid:
			
11.2.  Calendar Configuration 
Copiar enlaceEnlace copiado en el portapapeles!
			Define the business hours in the 
org/jbpm/calendar/jbpm.business.calendar.properties file. (To customize this configuration file, place a modified copy in the root of the classpath.)
		
			This is the default business hour specification found in 
jbpm.business.calendar.properties:
		11.3.  Examples 
Copiar enlaceEnlace copiado en el portapapeles!
			The following examples demonstrate different ways in which it can be used:
		
			Having studied this chapter, you now understand how the Business Calendar works.