Skip navigation.

Managing WebLogic Integration Solutions

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Business Calendar Configuration

This section provides the information you need to use the Business Calendar Configuration module of the WebLogic Integration Administration Console to:

Note: You must be logged in as a member of the Administrators, IntegrationAdministrators, or IntegrationOperators group to map, import, or otherwise modify a business calendar. See Default Groups, Roles, and Security Policies.

The following topics are provided:

 


About Business Calendars and Business Time Calculations

Business calendars represent the operating hours of a business. A business calendar specifies a time zone and a set of time period rules. The time period rules determine the days, dates, and hours that are free (available for business activities) and busy (unavailable for business activities). Time period rules are evaluated in sequence as follows:

The following examples illustrate how to a business calendar is constructed.

Example 1

The following is an example of a business calendar for the year 2003:


 

In the above, the first three rules define Mondays, Wednesdays, and Fridays from 9 to 5 as free. By default, all other time is busy. The remaining rules designate the American business holidays that fall on Mondays, Wednesdays, or Fridays as busy, selectively overriding the regular free intervals.

Example 2

The following is an example of a business calendar for a night-shift worker whose regular hours are from 10 PM to 6 AM three nights a week.


 

Of the calendars defined within WebLogic Integration, one must be designated the system calendar. Initially, the system calendar is a default calendar named System Calendar, but you can switch the system calendar designation to a custom calendar at any time.

When allocating worklist tasks to users, the business calendar assigned to a user can be referenced to determine whether or not the user is available. Each user is associated with one of the following:

Calendars can also be assigned to groups, but a group calendar is not "inherited" by users in the group, but rather can be used to determine busy or free time for the group. To learn more about how calendars can be used in determining task dates, see the Introduction in Using the Worklist.

In addition to being mapped to users or groups in order to determine user availability, business calendars are used in the calculation of business time. When specifying the times that business events are to take place (such as a message being sent or a particular task instance becoming overdue), you may wish to express time intervals in business time by associating the interval with a business calendar. For example, suppose the following:

When calculating business time, free time periods are counted to determine when a business time interval has elapsed. Based on the business calendar shown at the beginning of this section, the free days in January fall on the following dates: 3, 6, 8, 10, 13, 15, 17, 22, 24, 27, 29, 31. Since each free day has 8 free hours, a Timer event generator configured to send a message every 24 business hours would send messages at 5 PM on the 8th, 15th, 24th, and 31st.

To learn more about configuring Timer event generators, see Defining Channel Rules for a Timer Event Generator.

When calculating business time against a business calendar, if the interval is specified by a mixture of days, hours, and minutes (for example, 3 days, 4 hours, and 5 minutes), the days are accounted for first, then the hours, and finally the minutes. The passage of a day in a business calendar is the passage of any day or date that has any free time defined for it.

If the calculation lands on a time that is busy, the calendar is rolled in the direction of the operation in one minute intervals until the next free time is reached. For example, if the calculation adds time (addBusinessTime method) and the addition lands on a busy time, the result rolls forward in one minute intervals until next available free minute. Alternately, if the calculation subtracts time (subtractBusinessTime method) and the subtraction lands on a busy time, the result rolls backward in one minute intervals until next available free minute. For instance, if the free time is 9:00 AM. to 5:00 PM, the subtraction rolls back to 4:59 PM.

For additional information about the methods available for business calendar operations (for example, determining whether or not a user is free or determining a due date based on the passage of a business time interval), see the com.bea.wli.calendar.api Javadoc.

 


Overview of the Business Calendar Configuration Module

The following table lists the pages you can access from the Business Calendar Configuration module. The tasks and topics associated with each are provided.

Page

Associated Tasks

Topics

Business Calendar Management

View a list of business calendars. Calendar name, status (in use: true or false), and type (system calendar: true or false) are displayed.

Listing and Locating Business Calendars

Filter the list by business calendar name. Use ? to match any single character or * to match zero or more characters.

Export or import business calendar time period rules and time zone.

Exporting and Importing Business Calendars

View Business Calendar Details

View business calendar properties. Business calendar name, time zone, time period rules, and type (indication of whether or not the calendar is the system calendar) are displayed.

Viewing and Changing Business Calendars

Update time period rules by adding, changing, deleting or reordering rules

Add Business Calendar Time Period Rule

Define a time period rule to be added.

Defining a Time Period Rule

Update Business Calendar Time Period Rule

Change an existing time period rule.

Defining a Time Period Rule

