First Previous Next Last

Rules Guide  

Chapter 8   Installed Actions

This chapter describes the actions installed with your Director project in Workbench. It has these sections:

For more information    For information about how to use conditions and actions in the Rule Editor, see Rule and Macro Editors.

 
Top of page

Accessing condition and action sources

Condition and action class files, sources, and supporting files are contained in JAR files that are added to your project using the Director EAR Wizard. The default location for the JARs in your project is ResourceSet/Web-INF/lib. Here is a list of the JARs that are added, depending on the subsystems you select:

JAR file

Subsystem dependencies

RuleCA.jar

Rule

PortalCA.jar

Rule and Portal

WorkflowRE.jar

Rule and Workflow

CQA.jar

Rule, Portal, and Content Management

 
Top of page

Properties that support the !valueOf template

Some of the condition and action properties support the !valueOf template. You can either enter the actual value you want to use or specify a whiteboard key that holds the value you want. Properties that support this feature are marked with the ^ character. Use this format:

  !valueOf.keyname

You can also specify a key that holds the name of another key. To get a value from another key, specify !valueOf.anotherkey.

For more information    For more information about the !valueOf construct, see Using whiteboard values.

 
Top of page

Properties that support database drivers and URLs

Some of the conditions and actions have properties for accessing a database. These properties include JDBC Driver and Database Name. These values vary with the database and server vendors. You should consult your database and application server documentation for details.

Here is a list of database drivers and URL patterns for some of the databases supported in Director:

Database/Server

Driver Class Name

Database Name

Sybase ASA (SilverStream)

com.sssw.jdbc.mss.odbc.AgOdbcDriver
Default

jdbc:sssw:odbc:DatabaseName
Default

Microsoft SQL Server
(SilverStream)

com.sssw.jdbc.mss.odbc.AgOdbcDriver

jdbc:sssw:odbc:DatabaseName

Microsoft SQL Server
(WebLogic)

weblogic.jdbc.mssqlserver4.Driver

jdbc:weblogic:mssqlserver4:DatabaseName@server:port

NOTE   You can specify the IP address or server host name.

DB2

COM.ibm.db2.jdbc.app.DB2Driver

jdbc:db2:DatabaseName

Oracle Thin

oracle.jdbc.driver.OracleDriver

jdbc:oracle:thin:@server:port:SID

NOTE   You can specify the IP address or server host name.

Oracle (SilverStream)

com.sssw.jdbc.oracle8.Driver

jdbc:sssw:oracle:DatabaseName

Oracle (WebLogic)

weblogic.jdbc.oci.Driver

jdbc:weblogic:oracle:DatabaseName

Sybase ASE

com.sybase.jdbc2.jdbc.SybDriver

jdbc:sybase:Tds:server:port/DatabaseName

NOTE   You can specify the IP address or server host name.

 
Top of page

Action definitions

 
Top of section

Add

Performs addition. The value you specify is added to a value stored in a whiteboard key.

Property

Description

Whiteboard Key ^

The keyname of a numeric value stored on the whiteboard. If the key doesn't exist, the action adds it. If its value is not numeric, it is treated as zero for the arithmetic operation.

For more information    See Properties that support the !valueOf template.

Value

The numeric value you want to add to the value of the whiteboard key.

Results   The whiteboard key contains the new, incremented value. No response status or response phrase is set.

 
Top of section

Add Eraser

Specifies that a whiteboard key will be removed at some future time: either after a number of seconds or after a number of times accessed. Set seconds to zero to use the activation counter, and set the activation counter to zero to use seconds.

Property

Description

Activation Counter

The number of times the whiteboard key's value can be accessed before it is deleted. Setting the key and getting the key's value both increment the activation counter.

Eraser Name

The name of the whiteboard key you want to have erased.

Seconds

The number of seconds the key will stay on the whiteboard.

Results   No immediate result—but after the number of seconds has elapsed or the specified number of hits has occurred, the key is deleted.

 
Top of section

Calculate Age

Calculates the difference in years between a date on the whiteboard and the current date and stores the difference in another whiteboard key.

Property

Description

Detail Key

The key in which you want to store the difference between the two dates.

