Guide to Building Business Processes

     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

Adding Timeout Paths

A timeout path is used to interrupt an executing process after a certain amount of time has lapsed. Timeout paths can be associated with individual nodes, a group of nodes, or with the process (global). If you add a Timeout path to a start node, the timer starts when the process begins. If you add a Timeout path to any other node, or group of nodes, the timer starts when the process reaches that point of execution.

Note: Perform, Client Response, and any of the Control nodes do not support timeout paths on individual nodes.

This section contains the following topics:

 


Creating a Timeout Path

You can associate a timeout path with individual nodes in your business process, with groups of nodes, or with the whole process (global). You create a global timeout path by adding a timeout path to the start node of your process. If you add a Timeout path to a start node, the timer starts when the process begins. If you add a Timeout path to any other node, or group of nodes, the timer starts when the process reaches that point of execution. This section contains the following topics:

To Create a Timeout Path
  1. Select the node or groups of nodes for which you want to create a timeout path. (For information on how to group nodes, see Grouping Nodes in Your Business Process)
  2. Right-click on the node or group of nodes and select Add Timeout Path from the drop-down menu.
  3. A timeout path is added to your node or group of nodes (see Figure 17-1).

    Figure 17-1 Timeout Path


    Timeout Path

    You can rename the path anything you like by double-clicking OnTimeout and entering the new name. You can also change the name in the name field of the Property pane.

    Note: You cannot add a Timeout Path to stateless JPD
To Configure a Timeout Path
  1. Select the Timeout path which you want to configure.
  2. The related properties are displayed in the JPD Configuration view. If the JPD Configuration view is not visible in BEA WorkSpace Studio, choose Window > Show View > JPD Configuration from the BEA WorkSpace Studio menu bar.

  3. In the JPD Configuration pane, configure the following properties:
general
timeout
  1. Add any business process nodes to the exception path, as required to define the timeout path logic.
  2. To configure the annotations, choose Window > Show View > Properties from the BEA WorkSpace Studio menu bar. For information on annotations see http://download.oracle.com/docs/cd/E13214_01/wli/docs102/wli.javadoc/index.html.

Viewing Timeout Paths in the Design View

When you create a timeout path, the following icon appears beside a node (or group of nodes) in the Design view to indicate that an exception path is activated for the specified node:

Table 17-1 Timeout Path

Timeout Path

This icon represents the timeout path in your business process. In this case, the path appears empty, indicating that the logic to execute when a timeout is received is not defined yet.
To define the exception handling logic, add business process nodes by dragging the nodes from the Node Palette and dropping them on the timeout path.

You can collapse the view of any timeout pate (or exception handler or message path) by clicking the grey arrow of the exception path icon. The following figure shows the icon associated with your node to indicate a collapsed path.ode

Table 17-2 Collapsed and Expanded

Timeout Path

You can toggle between collapsed and expanded views of paths in the Design view by clicking the path icon.

 


Deleting Timeout Paths

To Delete a Timeout Path
  1. Right-click the path that you want to delete.
  2. Select Delete from the drop-down menu.
  3. The path is deleted and removed from the Design view.

WARNING: Deleting a timeout path deletes any business process nodes you defined on that path. When you attempt to delete a timeout path, a dialog box displays a warning message that you must acknowledge before proceeding with the deletion.

Related Topics

Grouping Nodes in Your Business Process

Writing Custom Java Code in Perform Nodes

Handling Exceptions

Adding Message Paths

Transaction Boundaries


  Back to Top       Previous  Next