|
Rules Guide |
This chapter describes the conditions installed with your Director project in Workbench. It has these sections:
For information about how to use conditions and actions in the Rule Editor, see
Rule and Macro Editors.
For information about accessing sources and supporting files, see
Accessing condition and action sources.
Compares portal component parameter value with a value you specify. If the comparison is true, the condition returns true
.
Compares the current date with the date you specify and returns true if they are the same.
|
Property |
Description |
|---|---|
|
Date |
The date you want to check against the current date. Click Pick Date to use a calendar tool to select a date: |
Returns true when the current date is within the specified range. If the date is out of range or if you don't specify a date for both start and end, the condition returns false.
Returns true when the current weekday is in the set of selected weekdays.
|
Property |
Description |
|---|---|
|
List of weekdays |
Check one or more weekdays to select them. |
Returns true if the specified cookie is defined in the user's browser.
|
Property |
Description |
|---|---|
|
Cookie Name |
The name of the cookie you want to find. |
Returns true when the current month is in the set of selected months.
|
Property |
Description |
|---|---|
|
List of months |
Check one or more months to select them. |
Checks how a parameter value in the request header matches a value you specify. If the comparison is true, the condition returns true.
Returns true if the current time is between the hours you specify.
|
Property |
Description |
|---|---|
|
hours of ... and ... |
Select an hour from each of the two dropdown lists to specify the start and end of the time span. |
Compares the current user with the specified user based on the text of the user ID. If the comparison is true, the condition returns true.
Returns true if the user is a member of the specified group in the authentication directory. (Users can be assigned to groups in the PAC.)
|
Property |
Description |
|---|---|
|
Group |
A group name defined in your server directory realm. |
Compares the value of a user attribute for the current context with a value you specify in the condition property. Returns true if they are the same.
Returns true if the specified whiteboard key exists.
|
Property |
Description |
|---|---|
|
Whiteboard Key ^ |
The name of the whiteboard key. |
Compares the value of the specified whiteboard key to a value based on the data type of the value in the whiteboard key. If the comparison is true, the condition returns true.
Returns true if the value of a whiteboard key is null or an empty string ("").
|
Property |
Description |
|---|---|
|
Whiteboard Key ^ |
The name of the whiteboard key. |
Compares a value you specify to a workitem document value and returns true if the values are the same. For use with a Rule Activity, a Rule Link, or an XOR condition link in the Workflow Designer.
For more information, see the chapter on the Workflow Designer in the Workflow Guide.
This condition does nothingby returning false. If Default is the only condition in a When section, the actions for that case won't be executed.
Returns true if the request header contains parameters from an HTML form.
Returns true if this is the first request for this user's session.
Puts the cookies the browser has sent onto the whiteboard. The condition returns true if successful and false if an error occurs.
See the
Save Cookies To Whiteboard action.
Puts the query string from the browser on the whiteboard using the specified key. The condition returns true if successful and false if an error occurs.
See the
Save Form Get Data To Whiteboard action.
Puts the parameters in the request header on the whiteboard. The names of the request parameters are used as the whiteboard keys, and the values of the request parameters are their values. The condition returns true if successful and false if an error occurs.
See the
Save Request Data To Whiteboard action.
Returns false. If it is the only condition in a When section, the actions for that case will not be executed. If there are other conditions, the actions are executed depending on the values of the other conditions and the logical operators used.
Returns true. If it is the only condition in a When section, the actions for that case will be executed. If there are other conditions, the actions are executed or not depending on the values of the other conditions and the logical operators used.
Returns true if On? is selected and false if not. For more information, see the Set Action Off and Set Action On actions just above.
|
Property |
Description |
|---|---|
|
On? |
Whether the condition returns true or false. |
Executes a SQL query with a WHERE clause and returns true if the result set contains any rows. The SQL query is built from the condition's properties and looks like this:
SELECT fields FROM table WHERE column condition value
NOTE Several of the properties for this condition support the !valueOf template. For information, see Properties that support the !valueOf template.
|
Property |
Description |
|---|---|
|
User ID ^ |
The user ID expected by the database. |
|
Column |
The name of a column for the WHERE clause. |
|
Database Name ^ |
The URL for the database. The format for the URL depends on the DBMS.
|
|
Condition |
A SQL comparison operator for the WHERE clause. |
|
JDBC Driver ^ |
The Java class name for the JDBC driver.
|
|
Fields |
The columns to include in the result set. Use an asterisk (*) to specify all columns. |
|
Value |
The value you want to match in the WHERE clause. |
|
Password ^ |
The password expected by the database. This is not necessarily the same as the portal user's password. |
|
Table |
The table for the SQL query. |
Executes a SQL query and returns true if the result set contains any rows.
For a description of the properties, see the
SQL String action.
|
Rules Guide |
Copyright © 2002, SilverStream Software, LLC, a wholly owned subsidiary of Novell, Inc. All rights reserved.