Date Key

The key containing the date you want to compare to the current date. (The current date is the date the rule is run.)

Setup   Code in the component must add a key to the whiteboard using the name you specified in Date Key, or you could use the Save To Whiteboard action. The data type of its value must be Date.

Results   The key specified in Detail Key contains the number of years between the dates. The value is saved as an integer.

 
Top of section

Clear Request Data From Whiteboard

Removes a key and its value from the whiteboard.

Property

Description

Detail Key ^

The name of the whiteboard key to be removed.

For more information    See Properties that support the !valueOf template.

Setup   If you use a template for Detail Key, you need to add the key to the whiteboard either in your application or through another action (see the Save To Whiteboard action).

Results   The whiteboard key and its value are removed. If the key doesn't exist, nothing happens.

 
Top of section

Create Collection Of Objects From SQL

Creates a Vector of objects from a specified database column and makes the Vector available from the whiteboard through a specified detail key.

NOTE   All of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template

Property

Description

Key Column ^

The name of the column for the SQL WHERE clause.

User ID ^

The user ID expected by the database.

Detail Key ^

The name of the key that holds the object Vector name.

Password ^

The password expected by the database.

Object Name ^

The name of the object or objects to retrieve, for the SQL WHERE clause.

SQL String ^

The SQL statement you want to execute.

NOTE   If you are using a template key for this value, place the expression in quotes—for example: "!valueOf.mySQL".

JDBC Driver ^

The Java class name for the JDBC driver.

For more information    For more information, see Properties that support database drivers and URLs.

Database Name ^

The URL for the database. The format for the URL depends on the DBMS.

For more information    For more information, see Properties that support database drivers and URLs.

 
Top of section

Default

Does nothing. Use this action when you want nothing to happen if the conditions are met. You can also use it as a placeholder as you work on a rule.

TIP   Instead of using the Default action, you can use the Set Response Status action to set a success status code. Portal code that uses the rule can check the status code to confirm that the rule ran correctly.

 
Top of section

Delete Cookie

Deletes a cookie from the client. If the cookie exists, the action sets the cookie's age to zero, which signals the browser to delete it.

Property

Description

Cookie Name

The name of the cookie you want to delete.

Results   Removes the cookie from the user's Web browser or other client. No status code is set. If the cookie does not exist, nothing happens.

 
Top of section

Deny Access

Sets the response status and response phrase. Application code can check the response status and act accordingly.

Property

Description

Message ^

The text to store in the response phrase. Application code can display this text to the user to explain what the action is doing.

For more information    See Properties that support the !valueOf template.

Results   The response status is set to 403 and the response phrase is set to the specified message. (Neither the console nor the log displays the response status.)

 
Top of section

Display Component

Displays the contents of a component.

Property

Description

CID

The component ID.

 
Top of section

Display Cookies

Displays the cookies and their values in the Rule subsystem log. By default, the log output displays on the server console. Use this action when debugging a rule.

For more information    For information on configuring logs, see the chapter on error handling in the Core Development Guide.

 
Top of section

Display Request Headers

Displays the parameters in the request header and their values in the Rule subsystem log. By default, the log output displays on the server console. Use this action when debugging a rule.

For more information    For information on configuring logs, see the chapter on error handling in the Core Development Guide.

 
Top of section

Display Whiteboard

Displays the whiteboard keys and their values in the Rule subsystem log. By default, the log output displays on the server console. Use this action when debugging a rule.

For more information    For information on configuring logs, see the chapter on error handling in the Core Development Guide.

 
Top of section

Divide

Performs division. The value you specify is divided into a value stored in a whiteboard key.

Property

Description

Whiteboard Key ^

The keyname of a numeric value stored on the whiteboard. If the key doesn't exist, the action creates it. If its value is not numeric, it is treated as zero for the division operation.

For more information    See Properties that support the !valueOf template.

Value

The numeric value you want to divide into the value of the whiteboard key.

Results   The whiteboard key contains the quotient of the division. If the divisor value is zero, the whiteboard key's value is set to the text Infinity. No response status or response phrase is set.

 
Top of section

Drop Cookie User ID

