Subexpression builder

Use this page to create and manage rules that are used by the scheduler to perform job classification based on the rules/conditions defined.

To view this page, click System Administration > Grid scheduler > Classification rules > Add rule > Subexpression builder.

Select operand

The following list includes operand choices:

  • Job name - The name you choose for the job.
  • Submitter group
  • Submitter ID
  • Job class
  • Application type
  • Application name
  • Platform
  • Time
Operator

Depending on the operand you select, various choices of operators are displayed. The following list includes operator choices:

  • = The equality operator expresses a case-sensitive match.
  • <> The less-than or greater-than operator is for use with numbers.
  • AND: For xx AND yy, expresses matches that contain both xx, yy.
  • IN: This operator expresses an operand with multiple values in a single expression. For example, if, for an operand called port, you want to express that the port value can be any or all of the values such as 9080, 9090, 9091, the expression fragment is port IN (9080,9090,9091). How the values inside the brackets are expressed depends on the data type of port. If port is an integer, the correct syntax is the values without quote marks. If port is a string, the correct syntax is port IN (‘9080’,‘9090’,‘9091’).
  • IS NULL: This operator expresses that a validation of the query shows that the requested parameter does not exist.
  • IS NOT NULL: This operator expresses that a validation of the query shows that the requested parameter exists.
  • LIKE: This operator expresses pattern matching for string operand values. The value must contain the wildcard character percent sign (%) in the position where the pattern matching starts. For example, the expression, host LIKE %blanca, matches the word blanca, or any other word that ends in blanca, while the expression host LIKE blanca% matches the word blanca or any other word that starts with blanca, and the expression, host LIKE %blanca% matches the word blanca or any word that has blanca embedded in it.
  • CONTAIN(S): This operator expresses the value returned if the value of submiter_group used in the expression is present in the array of values returned by the submitter_group operand. For example, if the submitter group returns the array of groups {sales, development, management}, and the value used in the expression is development, then contains will return true. Otherwise, it will be false.
  • CONTAINMATCH (CONTAINSMATCH): CONTAINSMATCH is the same as CONTAINS, but allows for pattern matching. For example, if you use %ment for the CONTAINMATCH value, it will match because development and management both contain the substring of ment in their elements.
Value

Depending on the operator that you choose, type in a value for the subexpression that you want to create.

Subexpression builder

Generates the subexpression as a result of the operand, operator, and values that you specified.

Append

Adds the subexpression to the new rule.




WebSphere Extended Deployment information center (online)

Related information
Job scheduler classification rules

bgs_rulebuilder_rule