Rule Builder > Business Query Language Reference > Tokens for the Condition Part of a Query

In the condition part of a query, the arrow (images/blueArrow_icon.gif ) token is a delimiter between conditions. When you click the images/blueArrow_icon.gif token, it creates a new condition and provides the text <select a condition>. When you click this text, it displays a drop-down list with the conditions you can choose as shown in Figure 25.1.

images/bqlFilters.png

Figure 25.1    Condition Part Tokens

When you click a token, your query should look similar to the example given in Figure 25.2.

images/bqlAnnotation.gif

Figure 25.2    Example of Tokens in a Condition

The condition part tokens are described in Table 25.1.

Table 25.1   Condition Part Tokens
Token 
Description 
Comment 
documentation  The token documentation inserts a filter on the text that appears in the documentation of your rules.  This token has the same subtokens as the token is, see Subtokens for the Condition Part Tokens
is active  The token is active inserts a filter on the active status of your rules. Rules that are in the active state are included in a ruleset when the rules are extracted.  This token does not have any subtokens. 
is editable  The token is editable inserts a filter on the editable status of your rules. Rules that are in the editable state can be modified or updated using the Rule Editor.  This token does not have any subtokens. 
is working version  The token is working version inserts a filter on the version of your rules.  This token does not have any subtokens. 
name  The token name inserts a filter on the name of your rules.  This token has the same subtokens as the token is, see Subtokens for the Condition Part Tokens
package  The token package inserts a filter on the package where your rules are located.  This token has the same subtokens as the token is, see Subtokens for the Condition Part Tokens
packet (deprecated)  The token packet implements a filter on the packet your rules belong to. If you load an old repository into JRules, you may have packet related tokens in queries.  This token has the same subtokens as the token is, see Subtokens for the Condition Part Tokens
priority  The token priority implements a filter on the priority of your rules.  This token has the same subtokens as the token is, see Subtokens for the Condition Part Tokens
the tag <name>  The token the tag <name> sets the tag token of the filtered rule to <name>. The token the tag <name> can contain another value or attribute.   Click the subtoken contains to switch it to doesn't contain
the class <class>  The token the class <class> inserts a filter on the name of a BOM class. The class <class> token allows you to choose the class name for an object. When you click <class>, a drop-down list displays the list of classes that have been loaded in the BOM. When you choose a class name in the drop-down list, this class name displays instead of the token. To change the class name, click it and choose another name in the drop-down list.   Click the subtoken is used by the rule to switch it to is not used by the rule
the creation date  The token creation date inserts a filter on the date when your rules were created.  This token provides you with a drop-down list with the subtokens shown in Subtokens for <the creation date> and <last modification date> Tokens
the last modification date  The token the last modification date inserts a filter on the last modification date of your rules.  This token is composed of the same subtokens as the creation date, see Subtokens for <the creation date> and <last modification date> Tokens
member <class member>  The token member <class member> inserts a filter on the name of a BOM class member. The member <class member> token allows you to choose the class member name for an object. When you click <class member>, a drop-down list displays the list of members of classes that have been loaded in the BOM. When you choose a class member name in the drop-down list, this member name displays instead of the token. To change the class member name, click it and choose another class member in the drop-down list.  Click the subtoken is used by the rule to switch it to is not used by the rule
text of its <type> view  The token text of its <type> view implements a filter on both the text and the type of view of your rules. The text of its <type> view token allows you to choose between enter a value and select an item by selecting the : token.  This token has the same subtokens as the token is plus several others, see Subtokens for the Condition Part Tokens and Subtokens for <the text of its type> Token
the top package  The token top package returns the contents of a given top package.  This token has the same subtokens as the token is plus several others, see Subtokens for the Condition Part Tokens

Notes
  1. The token "the member <class member>" does not work with TRL rules, but works for BAL rules, decision tables and decision trees.
  2. The token "the class <class>" works with any kind of rule that uses classes.


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT