Configuring min payroll and max hours rules

This topic explains how to configure Minimum Payroll and Maximum Hours rules.

By default, the Maximum Payroll and Minimum Hours rules are already part of these groups:

  • DFT BUDGET WORKSHEET EXEC GRP 1
  • DFT FORECAST WORKSHEET EXEC GRP 1
  • DEFAULT FORECAST CREATION EXEC GRP 2

If you create the Minimum Payroll and Maximum Hours rules, they should also be part of these execution groups.

To configure the additional rules:

  1. Select Maintenance > Optional Modules > Labor Budgeting > Labor Budgeting Settings > Execution Groups.
    The Execution Groups page is displayed.
  2. To configure these rules for:
    • budget calculations/aggregation, click Edit beside DFT BUDGET WORKSHEET EXEC GRP 1.
    • forecast calculations/aggregation, click Edit beside DFT FORECAST WORKSHEET EXEC GRP 1.

    The Execution Group Details page is displayed.

  3. To add a new rule, complete the following fields in a new row in the Rule area of the page:
    Name
    Specify the name for the new rule. For example, specify Validate Minimum Payroll.
    Description
    Specify a description for the new rule. For example, specify Validate that plan data meets the minimum payroll.
    Class
    Specify the Java class that implements this rule.

    For the Maximum Hour rule, specify: com.workbrain.app.modules.budgeting.rules.MaxHoursValidationRule.

    For the Minimum Payroll rule, specify: com.workbrain.app.modules.budgeting.rules.MinPayrollValidationRule.

    Condition Class
    Specify the condition class that determines the conditions for running the rule. For example to run the rule whenever data on the plan is recalculated, specify: com.workbrain.app.modules.budgeting.rules.IsRecalculationCondition.
    Order
    Specify a number representing the order in which this rule will run, relative to other rules in the same execution group. See Ordering rules and execution groups.
    Parameters
    Specify any parameters to determine rule behavior. For the Maximum Hour rule, specify:
    • allowSubmit=true|
    • allowRelease=true|
    • allowLock=true|
    • rootTimePeriod=
    • false

    For the Minimum Payroll rule, specify:

    • sourceVersionName=MASTER|
    • allowSubmit=true|
    • allowRelease=true|
    • allowLock=true|
    • rootTimePeriod=true

    You can configure the parameters to match your business processes. For detailed descriptions of supported parameters, see Business rule parameters.

  4. Click Save.