Share via


JmgRegistrationParameters.errorSpecification Method [AX 2012]

Sets or retrieves the error specification parameter.

Syntax

public JmgErrorSpecification errorSpecification([JmgErrorSpecification _errorSpecification])

Run On

Called

Parameters

Return Value

Type: JmgErrorSpecification Extended Data Type
The value of the error specification parameter.

Examples

The following example creates a stop registration on production job 1000199 with an error quantity of 4.5 and the error cause set to the Machine value.

JmgTermJob jmgTermJob; 
JmgRegistrationParameters regParams; 
 
jmgTermJob = JmgTermJob::construct('1000199'); 
regParams = new JmgRegistrationParameters(); 
regParams.errorSpecification( 
    JmgErrorSpecificationForm::encodeValue( 
        ProdErrorCause::Machine, 
        4.5)); 
jmgTermJob.makeRegistration( 
    JmgWorkerRecId jmgWorkerRecId;, 
    today(), 
    timenow(), 
    false, 
    regParams);

See Also

JmgRegistrationParameters Class

JmgTermJob Class

JmgErrorSpecificationForm Class