HcmPositionWorkerAssignment::findByTimeState Method
Finds the specified record in the HcmPositionWorkerAssignment table.
Syntax
client server public static HcmPositionWorkerAssignment findByTimeState(
HcmPositionWorkerAssignmentRecId _recId,
[utcdatetime _validFrom,
utcdatetime _validTo,
boolean _forUpdate,
ConcurrencyModel _concurrencyModel])
Run On
Called
Parameters
- _recId
Type: HcmPositionWorkerAssignmentRecId Extended Data Type
The record ID of the record to find.
- _validFrom
Type: utcdatetime
A value of the ValidFrom field.
- _validTo
Type: utcdatetime
A value of the ValidTo field.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
- _concurrencyModel
Type: ConcurrencyModel Enumeration
The concurrency model option to use when the record is read; optional.
Return Value
Type: HcmPositionWorkerAssignment Table
A record in the HcmPositionWorkerAssignment table, see remarks.
Remarks
The values for the _validFrom and _validTo parameters limit the table selection in the following way:
If no values are specified for both the parameters they will use now. Therefore, the method searches for only active records and returns either an empty or a valid record.
If only the first parameter value is supplied, the second parameter will use the value of the first parameter.
The method searches for active records of the specified date and time and returns either an empty or a valid record.
If both parameters are supplied with values, this method searches for records with validFrom and ValidTo values in that interval. It may return multiple records.