4.4.5 CloseAndCommit

CloseAndCommit is used to apply the content of the written file and to delete the temporary file after the completion of the transaction.

Signature

	CloseAndCommit(
		 [in]  UInt32 		fileHandle
		 [out] NodeId 		completionStateMachine
		);
Argument Description
fileHandleThe fileHandle used to write the file.
completionStateMachine

If the processing of the file is completed asynchronous, the parameter returns the NodeId of the corresponding FileTransferStateMachineType Object.

If the processing of the file is already completed, the parameter is null.

If a FileTransferStateMachineType Object NodeId is returned, the processing is in progress until the TransferState changed to Idle.

Method Result Codes (defined in Call Service)

Result Code Description
Bad_UserAccessDeniedSee OPC 10000-4 for a general description.
Bad_InvalidArgumentSee OPC 10000-4 for a general description. Invalid file handle in call.

Table 16 specifies the AddressSpace representation for the CloseAndCommit Method.

Table 16 – CloseAndCommit Method AddressSpace definition
Attribute Value
BrowseNameCloseAndCommit
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[] PropertyTypeMandatory
HasPropertyVariableOutputArgumentsArgument[] PropertyTypeMandatory
Conformance Units
Base Info TemporaryFileTransferType Base