MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Reference Library > Distribution > Expert Configurator > Key Concepts and Procedures > Expert Configurator Rules > Condition Rule

Condition Rule

 

A condition rule is used to stipulate the processing of subsequent rules.  Rules will be released based on the interpretation of their releasing rule.  A condition rule allows for the grouping of rules, in which their release is based upon a common condition.  A condition rule can be defined in place of specifying an identical condition statement for each rule dependent upon that condition.  Therefore, the condition statement of the rules released by the condition rule will not include the common condition syntax.  A condition rule can be defined for all three categories of rules:  sales order entry, pricing, and manufacturing. 

The condition determines if the rule result is true or false.  Rules are released based on the result of this condition.  If no condition expression is entered it is interpreted as true, and all rules that specify this rule as a releasing rule are processed.

Identification

System Identifier:          03

Valid Rules Categories: Sales Order Entry

                                    Pricing

                                    Manufacturing

A condition rule does not have action expressions.

To maintain a condition rule, perform the procedures listed below.  Rules can be added, changed, deleted, deactivated, or reactivated.

Add a Condition Rule

1.   Display the Rules Maintenance Function Select screen.

a.   Select the Expert Configurator option from the System Application Menu.

b.   Select the Sales Order Entry, Pricing, or Manufacturing Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.

2.   Enter the Function Select information.

a.   Assign a unique number to the condition rule.

b.   Enter the action code for a condition rule in the Action Code field.  Action codes are defined in category Y03 on the Reference File.

c.   Enter a 1 (addition) in the Maintenance Code field.

d.   Press the Enter key to display the header screen.

3.   Enter the header information.  See the Standard Rules Header screen (EC100S03) in the Screens section of this manual for more information.

4.   Press the Enter key to display the detail screen.

5.   Enter the detail information.

a.   Enter the condition statement.  (Optional)

The condition determines if the rule result is true or false.  If the condition expression is interpreted as true, the action expressions are processed.  Rules are released based on the result of the condition.  If no condition is entered, the condition is interpreted as true.  If entered, this condition statement must be in correct syntax.  See Rule Syntax and Variables in the key concepts section of the Overview of this manual for more information.

6.   Press the Enter key to update the Rule Master File.

Change a Condition Rule

1.   Select the Sales Order, Pricing, or Manufacturing Rule Maintenance option on the Expert Configurator Menu to display the select screen.

2.   On the Rule Maintenance Function Select screen

a.   Enter the condition rule number in the Rule Number field.

b.   Enter a 2 in the Maintenance Code field to change the header information for the condition rule.  Enter a 3 in the Maintenance Code field to change the detail information for the condition rule.

3.   Change the descriptive data for the rule and press the Enter key.

4.   If all fields are valid, the rule is changed on the Rule Master File.

Reactivate or Deactivate a Condition Rule

1.   Select the Sales Order, Pricing, or Manufacturing Rule Maintenance option on the Configuration Menu.

2.   On the Rule Maintenance Function Select screen:

a.   Enter the condition rule number in the Rule number field.  All rules released by this rule must be deactivated before this rule can be deactivated.

b.   Enter a 4 in the Maintenance Code field to deactivate the condition rule.  Enter a 5 in the Maintenance Code field to reactivate the condition rule.

3.   Press the Enter key to deactivate or reactivate the rule.

4.   Press F3 to exit without update.