Sort Calendar Rules

Change the order of the rules in the list.

Viewing and Changing Business Calendars

Map Users to a Business Calendar

Select a business calendar and assign the calendar to selected users.

Assigning Business Calendars to Users and Groups

Remove the business calendar assignment from selected users.

Map Groups to a Business Calendar

Select a business calendar and assign the calendar to selected groups.

Assigning Business Calendars to Users and Groups

Remove the business calendar assignment from selected groups.


 

 


Adding a Business Calendar

The Create Business Calendar page allows you to add a new calendar.


 

To add a business calendar:

  1. From the home page, select the Business Calendar Configuration module.
  2. From the left panel, select Create New to display the Create Business Calendar page.
  3. In the Business Calendar Name field, enter a unique name.
  4. Click Create.
  5. The business calendar is created with a default set of time period rules.

  6. Update the time period rules as required. See Viewing and Changing Business Calendars.

 


Listing and Locating Business Calendars

The Business Calendar Management page lists the defined business calendars. For each business calendar, the In Use and Is System Calendar status (true or false) are also displayed.


 

To list and locate roles:

  1. From the home page, select the Business Calendar Configuration module.
  2. To locate a specific business calendar, do one of the following:

 


Viewing and Changing Business Calendars

The View Business Calendar Details page allows you to view the business calendar properties.


 

If you are logged in with sufficient privileges, you can:

To view business calendar properties:

  1. Locate the business calendar. See Listing and Locating Business Calendars.
  2. Click the calendar name to display the View Business Calendar Details page.
  3. The calendar name, time zone, type (system calendar true or false), and time period rules are displayed.

To update the time zone or designate a calendar as the system calendar:

  1. On the View Business Calendar Details page, click Edit Calendar Details.
  2. The Edit Business Calendar page is displayed.


     
  3. Do one or both of the following:

To add a time period rule:

  1. On the View Business Calendar Details page, click Add a New Rule.
  2. The Add Business Calendar Time Period Rule page is displayed.


     
  3. Define the time period as required. See Defining a Time Period Rule.
  4. Click Submit to add the rule and return to the View Business Calendar Details page.

To change a time period rule:

  1. From the Time Period Rules table, select the rule to be changed.
  2. The Update Business Calendar Time Period Rule page is displayed.


     
  3. Define the time period as required. See Defining a Time Period Rule.
  4. Click Submit to update the rule and return to the View Business Calendar Details page.

To sort the time period rules:

  1. On the View Business Calendar Details page, click Sort Calendar Rules.
  2. The Sort Calendar Rules page is displayed.


     
  3. Move the position of a rule by clicking the up or down arrow to the right of the rule.
  4. Click Submit to update the list and return to the View Business Calendar Details page.

To delete a time period rule:

  1. In the Time Period Rules table, click the check box to the left of the rule or rules to be deleted.
  2. Click Delete Rule.

 


Defining a Time Period Rule

The Add Business Calendar Time Period Rule and Update Business Calendar Time Period Rule pages allow you to define the properties of a time period rule. There are three types of rules:

To define a Day of the Week rule:

  1. From the Time Period Type drop-down list, select Day of Week.

  2.  
  3. From the Day of Month drop-down list, select Sun, Mon, Tues, Wed, Thu, Fri, or Sat.
  4. Specify the time period interval in 24 hour time format (also known as military time) as follows:
  5. From the Free or Busy drop-down list, select Free or Busy.

To define a Calendar Date rule:

  1. From the Time Period Type drop-down list, select Calendar Date.

  2.  
  3. In the Year field, specify the year in YYYY format.
  4. From the Month drop-down list, select the month.
  5. From the Day of the Month drop-down list, select the date.
  6. Specify the time period interval in 24 hour time format (also known as military time) as follows:
  7. From the Free or Busy drop-down list, select Free or Busy.

To define a Date Range rule:

  1. From the Time Period Type drop-down list, select Date Range.

  2.  
  3. In the Year field, specify the year in YYYY format.
  4. Select the time period start date as follows:
  5. Select the time period end date as follows:
  6. From the Free or Busy drop-down list, select Free or Busy.

 


Exporting and Importing Business Calendars

You can export and import business calendars. When you export a business calendar, the calendar name, time zone, and business rules are exported in XML format. When you import a calendar, if the name specified by the <sch:name> element in the in the XML file matches an existing calendar, the rules and time zone defined in the existing calendar are overwritten by the rules defined in the XML file. If the name specified by the <sch:name> element does not match any existing calendar, a new calendar is created.

