Click or drag to resize

TrackingServicesValidateStartOperation Method

Validates that a production unit or material (Item) is ready to begin the specified Operation. A variety of checks are performed, including route validation, workstation material setup validation, operator certification checks, and Batch status validation. If any of these checks fail, the validation will return details. The workstationId parameter is optional, but material setup validation will only be performed if a valid workstationId is specified. The operatorUserName parameter is also optional, but operator certification validation will only be performed if a valid operatorUserName is supplied. If specified, any entry conditions (Condition) configured for the Operation will be evaluated or performed, and the validation will fail if any of the conditions are violated.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public StartValidationResult ValidateStartOperation(
	Guid sessionId,
	Guid operationId,
	string UID,
	Nullable<Guid> batchId,
	bool evaluateConditions,
	Nullable<Guid> workstationId,
	string operatorUserName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
operationId
Type: SystemGuid
The Id property of the Operation that the validation will be performed against.
UID
Type: SystemString
The UID of the Item to be validated. This may also be the UID of a carrier or panel type Item containing units or materials to be tracked.
batchId
Type: SystemNullableGuid
The optional 128-bit unique identifier (Id property) of the Batch.
evaluateConditions
Type: SystemBoolean
A boolean value indicating whether or not configured entry conditions should be evaluated.
workstationId
Type: SystemNullableGuid
The optional Id of the Workstation where the Operation will be performed. This is required to validate material setup when it exists.
operatorUserName
Type: SystemString
The optional user name of the operator (User) who will perform the Operation.

Return Value

Type: StartValidationResult
A StartValidationResult object describing the results of the validation request.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
OperationNotFoundExceptionThrown if the operationId parameter is invalid.
ItemExceptionThrown if the UID parameter is invalid.
ResourceNotFoundExceptionThrown if the workstationId parameter is not null and is invalid.
UserNotFoundExceptionThrown if the operatorUserName parameter is not null or empty, and the specified User cannot be found in the system.
MultipleBatchesFoundExceptionThrown if the batchId property is not supplied and the UID is a Box or Carrier with UIDs from multiple Batches.
MaterialSetupRequiredExceptionThrown if meterial setup is not complete.
NonTrackingExceptionThrown if the operation is not tracked.
ResourceRequiredExceptionThrown if the operation has material setup and the worstationId is not supplied.
See Also