Sun Worklist Manager Service Engine User's Guide

Defining Time Limits and Deadlines for a Task

The WLM SE allows you define time periods or a specific date and time after which a task times out if it is not completed. When a task times out, it is treated as a failed process and return to the business process with a system fault.

If you define the timeout as a duration, the timer starts when the tasks is created and the task is timed out once the duration you specify is passed and no action has been taken on the task. The format for defining the duration is PyYmMdDThHmMsS, where y is the number of years, the first m is the number of months, d is the number of days, h is the number of hours, the second m is the number of minutes, and s is the number of seconds,

The following example indicates a duration of one and one-half hours:

P0Y0M0DT1H30M0S

If you define the escalation as a deadline, the task times out once the deadline you specify is passed and no action has been taken on the task. The format for defining the deadline is YYYY-MM-DDTHHmmSS, for example:

2010-01-30T23:00:00

ProcedureTo Define Task Timeouts

  1. Complete the steps under Assigning Users and User Groups to a Task.

  2. If the task definition is not opened, open the file in the Task Definition Editor.

  3. To define a duration from the start of the task to when it must be completed, do the following:

    1. In the Timeouts section of the Task Definition Editor, click Add Duration.

      A new line appears in the Timeouts list.

    2. In the Timeout Expression field, enter the duration in the format P0Y0M0DT0H0M0S.

      For example, the expression P0Y0M7DT0H0M0S indicates a seven-day duration.

      Figure shows the date format for defining durations.
  4. To define a deadline by which the task must be completed, do the following:

    1. In the Timeouts section of the Task Definition Editor, click Add Deadline.

      A new line appears in the Timeouts list.

    2. In the Timeout Expression field, enter the duration in the format YYYY-MM-DDTHHmmSS.

      For example, the expression 2010-01-15T00:00:00 indicates midnight on January 15, 2010.

      Figure shows the date format for defining deadlines.
  5. To remove a deadline or duration, select the line item to remove and then click Remove.

  6. When you are done defining timeouts, click Save All on the NetBeans toolbar.