First Previous Next Last

Workflow Guide  

Chapter 5   Workflow Designer

This chapter describes how to use the Workflow Designer to create workflow processes. It has these sections:

For more information    For background information, see Basic Workflow Development.

 
Top of page

About Workflow Designer

Creating a workflow process that executes successfully in the Director Workflow subsystem is a three-step process:

  1. Use the rich graphing environment of Workflow Designer to visualize and lay out the logic of your process

  2. Use the property inspector in Workflow Designer to configure workflow properties that link the process to the resources of your Director environment

  3. Save the completed process definition (Workflow Designer translates it into an XML-based program that the workflow engine can execute)

NOTE   Workflow Designer is completely integrated into Workbench.

 
Top of section

Summary of Workflow Designer features

Process logic is created exclusively in Workflow Designer. The features available to you are the following.

Feature

Represents

User activity

A task or step in your business process that requires human interaction. In Workflow Designer, you specify properties that inform the engine and queue about this task.

Automatic activity

An unattended task or step in your process. In Workflow Designer, you specify properties that configure the engine and queue for this task.

Start activity

The Workflow subsystem functions necessary to create a new workitem and optionally to assign an initial document to the workitem.

Synchronize merge activity

The Workflow subsystem functions necessary to take two or more branches of a workflow and combine them into one.

Web Service Activity

The functionality needed to consume a document style Web Service.

Rule Activity

The Rule Subsystem functionality needed to execute a rule.

For more information    See Adding Rule subsystem extensions to the Workflow Designer.

Finish activity

The Workflow subsystem functions necessary to bring a workflow process to a normal end.

Simple link

A definite path from one activity to another. You specify the addressee.

AND link

A definite routing decision to forward the workitem on every path defined in the link.

OR link

A variable routing decision to forward the workitem on every path that evaluates to true.

XOR link

A variable routing decision to forward the workitem on the first path that evaluates to true.

XOR condition link

A variable routing decision to forward the workitem on the first path that evaluates to true.

For more information    See Adding Rule subsystem extensions to the Workflow Designer.

Rule link

A variable routing decision evaluated by the Rule subsystem using an existing rule. The rule returns the destination activity ID.

For more information    See Adding Rule subsystem extensions to the Workflow Designer.

Label

Text for annotating your process graph.

 
Top of page

Defining a process

The document you create with Workflow Designer can be called a workflow, a process, or a process definition. Process definition more precisely refers to the XML document created by Workflow Designer.

Procedure To create a process definition:

  1. With your EAR project open in Workbench, select File>New from the menu.

  2. Click the Workflow tab.

    wdNewFileDg

  3. Select Workflow Process and click OK.

    Workflow Designer opens in the editing area with a new process definition.

    wdNewProcess

Procedure To save a process definition:

  1. Select File>Save from the Workbench menu.

  2. If Workflow Designer detects any mistakes in the process, a popup message informs you and asks if you would like to save anyway. This validation occurs on all save events. Click Yes.

    If this is your first save, the Save As dialog appears.

  3. Choose a directory location and specify a file name.

    Usually you want to store your process definitions in ResourceSet\data\workflow-processes.

  4. Click Save.

Procedure To open a process definition:

  1. Select File>Open from the Workbench menu.

  2. From the Open dialog, choose a directory location and process definition file.

    Usually you can find your processes in ResourceSet\data\workflow-processes.

  3. Click Open.

Each process has properties that you can set in Workflow Designer.

Procedure To set process properties:

  1. Open the property inspector:

    The Property Inspector displays the process properties.

    wdProcessProps

  2. Click the UI tab to view the UI properties.

  3. Fill in the Process and UI properties as follows:

    Property

    Description

    Name

    The formal name of the process. If you need to name your processes according to some naming convention, this is the place to set it.

    Description

    A description of the process intended for the Workflow Designer user.

    WorkName

    An informal or user-friendly process name that would appear in end user components.

    Roles

    A semicolon-delimited list of existing security roles that are authorized to create workitems with this process.

    For more information    For information about security roles and authorization, see Authorizing access to applications in the User Management Guide.

    Nodes

    (Read-only) The number of activities in the process.

    Edges (Paths)

    (Read-only) The number of paths in the process. (Edge is the graphing term for a workflow path.)

    Labels

    (Read-only) The total number of labels in the process including floating and attached labels.

    Background Color

    Click the data area to bring up the standard color selection dialog.

 
Top of page

Working with the editing features

The screen below shows the important command features of Workflow Designer:

wdZoomIn

 
Top of section

Graphing environment

Basic navigation

  1. Click the Pan button on the toolbar to change the cursor to pan mode.

    iHand

  2. Drag the hand cursor on the graph area to scroll the graph in the editing area.

You can also use the horizontal and vertical scroll bars to achieve this effect.

Basic selection

  1. Click the Selection button in the toolbar to change the cursor to selection mode.

    iPoint

  2. Click any object to select it and right-click to display its properties in the Property Inspector.

    Click empty space and drag the selection rectangle around a group of objects to select them all.

Creating a node

Nodes are objects in the graphing environment. They are represented by icons on the graph. A node always represents an instance of an activity.

Procedure To create a node (activity):

  1. Click the arrow in the activity dropdown list.

  2. Select a type:

    nodes

    For more information    For information, see Defining activities.

  3. Click anywhere on the graph.

    TIP   Click multiple times to create multiple nodes.

Creating an edge

An edge is a linear connection from one node to another. Edges are represented by arrows. An edge is a single path of a workflow link. A link is the set of paths that exit a single activity. Each path represents a potential routing of workitems exiting the activity.

edges

Procedure To create an edge (path):

  1. Click the arrow in the link path dropdown list.

  2. Select a type.

  3. Click on a node and drag from the starting node to the target node.

    If you are creating a simple link path, you can only draw a single path from a single activity. The edge appears solid.

    If you are creating a path for any of the other link path types, you can draw multiple paths from a single activity, but all the paths must be of the same type. These edges appear dashed.

    TIP   Select a single path of a multipath link and notice that the rest of the paths that form this link are displayed in blue.

Creating a segment

A segment is the line between two points of an edge.

segments

Procedure To create a segment:

Graphical properties

Each node, path, and label has a set of properties associated with it. Select and right-click an element, and the properties of the element are displayed in the Property Inspector.

The table below describes the graphical properties found on some or all of the elements:

Activity graphical properties

Description

Arrowhead Height

Customize the height (thickness) of the arrowhead for the selected paths.

Arrowhead Width

Customize the width (length) of the arrowhead for the selected paths.

Border Color

The color of the square outlining the activity. Click the color bar to display a standard color selection dialog.

Color

The background color of the activity. Click the color bar to display a standard color selection dialog.

Font

Click the data area to bring up a standard text formatting dialog.

Height

(Read-only) Height of the activity in pixels. You can enlarge or shrink the activity by dragging its handles.

Margin Height

For labels, the amount of space on the top and bottom between the text and the bounding box.

Margin Width

For labels, the amount of space on the left and right sides between the text and the bounding box.

Show Border

When enabled, displays a square outline around the activity, even when the background color is set to transparent.

Style

Choose a solid line or one of several dashed patterns from the dropdown list. Your choice affects only the currently selected link destination. To change several destinations at once, hold down the Shift key and then click each one. Select a style from the Property Inspector.

Text color

The font color of the label. Click the color bar to display a standard color selection dialog.

Transparent

Overrides the color setting and makes the activity background transparent.

Width

(Read-only) Width of the activity in pixels. You can enlarge or shrink the activity by dragging its handles.

X Center

When the workflow process is first created, the origin (0, 0) is the bottom-left corner of the graph. The graph automatically resizes in all directions as you create and drag items around. When this happens, the origin does not reset itself to the new bottom-left corner; it remains fixed.

A positive value is the number of pixels above the origin the vertical center of the icon is currently located. A negative value indicates a position below the origin.

Enter a new value to have Workflow Designer automatically move the activity to the vertical position specified.

Y Center

When the workflow process is first created, the origin (0, 0) is the bottom-left corner of the graph. The graph automatically resizes in all directions as you create and drag items around. When this happens, the origin does not reset itself to the new bottom-left corner; it remains fixed.

A positive value is the number of pixels to the right of the origin the horizontal center of the icon is currently located. A negative value indicates a position to the left of the origin.

Enter a new value to have Workflow Designer automatically move the activity to the horizontal position specified.

 
Top of section

Using layout features

The layout is the arrangement of the activities, paths, and labels in your graph. Workflow Designer has a sophisticated layout feature that can completely rearrange your graph to maximize readability and minimize space.

You can specify whether you want the new arrangement to have a horizontal or vertical orientation and whether you want link paths drawn as diagonal lines or composed of perpendicular segments.

There are two kinds of layout: full layout and incremental layout.

Full layout gives Workflow Designer great freedom to move activities, paths, and labels around the graph.

