Show TOC

Defining a Default Expiration Time of a TaskLocate this document in the navigation structure

Prerequisites

  • You have opened the Process Development perspective in the SAP NetWeaverDeveloper Studio and have expanded your project in Project Explorer view.

  • You have created a task.

Context

The expiration time indicates the time when the task expires, that means, when the task is of no interest anymore and is programmatically canceled.

By default the task has no expiration time. You can define a default expiration time by defining an offset related to the task activation time or by using an expression to evaluate absolute time of type xsd:dateTime. The task is cancelled when the expiration time is reached.

Procedure

  1. Expand Process Modeling , then expand Tasks .
  2. In the context menu of a task, choose Open .

    The task editor opens.

  3. Select the Define a default expiration time checkbox under Expiration Time on the Time Constraints tab page.
  4. Define a default expiration time by one of the following options:
    • Select the Use an offset relative to the task activation time radio button.

      1. Enter a value that is greater than 0 in the Offset field.

      2. Select a period of time from the dropdown menu.

      The value in the Offset field and the period of time are added to task activation time to form the default expiration time.

    • Select the Use an expression radio button.

      1. Choose the Edit... pushbutton.

        The expression editor opens.

      2. Specify an expression. For more information, see Creating Expressions .

      3. Choose the OK pushbutton.

Results

You have defined a default expiration time for the task.