Interfaces and default implementations

This table describes the Balances and Accruals interfaces and default implementations that are provided with Workforce Management. You can use or modify the default implementations, or you can create your own implementations.

Interface Name Description
Interface CheckMinMax Tests the min/max value against the current value of the balance that is defined in the recDetail record. If there is a violation, then the handling routine is executed.
Interface EnforceMax Forces the balance to be, at most, the value that is defined in recDetail.entdet_ max_bal_value.
Interface EnforceMin Forces the balance to be, at least, the value that is defined in recDetail.entdet_min_bal_value.
Interface TestDetail Returns a Boolean value.

Applies the default tests against the recDetail that is loaded in the package.

Interface Ratio Returns a number. Trivial function that returns "1".
Interface SumGood Returns a number.

Default value in the Good Function field from the Accrual Detail section.

Sums all records where the code is in the "Good Codes" list over the period that is defined as the previous period of the accrual period. For the case of "Good Units" being:

  • D[ays]: Sums the number of days on which at least one of the time codes was listed.
  • H[ours]: Sums the number of hours on which at least one of the time codes was listed.
  • M[minutes]: Sums the number of minutes on which at least one of the time codes was listed.
Note: The SumGood interface is implemented by DefaultEntAction. DefaultEntAction calls either the SumGood or SumBad interface, depending on whether DefaultEntAction has been entered in the Good Function field or the Bad Function field from the Accrual Detail section.

For example, if DefaultEntAction is is entered in the Good Function field, DefaultEntAction will call the SumGood interface.

Interface SumBad Returns a number.

Default value in the Bad Function field from the Accrual Detail section. Same as SumGood except it looks at the "Bad" time codes, such as LTE or LE.

Note: The SumBad interface is implemented by DefaultEntAction. DefaultEntAction calls either the SumGood or SumBad interface, depending on whether DefaultEntAction has been entered in the Good Function field or the Bad Function field from the Accrual Detail section.

For example, if DefaultEntAction is entered in the Bad Function field, DefaultEntAction will call the SumBad interface.