Puts a cookie named userID in the browser with a value of the portal user's ID. (Drop is used to mean dropping it into the browser, not dropping tables in a database.)

Property

Description

Maximum Number of Days

The number of days before the cookie expires.

Results   The cookie is set in the browser. No response status or response phrase is set. If the user has disabled cookies, nothing happens.

Success or failure is reported in the log (the default log output is displayed on the server console.)

 
Top of section

Fire Rule

Executes a rule.

Property

Description

Rule ID ^

The ID of the rule you want to fire. Specify the ID (which is displayed in the Rule Editor).

For more information    See Properties that support the !valueOf template.

 
Top of section

Flush

Tells the system to empty the caches that hold rules.

 
Top of section

Format Date

Gets a whiteboard Timestamp value stored in a specified Date key, formats it for the current locale, and saves the result to the whiteboard in the specified Detail key. See also Set Date On Whiteboard.

Property

Description

Detail Key

The name of the key used to save the formatted date text.

Date Key

The name of the key containing a Timestamp object. The Timestamp specifies the date you want to format.

Setup   A key must be on the whiteboard. The keyname is the value you specified in the Date Key property, and the key's value has a data type of Timestamp.

Results   The formatted date text is put on the whiteboard using the key named in the Detail Key property. If the value for Date Key is not a valid Timestamp object, the Detail Key is set to an empty string.

 
Top of section

Get Cookie Value

Gets the value of the specified cookie.

Property

Description

Stop Processing

When checked, the action terminates the rule after getting the cookie value, regardless of the continue setting for the case.

Cookie Name

The name of the cookie whose value you want.

Results   Sets the response phrase to the cookie value.

 
Top of section

Get User Property

Gets the value of a user attribute for the current portal context. The attribute must be set on the whiteboard in the specified key.

For more information    See also the Set User Property action and the Check User Property condition.

Property

Description

Key ^

The name of the attribute.

For more information    See Properties that support the !valueOf template.

 
Top of section

Log User Off

Resets the user to Anonymous and removes all key/value pairs from the whiteboard.

Results   Does not set a response status or response phrase.

 
Top of section

Multiply

Performs multiplication. The value you specify is multiplied by a value stored in a whiteboard key.

Property

Description

Whiteboard Key ^

The keyname of a numeric value stored on the whiteboard. If the key doesn't exist, the action creates it. If the key's value is not numeric, it is treated as zero for the multiplication operation.

For more information    See Properties that support the !valueOf template.

Value

The numeric value you want to multiply by the value of Whiteboard Key.

Results   The Whiteboard Key contains the result of the multiplication. No response status or response phrase is set.

 
Top of section

Query

Returns the result of a query to the Content Management Subsystem as an XML string. This action is used in the Content Query sample application.

For more information    For more information, see Using the Content Query Action in Samples.

 
Top of section

Remove From Whiteboard

Removes a value and its key from the whiteboard.

Property

Description

Whiteboard Key

The name of the key you want to remove.

Results   The key is removed. No response status or response phrase is set.

 
Top of section

Return As Decimal Format

Formats a decimal value as text using the specified formatting. You can add special characters such as currency and percent signs. This action does not support formatting as phone numbers and other non-arithmetic formats.

Property

Description

Max. Number of Integers

The maximum number of digits in the formatted number. If there are more digits in the actual number, digits on the left are dropped.

Min. Number of Integers

The minimum number of digits in the formatted number. If the number has fewer digits, extra zeros are added on the left.

Detail Key ^

The name of a key that holds the number you want to format. If the key doesn't exist, the action creates it. If the key's value is not numeric, the number is set to zero.

For more information    See Properties that support the !valueOf template.

Min. Decimal Places

The minimum number of decimal places. Zeros are added on the right if necessary.

Max. Decimal Places

The maximum number of decimal places. Digits are truncated on the right if necessary.

Grouping

Select this to include a separator character every so many digits, specified by the grouping size and counting left from the decimal point. In an American locale, the separator is a comma.

Grouping Size

The number of digits between separators.

Mask

Specifies special characters to add to the formatted number, such as currency or percent. Other formatting you might put in a mask (such as commas, periods, or dashes) is ignored.

