This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Customizing algorithms for date and time selection

When you want to specialize the date and time selection criteria, you can create your own custom algorithm.

About this task

You can configure a rule group to work with the following date specifications:
  • A date as specified using the tool.
  • A date returned from a Java™ expression
  • A date stored in an attribute of the incoming business object.

By default, scheduling is based on the Current date. To change this, proceed as follows:

Procedure

  1. In the rule logic area of the rule group editor, create a new Scheduled Rule Logic by clicking the The plus symbol icon.
    Date fields will appear with the current date.
  2. In the Selection Criteria field, click Current date.
    You will then have the following choices:
    Option Description
    Current date Choose this to use the inline interactive calendar to select the dates graphically. If you choose this, then the system will create a Java snippet that will return a current java.util.date object.
    Java Choose this to use the visual snippet editor to graphically compose your own Java code that will obtain a date and a time, and return a java.util.date to the selector component.
    XPath Choose this to specify an XPath to a xsd:datetime (java.util.date) parameter. The parameter can either be a stand-alone, or it can be embedded within a Business Object.