JmgTermJob.allow Method [AX 2012]
Determines whether employees can register on the job.
Syntax
public boolean allow()
Run On
Called
Return Value
Type: boolean
true if employees can make registrations on the job; otherwise, false.
Examples
The following example uses the allow method to determine whether registration is allowed on job ID 10000185. If so, a start job registration for employee ‘EBA’ is made.
JmgTermJob jmgTermJob;
;
jmgTermJob = JmgTermJob::construct('10000185');
if (jmgTermJob.allow())
{
jmgTermJob.makeRegistration(jmgWorkerRecId, today(), timenow());
}