Results   The formatted number is stored as text in the key specified by Detail Key. The response type is set to TEXT and the response status is set to 302.

 
Top of section

Return As Html Body

Returns the opening of an HTML BODY tag with a color attribute.

Property

Description

Background Color ^

A color value specified as text that would be recognized by a browser. You can specify a hexadecimal value, such as #FFFFFF, or a browser-supported color name.

For more information    See Properties that support the !valueOf template.

Results   The action does these things:

 
Top of section

Return As Html Bold

Returns the specified text enclosed in HTML bold tags.

Property

Description

Value ^

The text you want to format with bold tags.

For more information    See Properties that support the !valueOf template.

Results   Sets the response phrase to <b>value</b>. It does not set the response status or response type.

 
Top of section

Return As Html Break

Returns the specified text preceded or followed by HTML break tags.

Property

Description

Value ^

The text to which you want to add break tags.

For more information    See Properties that support the !valueOf template.

To put break tags around the response phrase, use the default value of !valueOf.response.

After

When selected, a break tag is added before the text.

Before

When selected, a break tag is added before the text.

Results   Sets the response phrase to one of the following:

The action does not set the response status or response type.

 
Top of section

Return As Html Checkbox

Returns HTML for a check box.

Property

Description

Name ^

A name for the check box, which becomes the value of the NAME attribute.

For more information    See Properties that support the !valueOf template.

Stop Processing

When selected, the rule ends after this action.

Value ^

The value assigned to the VALUE attribute of the check box. This value is returned to the server when the check box is selected.

For more information    See Properties that support the !valueOf template.

Checked

When selected, adds the CHECKED attribute to the HTML.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="CHECKBOX" VALUE="important" NAME="cb1" CHECKED>

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html File Upload

Returns HTML for a file upload field.

NOTE   Three of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Name ^

A name for the field, which becomes the value of the NAME attribute.

Stop Processing

When selected, the rule ends after this action.

Accept ^

A comma-separated list of MIME types for the ACCEPT attribute. These are the file types the user can select in the field. The attribute is not supported by all browsers.

Value ^

The value assigned to the VALUE attribute of the field. In an HTML page, the value is displayed in the field and replaced by the value the user enters.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="FILE" VALUE="Select a file" NAME="fileupload" ACCEPT="image/*, text/html">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Hidden Field

Returns HTML for a hidden field.

Property

Description

Name ^

A name for the hidden field, which becomes the value of the NAME attribute.

For more information    See Properties that support the !valueOf template.

Stop Processing

When selected, the rule ends after this action.

Value ^

The value assigned to the VALUE attribute of the field. In an HTML page, the value is returned to the server when the user submits the enclosing form.

For more information    See Properties that support the !valueOf template.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="HIDDEN" VALUE="important" NAME="hfld1">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html JavaScript

Returns the JavaScript code you specify enclosed in HTML SCRIPT tags.

Property

Description

JavaScript ^

The JavaScript code to be returned.

For more information    See Properties that support the !valueOf template.

Results   Sets the response phrase to HTML that looks something like this:

  <SCRIPT LANGUAGE=JavaScript> [your code here] </SCRIPT>

The action sets the response type to TEXT and the response status to 302.

 
Top of section

Return As Html Option List

Performs a SQL query and creates an HTML SELECT element from the result set.

NOTE   Several of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

HTML Tag

The name of the SELECT element. The value is used for the NAME attribute.

User ID ^

The user ID expected by the database. This is not usually the same as the portal user ID.

SQL String ^

A SQL statement whose result set contains the values for the list.

NOTE   If you are using a template key for this value, place the expression in quotes—for example: "!valueOf.mySQL".

Key Column

The column whose values will be used for the VALUE attribute of each OPTION element.

Size ^

The value for the SIZE attribute, which specifies the number of items to display in the list. Specify 1 for a dropdown list.

Database Name ^

The URL for the database. The format for the URL depends on the DBMS.

For more information    For more information, see Properties that support database drivers and URLs.

JDBC Driver ^

The Java class name for the JDBC driver.