For example: the figure below displays a hand-arranged layout:

wdLOh

The figure below shows the result of applying a full layout to the hand-arranged layout: wdLOf

Incremental layout attempts to make a graph more attractive and organized but also tries to keep the basic design of your hand-arranged layout.

This figure shows the result of applying an incremental layout to the hand-arranged layout:

wdLOi

TIP   Try a layout on your graph and select Workbench Edit>Undo to back out of a layout you don't want.

Procedure To set layout preferences:

  1. Choose Workflow >Layout Settings from the Workbench toolbar menu.

    wdLayoutSettings

  2. Select an orientation.

  3. Select a link (path) style.

  4. Click OK.

Procedure To apply a full layout:

Procedure To apply an incremental layout:

 
Top of section

Using zoom features

Workflow Designer gives you four ways to zoom:

Zoom type

Toolbar icon

Description

Standard zoom

iZoomPer

Allows you to pick from a list of common zoom percents.

Interactive zoom

iZoonInt

Allows you to zoom up or down by dragging up or down on the graph.

Marquee zoom

iMarq

Allows you to drag and select a portion of the graph area to be zoomed to fill the graph window.

Fit in Window

iFitWin

Shrinks or enlarges the content of the current document to fit in the graph window.

 
Top of section

Using the grid

Workflow Designer includes a drawing grid that works much like the grid in any graphics program:

Procedure To turn the grid on or off:

Procedure To change the spacing of grid lines (grid size):

  1. Choose Workflow>Grid Size from the Workbench menu.

    The Grid Size dialog displays.

    wf-customGridSizeDlg

  2. Enter a value in pixels from 7.5 to 1000.

    The default is 10.

  3. Click OK.

 
Top of section

Using the Overview window

The Overview window is a popup window that gives you a thumbnail view of the entire workflow graph to help you find your way around in a large graph. The Overview window:

You can use the outline box of the Overview window to do several useful things:

Doing this

Has this effect

Clicking outside the outline box

Centers the outline box on the point clicked and pans the graph area to correspond to the new location of the outline box

Dragging outside the outline box

Draws the outline box in the new location and pans the graph area to correspond to the new location of the outline box

Dragging inside the outline box

Pans the outline box and pans the graph area to correspond to the new location of the outline box

Dragging a corner of the outline box

Resizes the outline box and zooms the graph area to correspond to the new size of the outline box

 
Top of section

Using labels

Labels are separate objects in the graphing environment and therefore have their own property sheets. Labels have two forms:

By default, activities and link paths start without a label.

Procedure To create a floating label:

  1. From the Workbench toolbar, select the Label button:

    iText

  2. Click the location on the graph where you want the label to appear.

    The label appears as a box with the text Untitled inside.

    Each click creates a new label.

  3. From the toolbar, select the arrow button.

  4. Double-click inside a new label and edit the text.

  5. Click outside the label to save your changes.

Procedure To create an attached label:

  1. In Workbench, right-click an activity icon or link path.

  2. From the popup menu, select Create Label.

    A label appears directly below the activity or link path.

  3. Double-click inside the label and edit the text.

  4. Click outside the label to save your changes.

An activity or link path can have many labels. You can reposition the attached link as you like by dragging it to a new location. Note the line that appears as you drag; this line indicates the activity or link path the label is attached to.

Procedure To format any label:

  1. In Workbench, right-click the label and select Properties.

    The Property Inspector displays showing the current formatting properties. (If the Property Inspector is already open, simply click the label.)

  2. Make the changes you want.

    Changes are saved as you make them.

 
Top of page

Defining activities

This section explains the activities you add, as described in Creating a node.

 
Top of section

Start activity

Appears automatically when you create a process.

start

Represents the Workflow subsystem functions necessary to create a new workitem and optionally to assign an initial document to the workitem. The start activity is created when a new workflow process is created and cannot be deleted from the process. There is only one start activity per process. You do not provide a user interface to this activity. To display properties, select the node and right-click.

Property

Description

Name

A unique reference to this activity. Not required for the start activity.

Type

(Read-only) The activity type.

Start Document Name

A user-friendly name for the document automatically added to new workitems.

Start Document

A name and a string (separated by a space) that points to the document contents. The pointer can be an URL.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

User activity

iActivity

Represents a task or step in your business process that requires human interaction. In Workflow Designer, you specify properties that inform the engine and queue about this task. You use the APIs to interact with the activity. The activity itself is not aware of what code will interact with it. Workitems at an activity wait at the activity until forwarded by your code. To display properties, select the node and right-click.

