Click or drag to resize

TrackingServicesFinishOperationQuantity Method

Completes an open tracking transaction for a non-serialized (batch-tracked) Batch, given a quantity of units to complete. Any exit conditions will be evaluated and exit actions performed.

Namespace:  FactoryLogix.xTend.Production
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public FinishResult FinishOperationQuantity(
	Guid sessionId,
	DateTime finishTime,
	Guid transactionId,
	int quantity,
	bool proceedOnConditionFailures,
	string statusCode,
	Nullable<Guid> exitPathwayId
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
finishTime
Type: SystemDateTime
The date/time when then transaction was completed.
transactionId
Type: SystemGuid
The transaction Id returned by the TransactionId property of the StartResult.
quantity
Type: SystemInt32
The number of units to complete. If zero (0), the entire quantity of units associated with the transaction.
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.

Return Value

Type: FinishResult
A FinishResult object indicating the result of the finish operation.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
TransactionNotFoundExceptionThrown if the transactionId parameter is invalid.
QuantityExceptionThrown if specified quantity exceeds the transaction quantity.
StatusCodeExceptionThrown if the statusCode parameter is not empty, and is invalid.
PathwayExceptionThrown if the exitPathwayId parameter is not null, and is invalid.
See Also