For more information    For more information, see Properties that support database drivers and URLs.

Password ^

The password expected by the database. This is not usually the same as the portal user's password.

Detail Key

A name used to create whiteboard keys for the result set and SQL statement. The name is used for the result set, and name.sql is used for the SQL statement.

Children Column

The column containing related information. Generally this is left blank. It requires the database to be organized with parent/child relationships.

Width (%) ^

The value for the WIDTH attribute, which specifies the width of the list. This attribute is ignored by some browsers.

Description Column

The column whose values will be used as the text of each OPTION element.

Results   Sets the response phrase to HTML that looks something like this:

  <SELECT id=opt1 name=opt1 size=1 width= 100">
  <OPTION value="portalcorpid">Official
  <OPTION value="anonymous">Anonymous
  <OPTION value="administrator">User0
  <OPTION value="contentadmin">User1
  <OPTION value="default">null
  <OPTION value="sample">Sample
  <OPTION value="testID">Smith
  </SELECT>

The action sets the response type to TEXT and the response status to 302. The result set and SQL statement are stored on the whiteboard (see the Detail Key property in the table above). If you specify a Detail Key, the rule ends after this action.

 
Top of section

Return As Html Password

Returns HTML for a password input field.

NOTE   Several of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Read-only

Whether the user is allowed to enter a value.

Name ^

A name for the password field, which becomes the value of the NAME attribute.

Stop Processing

When selected, the rule ends after this action.

Maximum Length ^

The maximum number of characters allowed for the password.

Size ^

The value for the SIZE attribute, which is the width of the field.

Value ^

The value assigned to the VALUE attribute of the field. In an HTML page, this is the default value for the password field. Leave it blank if you don't want a default.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="PASSWORD" VALUE="PASSWORD" NAME="default" SIZE="25" MAXLENGTH="50" READONLY >

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Radio Button

Returns HTML for a radio button.

Property

Description

Name ^

A name for the radio button, which becomes the value of the NAME attribute.

In HTML, to create a group of radio buttons that work together, give them all the same name.

For more information    See Properties that support the !valueOf template.

Stop Processing

When selected, the rule ends after this action.

Value ^

The value for the VALUE attribute. In an HTML page, the value is returned to the server when the radio button is selected and its enclosing form is submitted.

For more information    See Properties that support the !valueOf template.

Checked

When selected, adds the CHECKED attribute to the HTML.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="RADIO" VALUE="One" NAME="radio1" CLASS="INPUT">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Reset Button

Returns HTML for a reset button.

Property

Description

Stop Processing

When selected, the rule ends after this action.

Value ^

The value for the VALUE attribute, which is the text displayed on the button.

For more information    See Properties that support the !valueOf template.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="RESET" VALUE="Reset">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Scripted Button

Returns HTML for a reset button.

Property

Description

Stop Processing

When selected, the rule ends after this action.

Value ^

The value for the VALUE attribute, which is the text displayed on the button.

For more information    See Properties that support the !valueOf template.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

OnClick ^

JavaScript code to be run when the button is clicked.

For more information    See Properties that support the !valueOf template.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="BUTTON" VALUE="Cancel" onclick="JavaScript code here">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Submit Button

Returns HTML for a submit button.

Property

Description

Stop Processing

When selected, the rule ends after this action.

Value ^

The value for the VALUE attribute, which is the text displayed on the button.

For more information    See Properties that support the !valueOf template.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="SUBMIT" VALUE="Submit">

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Table

Constructs an HTML table tag, using the result set from the SQL query specified to create associated HTML table row and table data tags, and sets the result in the specified detail key.

NOTE   Many of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

HTML Tag

Appends a NAME or ID attribute to the TABLE tag element.

User ID ^

The user ID expected by the database.

SQL String ^

The SQL statement you want to execute.

Border ^

The value for the HTML table BORDER attribute.

Database Name ^

The URL for the database. The format for the URL depends on the DBMS.

For more information    For more information, see Properties that support database drivers and URLs.

JDBC Driver ^

The Java class name for the JDBC driver.

For more information    For more information, see Properties that support database drivers and URLs.

Query String ^