For more information    For information about coding workitems, see Basic Workflow Development.

Property

Description

Name

A unique reference to this activity. Workflow Designer provides a default name to start with, which you can change.

NOTE   You can access this value from the workflow client API using EbiWorkitemDelegate.getActivityName().

Type

(Read-only) The activity type.

Description

A description of the activity intended for the Workflow Designer user.

Priority

A property that has no inherent meaning to the Workflow subsystem. It is provided to support user-implemented priority schemes.

NOTE   This property is not supported in the current release.

Retry Count

Number of times to poll the current owner of the workitem before sending the terminate() message. A failed retry activity is considered an abnormal end to a workflow process. Default is 0.

NOTE   This property is not supported in the current release.

Timeout (Hours)

Number of hours to wait before sending the terminate() message. A timed-out activity is considered an abnormal end to a workflow process. Default is 0.

NOTE   This property is not supported in the current release.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Automatic activity

iAuto

Represents an unattended task or step in your process. In Workflow Designer, you specify properties that configure the engine and queue for this task. The queue is aware of the Java class that represents the automatic activity. The queue manages automatic activities according to the timeout and retry settings you provide. Programmers must implement a terminate function to specify behavior for automatic activities that exceed timeout and retry counts. To display properties, select the node and right-click.

For more information    For more information, see Customizing Activities and Links.

Property

Description

Name

A unique reference to this activity. Workflow Designer provides a default name to start with, which you can change.

NOTE   You can access this value from the workflow client API using EbiWorkitemDelegate.getActivityName().

Type

(Read-only) The activity type.

Description

A description of the activity intended for the Workflow Designer user.

Priority

A property that has no inherent meaning to the Workflow subsystem. It is provided to support user-implemented priority schemes.

Retry Count

Number of times to poll the current owner of the workitem before sending the terminate() message. A failed retry activity is considered an abnormal end to a workflow process.

Timeout (Hours)

Number of hours to wait before sending the terminate message(). A timed-out activity is considered an abnormal end to a workflow process.

Class Name

The name of the Java class that implements the unattended business logic associated with this automatic activity.

On the Web Service Activity, you can use the default class that appears in the field.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Synchronize merge activity

iMerge

Represents the Workflow subsystem functions necessary to take multiple branches of a workflow and combine them into one. You only need to synchronize and merge workflow paths that send workitems along more than one path:

There must be one synchronize merge activity for each workflow split, which is any link other than a simple link. Splits and synchronize merges must be defined using the same logic as parentheses. You must merge the last split before you can attempt to merge the split that came before it. You do not provide a user interface to this activity. To display properties select the node and right click.

Property

Description

Name

A unique reference to this activity. Workflow Designer provides a default name to start with, which you can change.

NOTE   You can access this value from the workflow client API using EbiWorkitemDelegate.getActivityName().

Type

(Read-only) The activity type.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Web Service activity

iWebService

Represents the functionality needed to consume a document style Web Service. Essentially, a Web Service Activity is a specialized extension of an Automatic Activity. In the activity property sheet, you specify a Web Service input document and properly formatted XML that the Web Service needs to return the requested information. Use of this activity assumes familiarity with document style Web Service technology.

For more information    To learn more about WSDL, see www.w3.org/TR/wsdl and www.w3.org/2002/ws/desc.

Click on the Web Service panel to edit these properties:

Web Service property

Description

Workitem Document Name

The name of the formatted document to send to the Web Service. The document must be associated with the current workitem.

Web Service URI

Soap address location.

Web Service Method

WSDL operation name.

Web Service Name

WSDL service name

Namespace URI

WSDL default for the port type and service.

Port Type Name

WSDL port type name

Soap Action

WSDL soap action header value.

Output Parameter (optional)

The response element from the Web Service. Typically this is the operation name with Response appended.

Return Document Name (optional)

Name for the workitem document in which to store the response form the Web Service. By default, the Web Service updates the original document specified in Work Document Name property.

For more information    For information about the Activity properties, see Automatic activity.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Rule activity

iruleActivity

NOTE   This link type is available only if you have included the Rule subsystem in your Director project. For more information, see Adding Rule subsystem extensions to the Workflow Designer.

Represents the Rule Subsystem functionality needed to execute a rule. The Rule subsystem includes some installed conditions and actions related to workitem properties. For more information see the following descriptions in the Rules Guide:

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Finish activity

iFinish

