Documentation >
MAC-PAC Reference Library >
Distribution >
Expert Configurator >
Key Concepts and Procedures >
Expert Configurator Rules >
Start Debug Rule
Start Debug Rule
A start debug rule identifies a starting point within the bill of rules to begin tracking rules processed. A start debug rule can be used in sales order entry and pricing configuration. A start debug rule will trace only the rules for the corresponding rule category; either sales order entry or pricing.
The condition determines if the rule result is true or false. If the condition expression is interpreted as true, the action expressions (Action Codes to Trace, and Debug Screen Title) are processed. Rules are released based on the result of the condition expression. If no condition expression is entered, it is interpreted as true.
You may specify particular action codes to be traced under this start debug rule. If left blank, all action codes in the database type this rule is created in (sales order entry or pricing) are traced. This field is 25 characters long. If you enter action codes to trace in this field, each code must be separated by a blank space.
This user-defined value appears on the debug screen to notify users that the debug rule is in effect. You should center the title in this field so it will be centered on the screen.
Identification
System Identifier: 11
Valid Rule Categories: Sales Order Entry Rules
Pricing Rules
Action Expression 1
Description: Rule type to trace. Identified by action code
Expression Type: Non-syntax (text)
Length: 25
Interpreted Type: Not interpreted
Note: List up to eight action codes to be traced, separating each with a blank space.
Action Expression 2
Description: Debug Screen title. This user-defined heading appears on the debug screen when it is displayed.
Expression Type: Non-syntax (text)
Length: 25
Interpreted Type: Not interpreted.
Add a Start Debug 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 or Pricing 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 rule.
b. Enter the action code for a start debug 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. In some cases, the user may want to track rules if a certain case were presented. For example, the user could write a condition statement that would track rules only if a particular option were chosen (O-COLOR,EQ,"RED"). In this case, rules are tracked if the sale order entry clerk entered an order with red chosen as the option. This condition statement must be in correct syntax. See Rule Syntax and Operands in the key concepts section of the Overview in this manual for more information.
b. Enter the action codes to trace. (Optional)
To track specific rules instead of all rules, enter the user-defined action codes corresponding to the types of rules to be traced in the Action Codes To Trace field on the Start Debug Detail Screen. This field is not interpreted by the Expert Configurator. Enter the two character action code with a space between each action code. This field is 25 characters long, up to eight action codes may be entered. If this field is left blank, all rules will be traced.
c. Enter the debug screen title. (Optional)
The debug screen title field allows the user to display a message at the top of the debug screen when it is displayed.
Enter the text to appear on the screen in the Debug Screen Title field on the Start Debug Detail Screen. This field is not interpreted by the Expert Configurator. Enter the title (centered) exactly as it will appear on the screen. The message may be up to 25 characters long.
6. Press the Enter key to add this start debug rule to the Rule Master File.
Change a Start Debug Rule
1. Select the Sales Order or Pricing Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.
2. On the Rule Maintenance Function Select screen:
a. Enter the start debug rule number in the Rule Number field.
b. Enter a 2 in the Maintenance Code field to change the header information for the rule. Enter a 3 in the Maintenance Code field to change the detail information for the 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 Start Debug Rule
1. Select the Sales Order or Pricing Rule Maintenance option from the Expert Configurator Application Menu to display the select screen.
2. On the Rule Maintenance Function Select screen:
a. Enter the start debug 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 rule. Enter a 5 in the Maintenance Code field to reactivate the rule.
3. Press the Enter key to deactivate or reactivate the rule.
4. Press F3 to exit without deactivating or reactivating the start debug rule.