Previous Topic

Next Topic

Book Contents

Book Index

A rule with two conditions- Or relationship

This example shows you how to create rules for a Job attribute that has two conditions, and the condition relationship is OR.

In this case, we want to create a rule for Sub Application. However, there are two conditions in which the rule applies. One is if Sub Application equals DB, Job Name should end with -DB. The other is, if Sub Application does not equal DB, Job Name should start with Application.

Therefore, you have to create two regular rules, each rule containing one condition.

Rule 1

  1. In the Site Standard, select Rule:

    I_WCM_addrule

  2. In the Rule Prerequisites tab select All Job types, and add the following Rule Condition:

    CTM_Web_OrCondRule_RP

  3. In the Job Attribute tab, search for and select Sub Application:

    CTM_Web_OrCondRule_JA

  4. In the Rule Format tab, select Include-->Pattern-->Part Type: Free text. Add another Pattern -->Part Type: Fixed Text-->Value: -DB:

    CTM_Web_OrCondRule_RF

Rule 2:

  1. Add another rule:

    I_WCM_addrule

  2. In the Rule Prerequisites tab select All Job types, and add the following Rule Condition:

    CTM_Web_OrCondRule_RP2

  3. In the Job Attribute tab, search for and select Sub Application:

    CTM_Web_OrCondRule_JA

In the Rule Format tab, select Include-->Pattern-->Part Type: Folder/Job Attribute-->Value: Application. Add another Pattern -->Part Type: Free Text:

CTM_Web_OrCondRule_RF2

Parent Topic

Rule conditions