If the calendar you are importing has the same name as the calendar currently designated as the system calendar, the system flag element <sch:systemFlag> must be set to Y in the XML file. If you are importing a new calendar, or updating a calendar that is not currently designated as the system calendar, the system flag is reset to F on import, regardless of the setting in the XML file.

To export a business calendar:

  1. Locate the calendar to be exported. See Listing and Locating Business Calendars.
  2. Click the check box to the left of the calendar to select it.
  3. Click Export.
  4. The Export a Business Calendar page is displayed.


     
  5. To specify a character set other than the default, enter it in the Encoding field. See http://www.iana.org/assignments/character-sets for values. If a preferred MIME name is indicated for the character set, specify that name.
  6. Note: If the Encoding field is empty, the default character set is used.

  7. Click Submit to download the calendar.
  8. You are prompted to open the file or save it to a local directory.

  9. Select the save option to display the Save As dialog.
  10. Navigate to the target directory, specify an appropriate file name, and then click Save.

To import a business calendar:

  1. From the home page, select the Business Calendar Configuration module.
  2. Select Import Calendar from the left panel.
  3. The Import a Business Calendar page is displayed.


     
  4. Specify the file in the Business Calendar File field. Click Browse to browse for the file.
  5. Click Submit to import the specified calendar file.
  6. The calendar is imported and the Business Calendar Management page is displayed.

 


Assigning Business Calendars to Users and Groups

The Map Users to a Business Calendar page allows you to:

The Map Groups to a Business Calendar page allows you to:

Note: If a user is not mapped to a calendar, the system calendar is used. A calendar mapped to a group is not "inherited" by users in the group. To learn how a calendar mapped to a user or group can be used in determining worklist task dates, see "Task Due Dates" in Creating and Managing Worklist Tasks in Using the Worklist.

Note: If an authenticator that implements the required MBeans is not configured, the calendar mapping options are disabled. To learn more about the authenticator requirements, see Security Provider Requirements for User Management.

To assign a business calendar to one or more users:

  1. From the home page, select the Business Calendar Configuration module.
  2. From the left panel, select Business Calendar Mapping to display the Map Users to a Business Calendar page.

  3.  
  4. From the Business Calendar Mapping drop-down list, select a named calendar, or select System Calendar to specify the calendar currently designated as the system calendar.
  5. Click the check box to the left of the users to which the calendar is to be assigned.
  6. Click Map to assign the selected calendar to the selected users.

To remove the business calendar assignment from one or more users:

  1. From the home page, select the Business Calendar Configuration module.
  2. From the left panel, select Business Calendar Mapping to display the Map Users to a Business Calendar page.
  3. Click the check box to the left of the users from which the calendar assignment is to be removed.
  4. Click Unmap to remove the business calendar assignment from the selected users.

To assign a business calendar to one or more groups:

  1. From the home page, select the Business Calendar Configuration module.
  2. From the left panel, select Business Calendar Mapping.
  3. From the left panel, select Map Groups to display the Map Groups to a Business Calendar page.

  4.  
  5. From the Business Calendar Mapping drop-down list, select a named calendar, or select System Calendar to specify the calendar currently designated as the system calendar.
  6. Click the check box to the left of the groups to which the calendar is to be assigned.
  7. Click Map to assign the selected calendar to the selected groups.

To remove the business calendar assignment from one or more users:

  1. From the home page, select the Business Calendar Configuration module.
  2. From the left panel, select Business Calendar Mapping.
  3. From the left panel, select Map Groups to display the Map Groups to a Business Calendar page.
  4. Click the check box to the left of the groups from which the calendar assignment is to be removed.
  5. Click Unmap to remove the business calendar assignment from the selected groups.

 


Deleting Business Calendars

The Map Users to a Business Calendar page allows you to delete selected calendars.

Note: You cannot delete a calendar if it is in use (mapped to a user) or is designated as the system calendar. See Assigning Business Calendars to Users and Groups to update the In Use status.

To delete calendars:

  1. Locate the calendars to be deleted. See Listing and Locating Business Calendars.
  2. Click the check box to the left of the calendars to be deleted to select them.
  3. Click Delete to delete the selected calendars.
  4. Note: If any of the selected calendars are currently being referenced by a Timer event generator, a warning is displayed. Click Cancel to cancel the delete operation, or OK to delete the selected calendars anyway.

 

Skip navigation bar  Back to Top Previous Next