Click or drag to resize

TrackingServicesTrackQuantityThroughOperation Method

Records that a particular quantity of units or materials has been processed through a particular Operation (non-serialized, unit movement only batch-tracking). Both a "start" and "finish" operation will be performed at once. Any entry and/or exit actions (Condition) configured for the Operation will be performed. Entry conditions will NOT be evaluated as they are handled by the ValidateStartOperationQuantity method. However, exit conditions WILL be evaluated.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public TrackingResult TrackQuantityThroughOperation(
	Guid sessionId,
	DateTime startTime,
	DateTime finishTime,
	Guid operationId,
	int quantity,
	Guid batchId,
	bool proceedOnConditionFailures,
	string statusCode,
	Nullable<Guid> exitPathwayId,
	Guid workstationId,
	string operatorUserName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
startTime
Type: SystemDateTime
The date/time when work began on the Item.
finishTime
Type: SystemDateTime
The date/time when work completed on the Item.
operationId
Type: SystemGuid
The Id property of the Operation to be performed.
quantity
Type: SystemInt32
The quantity of units or materials to be processed.
batchId
Type: SystemGuid
The 128-bit unique identifier (Id property) of the Batch.
proceedOnConditionFailures
Type: SystemBoolean
If true, the transaction will be finished even if one or more configured exit conditions fail for the unit. This may be necessary in certain "unattended" environment where a human operator is not available to respond to the condition failure, and it is desired that the tracking transaction be recorded and concluded under all circumstances.
statusCode
Type: SystemString
The resulting status code for the transaction. May be "PASSED", "FAILED", "SCRAPPED", or the name of a custom status code defined in FactoryLogix.
exitPathwayId
Type: SystemNullableGuid
The exit pathway that the Item should now follow. If null, the "normal" exit pathway is assumed.
workstationId
Type: SystemGuid
The Id of the Workstation where the Operation will be performed.
operatorUserName
Type: SystemString
The optional user name of the operator (User) who will perform the Operation.

Return Value

Type: TrackingResult
A TrackingResult object indicating the result of the operation.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
OperationNotFoundExceptionThrown if the operationId parameter is invalid.
QuantityExceptionThrown if the specified quantity exceeds limits, or is otherwise invalid.
ResourceNotFoundExceptionThrown if the workstation Id parameter is invalid.
StatusCodeExceptionThrown if the statusCode parameter is not empty, and is invalid.
PathwayExceptionThrown if the exitPathwayId parameter is not null, and is invalid.
See Also