The value for the HTML hyperlink query string.

Cell Spacing ^

The value for the HTML table CELLSPACING attribute.

Display Headings

When selected, appends the HTML table row for the table headings to the output buffer.

Password ^

The password expected by the database. This is not necessarily the same as the application user's password.

Cell Padding ^

The value for the HTML table CELLPADDING attribute.

Detail Key

A name used to create a whiteboard key for the result set and SQL statement. The name is used for the result set, and name.sql is used for the SQL statement.

Width^

The value for the HTML table WIDTH attribute.

Description Column

The value for the column name in the result set whose data is used for the HTML OPTION tag DESCRIPTION.

 
Top of section

Return As Html Text Area

Returns HTML for a multiline text field.

NOTE   Several of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Name ^

The name for the field, assigned to the NAME attribute.

Stop Processing

When selected, the rule ends after this action.

Columns ^

The width of the text field (specified as a number of characters) assigned to the COLS attribute.

Value ^

The default text to be displayed in the text field.

Rows ^

The length of the text field (specified as a number of characters) assigned to the ROWS attribute.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <TEXTAREA NAME="txt1" ROWS="25" COLS="50">This is where to enter text</TEXTAREA>

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As Html Text Field

Returns HTML for a single-line text field.

NOTE   Several of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Read Only

When selected, the text cannot be edited.

Name ^

The name for the input field, assigned to the NAME attribute.

Stop Processing

When selected, the rule ends after this action.

Maximum Length ^

The maximum number of characters allowed, assigned to the MAXLENGTH attribute.

Size ^

The width of the text field (specified as a number of characters) assigned to the COLS attribute.

Value ^

The default text displayed in the text field.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Disabled

When selected, adds the DISABLED attribute to the HTML.

Results   Sets the response phrase to HTML that looks something like this:

  <INPUT TYPE="TEXT" VALUE="TEXT" NAME="default" SIZE="25" MAXLENGTH="50" READONLY>

The action sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return As XML

Submits a SQL query and formats the result set as XML. The root element is table, and its subelements are:

NOTE   Many of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

User ID ^

The user ID expected by the database. This is not usually the same as the portal user ID.

Detail Key

A name used to create whiteboard keys for the result set and the SQL statement. The name is used for the result set, and name.sql is used for the SQL statement.

Password ^

The password expected by the database. This is not usually the same as the portal user's password.

Description

Text that will be the value of a description attribute assigned to the root element, which is called table.

SQL String ^

A SQL statement whose result set contains the data to be formatted as XML elements.

NOTE   If you are using a template key for this value, place the expression in quotes—for example: "!valueOf.mySQL".

JDBC Driver^

The Java class name for the JDBC driver.

For more information    For more information, see Properties that support database drivers and URLs.

Database Name^

The URL for the database. The format for the URL depends on the DBMS.

For more information    For more information, see Properties that support database drivers and URLs.

Results   Sets the response phrase to XML that looks something like this:

  <table description="test user list" key="test" sqlString="select * from FWUSERS">
      <columns count="3">
          <column value="USERID"/>
          <column value="FIRSTNAME"/>
          <column value="LASTNAME"/>
      </columns>
      <tuples count="2">
          <tuple number="1">
              <tuple value="portalcorpid"/>
              <tuple value="Portal Corporate Administrator"/>
              <tuple value="unknown"/>
          </tuple>
          <tuple number="2">
              <tuple value="anonymous"/>
              <tuple value="Portal Anonymous User"/>
              <tuple value="unknown"/>
          </tuple>
      </tuples>
  </table>

The action sets the response type to TEXT and the response status to 302. The result set and SQL statement are stored on the whiteboard (see the Detail Key property in the table above). If you specify a Detail Key, the rule ends after this action.

 
Top of section

Return Authentication Required

Sets the context response status 401, forcing the browser to ask for authentication.

Results   The response status is 401.

 
Top of section

Return False

Sets the response status to 412, which signifies the boolean value false.

Results   The response status is 412.

 
Top of section

Return Response

Sets the response phrase to the specified text. You can use !valueOf templates to build a text value from phrases stored on the whiteboard.

Property

Description

