Share via


WrkCtrTable::adjustWorkerResourceGroupMembership Method

Adjusts resource group memberships for a worker based on changes in the employment date.

Syntax

client server public static void adjustWorkerResourceGroupMembership(
    WrkCtrWorker _worker, 
    RefRecId _legalEntity, 
    utcdatetime _utcOldValidFrom, 
    utcdatetime _utcOldValidTo, 
    utcdatetime _utcNewValidFrom, 
    utcdatetime _utcNewValidTo)

Run On

Called

Parameters

  • _utcOldValidFrom
    Type: utcdatetime
    The original valid from date of the employment.
  • _utcOldValidTo
    Type: utcdatetime
    The original valid to date of the employment.
  • _utcNewValidFrom
    Type: utcdatetime
    The new valid from date of the employment.
  • _utcNewValidTo
    Type: utcdatetime
    The new valid to date of the employment.

Exceptions

Exception Condition
Error

The update of the resource group membership is not valid.

-or-

The deletion of the resource group membership is not valid.

See Also

Reference

WrkCtrTable Table