Using Oracle WebLogic Integration Worklist Console

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Business Calendar Configuration

This section provides the information you need to use the Business Calendar module of Oracle WebLogic Integration Worklist Console.

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 Oracle WebLogic Integration Users, Groups, and Roles.

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:

A business calendar can be used for business calendar calculation and for checking user availability for a task.

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 2007:

In the above, the first three rules define Mondays and Wednesdays 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 Oracle WebLogic Integration, one must be designated as 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:

In addition to being mapped to users 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.

For more information, see “Defining Channel Rules for a Timer Event Generator” in Event Generators in Using the WebLogic Integration Administration Console.

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 Module

The following table lists the pages you can access from the Business Calendar 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.
Add a business calendar.
Export or import business calendar time period rules and time zone.
Delete a business calendar.
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.
Update time period rules by adding, changing, deleting or reordering (sorting) rules
Add Business Calendar Time Period Rule
Define a time period rule to be added.
Update Business Calendar Time Period Rule
Change an existing time period rule.
Associate Users to a Business Calendar
Select a business calendar and assign the calendar to selected users.
Remove the business calendar assignment from selected users.

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. In Worklist Console, select the Business Calendar module.
  2. To locate a specific business calendar, do one of the following:
    • Filter by business calendar name. Enter the search target, then click Search. The business calendars matching the search criteria are displayed.
    • Resort the list. Ascending and descending arrow buttons indicate sortable columns. Click the button to change the sort order.
    • Scroll through the pages. Use the controls in the lower left corner. Go to a page by selecting the page number or by using the arrow buttons to go to the next , previous , first , or last page.

Related Topics

Adding a Business Calendar

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

To add a business calendar:
  1. In Worklist Console, select the Business Calendar module. The Business Calendar Management page appears.
  2. Click Add Calendar. The Create Business Calendar page appears.
  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. For more information, see Viewing and Changing Business Calendars.

Related Topics

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. For more information, see Viewing and Changing 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 update the time zone, select a new time zone for the Time Zone drop-down list.
    • To designate this calendar as the system calendar, check the Set as system calendar check box.
    • Note: If the current calendar has already been designated as the system calendar, this check box is not available in the Edit Business Calendar page.
  4. Click Submit.
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. For more information, 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 that you want to change.
  2. The Update Business Calendar Time Period Rule page is displayed.



  3. Define the time period as required. For more information, 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 that you want to delete.
  2. Click Delete Rule. A confirmation message appears. Click OK.

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. From the Day of Month drop-down list, select Sun, Mon, Tues, Wed, Thu, Fri, or Sat.
  3. Specify the time period interval in 24 hour time format (also known as military time) as follows:
    • From the Start hour and minute drop-down lists, select the time period start hour and minute.
    • From the End hour and minute drop-down lists, select the time period end hour and minute.
    • Note: If you do not specify start and end times (that is, if 00:00 is specified for both) the Free or Busy status specified in the following step applies to the entire day.
  4. 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. In the Year field, specify the year in YYYY format.
  3. From the Month drop-down list, select the month.
  4. From the Day of the Month drop-down list, select the date.
  5. Specify the time period interval in 24 hour time format (also known as military time) as follows:
    • From the Start hour and minute drop-down lists, select the time period start hour and minute.
    • From the End hour and minute drop-down lists, select the time period end hour and minute.
    • Note: If you do not specify start and end times (that is, if 00:00 is specified for both) the Free or Busy status specified in the following step applies to the entire day.
  6. 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. In the Year field, specify the year in YYYY format.
  3. Select the time period start date as follows:
    • From the Start Month drop-down list, select the month.
    • From the Start Day of the Month drop-down list, select the date.
  4. Select the time period end date as follows:
    • From the End Month drop-down list, select the month.
    • From the End Day of the Month drop-down list, select the date.
  5. From the Free or Busy drop-down list, select Free or Busy.

Related Topics

Associating Business Calendars with Users

The Associate Users with Calendar page allows you to:

Notes:
To assign a business calendar to one or more users:
  1. In Worklist Console, select the Worklist module.
  2. From the left panel, select User Profiles. The Worklist Users Summary Page appears.


  3. Click the name of the user to whom you want to associate a business calendar. The Associate User with Calendar page appears.


  4. Specify the e-mail address of the user.
  5. From the Shared Calendar drop-down list, select a named calendar, or select System Calendar.
  6. Click Submit to assign the selected calendar to the user.
To remove the business calendar assignment from one or more users:
  1. In Worklist Console, select the Worklist module.
  2. From the left panel, select User Profiles. The Worklist Users Summary Page appears.
  3. Click the name of the required user. The Associate User with Calendar page appears.
  4. From the Shared Calendar drop-down list, select None.
  5. Click Submit to remove the business calendar association.

Related Topics

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 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. For more information, see Viewing and Changing Business Calendars.
  2. Click the check box to the left of the calendar to select it.
  3. Click Export.
  4. The File Download page dialog is displayed and you are prompted to open the file or save it to a local directory.

  5. Click Save to download the calendar. The Save As dialog appears.
  6. Navigate to the target directory, specify an appropriate file name, and then click Save.

The calendar is now saved in you target directory.

To import a business calendar:
  1. In Worklist Console, select the Business Calendar module. The Business Calendar Management page appears.
  2. Click Import.
  3. The Import a Business Calendar page is displayed.



  4. Specify the name and location of the XML file in the Business Calendar File field. Click Browse to navigate to the file. The Choose file dialog appears.
  5. Navigate to the source directory, select the appropriate file, and then click Open.
  6. The name and location of the selected file appears in the Business Calendar File field.

  7. Click Submit to import the specified calendar file.

The calendar is imported and listed in the Business Calendar Management page.

Deleting Business Calendars

The Business Calendar Management 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 Deleting Business Calendars to update the In Use status.
To delete calendars:
  1. Locate the calendars to be deleted. For more information, see Viewing and Changing Business Calendars.
  2. Click the check box to the left of the calendars that you want to delete.
  3. Click Delete.
  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 anyway delete the selected calendars.

  Back to Top       Previous  Next