Stop Processing

When selected, the rule ends after this action.

Response ^

The response phrase.

For more information    See Properties that support the !valueOf template.

Append Response?

When selected, adds the HTML to the response phrase after any other text that is already there.

Results   Sets the response phrase. It also sets the response type to TEXT and the response status to 302. If Stop Processing is checked, rule processing ends.

 
Top of section

Return Response With Default

Returns text associated with a whiteboard key or uses a default message.

NOTE   The properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Default ^

A message to use if the Response key doesn't exist. If the Response key doesn't exist or has a null value, a new key is created. Its name is the Response keyname, and its value is the Default message.

Response ^

A whiteboard key containing the message you want.

Results   Sets the response phrase to the message, stores the message on the whiteboard, sets the response type to TEXT, sets the response status to 302, and stops rule processing.

 
Top of section

Return True

Sets the response status to 200, which signifies the boolean value true.

Results   The response status is 200.

 
Top of section

Save Cookies To Whiteboard

Puts the cookies the browser has sent onto the whiteboard. The whiteboard keys are created using the cookie name as the keyname and the cookie's value as the value for the key.

For more information    See the Save Cookies To Whiteboard condition.

 
Top of section

Save Form Get Data To Whiteboard

Puts the query string from the browser on the whiteboard using the specified key.

For more information    See the Save Form Get Data To Whiteboard condition.

Property

Description

Whiteboard Key ^

The name of the whiteboard key.

For more information    See Properties that support the !valueOf template.

 
Top of section

Save Request Data To Whiteboard

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.

For more information    See the Save Request Data To Whiteboard condition.

Property

Description

AutoClear

If this action has run before and the Detail Key includes a set of previously created keys, those keys are removed from the whiteboard before new keys are created from the current request data.

Detail Key ^

A whiteboard key in which to store the names of the keys that are being created.

NOTE   The keys are stored in a Vector.

For more information    See Properties that support the !valueOf template.

 
Top of section

Save To Whiteboard

Saves a value on the whiteboard using the specified keyname.

NOTE   Two of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Whiteboard Key ^

The name to use for the whiteboard key in which you want to save the value.

Data ^

The value you want to save on the whiteboard.

Resolve

When selected, !valueOf templates in the Data property are processed and the stored value contains the result. When not selected, the text is not evaluated and the whiteboard contains the text as entered.

Results   The value is set on the whiteboard. No response phrase or status is set.

 
Top of section

Send Mailer SMTP

Sends a mail message to a specified e-mail address. Use this action to send alerts or logging information to an administrator.

Property

Description

Subject

The subject line for the e-mail.

To

A valid e-mail address, in the form recipient@yourcompany.com.

SMTP Host

An SMTP mail host. These usually have the form smtp.yourcompany.com or mail.yourcompany.com.

Message ^

The text of the e-mail.

For more information    See Properties that support the !valueOf template.

From

The sender's e-mail address, which is an e-mail address associated with your portal application.

Results   The mail is sent. No response phrase or status is set.

 
Top of section

Set Component Parameter

Sets the value of a component parameter for the current portal context. The component parameter must exist.

NOTE   The properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Key ^

The name of the parameter.

Value ^

The value for the parameter.

 
Top of section

Set Cookie Value

Creates a cookie or changes its value and expiration date.

Property

Description

Maximum Number of Days

The number of days the cookie will exist before the user's browser deletes it.

Cookie Value ^

The text value assigned to the cookie.

For more information    See Properties that support the !valueOf template.

Cookie Name

The cookie's identifier.

Results   The cookie is set. No response phrase or status is set.

 
Top of section

Set Date On Whiteboard

Sets the current date on the whiteboard with a specified key and format. The default format is a timestamp and the default time is the runtime value.You can specify other formats and time values..

Property

Description

Key

The key for the date value.

Format

The date format. For example:

  yyyy-MM-dd k:mm:ss.S

Default time is current (runtime). You can also specify a time value. For example, the following indicates today at 12 P.M.:

  yyyy-MM-dd 00:00:00.000 

For more information    For information about date formats, see the API documentation for java.text.SimpleDateFormat.