Represents the Workflow subsystem functions necessary to bring a workflow process to a normal end. There must be one (and only one) finish activity in a process. You do not provide a user interface to this activity. To display properties, select the node and right-click.

Property

Description

Name

A unique reference to this activity. Not required for the finish activity.

Type

(Read-only) The activity type.

For more information    For information about the UI properties, see Graphical properties.

 
Top of page

Defining links

This section describes the links you add, as described in Creating an edge.

 
Top of section

Simple link

iSimple

Represents a definite path from one activity to another. You specify the addressee. To display link properties, select the edge element and right-click.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

(Read-only) The type of link path.

Addressee

The user or role that has permission to perform work at this activity. Only one addressee may be specified.

For more information    For more information, see Specifying an addressee.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. For a simple link, there can only be one path.

For more information    For information about the UI properties, see Graphical properties.

Specifying an addressee

Each link can accept a single value for its Addressee property. Typically this value is a role, and the role defines a list of users with permission to perform work at the activity. You can also specify that the addressee value should be dynamically derived at runtime from a workitem property.

Procedure To specify an addressee:

  1. Click the data area beside an Addressee property in the Property Inspector.

    wdaddresseebuilder

  2. If you want to specify an absolute addressee, select Literal.

    For a user, select User and specify the user name in the Value field.

    For a role, select Role and specify the role name in the Value field.

  3. If you want to specify a dynamic addressee, select Expression.

    To obtain the addressee from a workitem property, specify the property name in the Value field.

    To obtain the addressee from a workitem document property, specify the workitem document name and the document property separated by a forward slash:

      workitemDocumentName/documentPropertyName
    

    The dynamic expression must resolve to a single user or role. Even when using a dynamic addressee, the User or Role selection must be accurate. In other words, the path must know whether to expect a user addressee or a role addressee.

    NOTE   The User and Role selections have no affect in this case.

 
Top of section

AND link

iAND

Represents a definite routing decision to forward the workitem on every path defined in the link. In Workflow Designer, each path is represented by an arrow. The collection of paths exiting an activity is said to be the link. You specify the addressee. To display link properties, select the edge element and right-click.

AND links do not create copies of the workitem—nor do other non-simple links. Rather, they represent the opportunity for multiple tasks to occur simultaneously on one workitem. To avoid contention, you can adopt a strategy of not locking workitems but locking documents within workitems. Organize your workitem data into multiple documents, with information specific to any parallel activities segregated in one document.

You must specify a synchronize merge activity for each AND link. For more information, see Synchronize merge activity.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

The type of link path.

Addressee

The user or role that has permission to perform work at this activity. Only one addressee may be specified.

For more information    See Specifying an addressee for more information.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. Changing this name on the property of a single path changes the name in all other paths belonging to the link.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

OR link

iOR

Represents a variable routing decision to forward the workitem on every path that evaluates to true. You specify a simple or compound expression using workitem or document properties. Keep in mind that properties are workflow metadata. To display link properties, select the edge element and right-click.

Care must be taken to guarantee that one path will always be true. An OR path with no expression specified is evaluated as true. If no path evaluates to true, the workitem travels on the default path. An OR link must have one and only one default path specified.

An OR link path that fails to evaluate properly is set to false.

You must specify a synchronize merge activity for each OR link. For more information, see Synchronize merge activity.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

The type of link path.

Addressee

The user or role that has permission to perform work at this activity. Only one addressee may be specified.

For more information    See Specifying an addressee for more information.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. Changing this name on the property of a single path changes the name in all other paths belonging to the link.

Default

For this link, one path must be the default. The default is the path that is used if no other path evaluates to true. The default path may have an expression. If the expression is false, a workitem will not be routed on that path unless no other path in the link evaluates to true.

Expression

Click the data area to bring up the expression editor.

For more information    See Specifying a path expression for information on using this dialog.

For more information    For information about the UI properties, see Graphical properties.

Specifying a path expression

The expression builder allows you to test workitem properties and workitem document properties in simple or compound expressions that ultimately evaluate to true or false.

Procedure To specify an expression:

  1. Click in the data area beside an expression property in the Property Inspector.

    wdExpressionBuilder

  2. Specify a workitem property or document property.

    To specify a workitem property, enter it in the Property Name field and leave the Document Name field blank.

    To specify a document property, enter it in the Property Name field and enter the associated document name in the Document Name field.

  3. Specify the value to test in the Property Value field.

  4. In the first dropdown list, if this is not the first test condition, choose whether you want the current test condition ANDed or ORed to the condition that precedes it.

  5. In the second dropdown list, choose the test, such as eq (equals) or gt (greater than).

  6. In the third dropdown list, choose the data type of the Property Value field.

    The Designer attempts to validate your entry.

  7. (Optional) Enable the Not check box to negate the current expression.

  8. Click Add.

  9. Repeat the Steps 1 through 8 as necessary, and click OK when you are done.

 
