HcmWorkerActionPositionAssignment.validateWorkerAssignmentEndDate Method
Validates that the ValidTo date of the HcmWorkerActionPositionAssignment record is less than or equal to the ValidTo date of the HcmWorkerActionEmployment record.
Syntax
public boolean validateWorkerAssignmentEndDate(
HcmEmploymentValidTo _employmentValidTo,
HcmPositionRetirementDateTime _positionDurationValidTo,
HcmPositionWorkerAssignmentStartDate _workerAssignmentStartDate,
HcmPositionWorkerAssignmentEndDate _workerAssignmentEndDate)
Run On
Called
Parameters
- _employmentValidTo
Type: HcmEmploymentValidTo Extended Data Type
The ValidTo date of the HcmWorkerActionEmployment record.
- _positionDurationValidTo
Type: HcmPositionRetirementDateTime Extended Data Type
The ValidTo date of the HcmPositionDuration record.
- _workerAssignmentStartDate
Type: HcmPositionWorkerAssignmentStartDate Extended Data Type
The ValidFrom date of the HcmWorkerActionPositionAssignment record.
- _workerAssignmentEndDate
Type: HcmPositionWorkerAssignmentEndDate Extended Data Type
The ValidTo date of the HcmWorkerActionPositionAssignment record.
Return Value
Type: boolean
true if the validation passes; otherwise, false.