For more information    For information about date values, see the API documentation for java.util.Date.

 
Top of section

Set Expired

Sets the context response headers in the browser to be expired.

Results    The headers are set to expired. No response phrase or status is set.

 
Top of section

Set Next Activity

Sets the destination link in a workflow process. For use with a Rule Link the Workflow Editor.

Two of the properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Addressee ^

User activities only: the user, group, or role defined for the activity. For nonuser activities, use the default.

isRole

Check this if the Addressee field is a role.

Activity Name ^

The name of the activity, as defined in the workflow process.

 
Top of section

Set Pipeline Status

Sets the active pipeline's canProcessRequests flag to the On/Off for this action.

Property

Description

On

When selected, the pipeline is active for this action.

Result    The active status is changed for this action only.

 
Top of section

Set Response Header

Sets a named parameter value in the HTTP response header (EbiResponse).

Property

Description

Key

The name of the parameter being added to the response header.

Value

The text value associated with the parameter name.

Results   Sets the parameter using the keyname and value you specify. No response phrase or status is set.

 
Top of section

Set Response Status

Sets the response status.

Property

Description

Status

A status value. You must use one of the numeric values identified in EbiResponse. For information, see the API Reference.

Results   Sets the status to the value you specify. If your rule performs several actions, the response status will be the last status that was set. To control the status value, make the Set Response Status action the last one in the rule.

 
Top of section

Set User Property

Sets the value of a user attribute for the current portal context. The user attribute must exist.

NOTE   The properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Key ^

The name of the user attribute.

Value ^

The value for the user attribute.

 
Top of section

Set Workitem Priority

Sets the specified value as an Integer associated with the current workitem. For use with a Rule Activity or a Rule Link in a workflow process.

NOTE   If you use this action with a Rule Link, be sure the action section also sets the next destination. See Set Next Activity.

Property

Description

Priority ^

A string value.

For more information    See Properties that support the !valueOf template.

.

 
Top of section

Set Workitem Value

Sets the property value for the Document associated with a workitem in a workflow process. The document and property must exist and have been added previously to the workitem. The action handles locking and unlocking of the Document to set the property. For use with a Rule Activity or a Rule Link in a workflow process.

NOTE   If you use this action with a Rule Link, be sure the action section also sets the next destination. See Set Next Activity.

The properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

Document Property ID ^

The ID for the property.

Document ID ^

The Document ID.

Property Value ^

The property value to set.

 
Top of section

SQL Hierarchy

Does the same as the SQL String action. There is no corresponding condition.

 
Top of section

SQL String

Executes a SQL statement and stores the result on the whiteboard. If more than one row is returned, only the last row in the result set is saved to the whiteboard.

For more information    See also the SQL String condition.

NOTE   The properties for this action support the !valueOf template construct. For more information, see Properties that support the !valueOf template.

Property

Description

User ID ^

The user ID expected by the database.

Password ^

The password expected by the database. This is not necessarily the same as the portal user's password.

SQL String ^

The SQL statement you want to execute.

NOTE   If you are using a template key for this value, place the expression in quotes—for example: "!valueOf.mySQL".

JDBC Driver ^

The Java class name for the JDBC driver.

For more information    For more information, see Properties that support database drivers and URLs.

Database Name ^

The URL for the database. The format for the URL depends on the DBMS

For more information    For more information, see Properties that support database drivers and URLs.

 
Top of section

Stop Rule Processing

Ends processing of the current rule. If the rule has been invoked as part of a rules pipeline, it ends the pipeline too.

Results   Stops rule processing by throwing EboActionException.

 
Top of section

Subtract

Performs subtraction. The value you specify is subtracted from a value stored in a whiteboard key.

Property

Description

Whiteboard Key^

The keyname of a numeric value stored on the whiteboard. If the key doesn't exist, the action creates it. If the key's value is not numeric, it is treated as zero for the arithmetic operation.

See Properties that support the !valueOf template.

Value

The numeric value you want to subtract from the value of the whiteboard key.

Results   The whiteboard key contains the result of the subtraction. No response status or response phrase is set.

    First Previous Next Last

Rules Guide  

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