Top of section

XOR link

iXOR

Represents a variable routing decision to forward the workitem on the first path that evaluates to true. You specify a simple or compound expression using workitem or document properties. To display link properties, select the edge element and right-click.

The Workflow subsystem controls the order of evaluation.

Care must be taken to guarantee that one path will always be true. An XOR path with no expression specified is evaluated as true. If no path evaluates to true, the workitem travels on the default path. An OR link must have one and only one default path specified.

An XOR link path that fails to evaluate properly is set to false.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

The type of link path.

Addressee

The user or role that has permission to perform work at this activity. Only one addressee may be specified.

For more information    See Specifying an addressee for more information.

Default

For this link, one path must be the default. The default is the path that is used if no other path evaluates to true. The default path may have an expression. If the expression is false, a workitem will not be routed on that path unless no other path in the link evaluates to true.

Expression

Click the data area to bring up the expression editor.

For more information    See Specifying a path expression for information on using this dialog.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. Changing this name on the property of a single path changes the name in all other paths belonging to the link.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

XOR condition link

iCondition

NOTE   This link type is available only if you have included the Rule subsystem in your Director project. For more information, see Adding Rule subsystem extensions to the Workflow Designer.

Represents a variable routing decision to forward the workitem on the first path that evaluates to true. Essentially, it is an enhanced XOR link. The Workflow subsystem controls the order of evaluation. To display link properties, select the edge element and right-click.

The Rule subsystem includes an installed condition that allows you to check a workitem value. For more information, see the description for the Check Workitem Value condition in the Rules Guide.

Care must be taken to guarantee that one path will always be true. An XOR path with no condition specified is evaluated as true. If no path evaluates to true, the workitem travels on the default path. An OR link must have one and only one default path specified.

An XOR condition link path that fails to evaluate properly is set to false.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

The type of link path.

Condition Macro ID

Specify the name of an existing condition macro of the Rule subsystem that is available in your resource set.

For more information    For more information, see Using the Rule and Macro Editors in the Rules Guide.

Default

For this link, one path must be the default. The default is the path that is used if no other path evaluates to true. If the condition is false, a workitem will not be routed on that path unless no other path in the link evaluates to true.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. Changing this name on the property of a single path changes the name in all other paths belonging to the link.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Rule link

irule

NOTE   This link type is available only if you have included the Rule subsystem in your Director project. For more information, see Adding Rule subsystem extensions to the Workflow Designer.

Represents a variable routing decision evaluated by the Rule subsystem using an existing rule. Rule links choose only one path. The rule returns the path. The Rule subsystem includes an installed action that allows you to specify the path. For more information, see the description for the Set Next Activity action in the Rules Guide.

To display link properties, select the edge element and right-click.

NOTE   The addressee is specified in Workflow Designer, not in the rule.

Property

Description

Name

The unique reference to this path. Workflow Designer provides a default name, which you can change.

Type

The type of link path.

Default

For this link, one path must be the default. The default is the path that is used if no other path evaluates to true. If the condition is false, a workitem will not be routed on that path unless no other path in the link evaluates to true.

Link Name

The link is the collection of paths exiting a single activity. This is the unique reference to that collection. Changing this name on the property of a single path changes the name in all other paths belonging to the link.

Rule ID

Specify the name of an existing rule that is available in your resource set.

For more information    For information about the UI properties, see Graphical properties.

 
Top of section

Adding Rule subsystem extensions to the Workflow Designer

If you have the Rule subsystem in your application, you can take advantage of the integration between the Rule subsystem and the Workflow subsystem. You can add a Rule Activity and two types of link: XOR condition link and Rule link.

Procedure To add rule extensions to the Workflow Designer:

  1. Make sure Workbench is not running.

  2. Copy the following file from this location in your Director install directory:

      \templates\TemplateResources\workflow-re\WorkflowRE.jar
    

    to this location in your Workbench install directory:

      \lib\graphbeans\workflow\
    
  3. Restart Workbench.

    The activity and link types appear in the activity and link menu selections in the Workflow Designer.

    First Previous Next Last

Workflow Guide  

Copyright © 2002, SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.