not to get you confused but this is the real piece of code:
[ExtensionOf(classStr(HcmWorkerTransition))]
final class ASCHcmWorkerTransition_Extension
{
ASCWorkerCategoryEnum hcmWorkerCategory;
static HcmWorkerRecId ascNewCreateHcmWorker(
ASCWorkerCategoryEnum _hcmWorkerCategory,
DirPersonName _dirPersonName,
HcmPersonnelNumberId _personnelNumber,
CompanyInfoRecId _legalEntityRecId = CompanyInfo::find().RecId,
HcmEmploymentType _hcmEmploymentType = HcmEmploymentType::Employee,
validFromDateTime _validFrom = DateTimeUtil::minValue(),
validToDateTime _validTo = DateTimeUtil::maxValue()
, EmployeeId_RU _employeeId = ''
)
{
HcmWorkerTransition hcmWorkerTransition = new HcmWorkerTransition();
hcmWorkerTransition.parmLegalEntityRecId(_legalEntityRecId);
hcmWorkerTransition.parmHcmEmploymentType(_hcmEmploymentType);
HcmWorkerTransition.ascParmHcmWorkerCategory(_hcmWorkerCategory);
hcmWorkerTransition.parmValidFrom(_validFrom);
hcmWorkerTransition.parmValidTo(_validTo);
}