Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / EnsLib.RecordMap.Operation.ComplexBatchFileOperation
Private  Storage   


class EnsLib.RecordMap.Operation.ComplexBatchFileOperation extends

Business Operation to write ComplexBatch data out to files on disk. Note that this operation uses a temporary file while writing out the ComplexBatch, and transmits the temporary file when output is complete.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 1 2


This is a Business Operation class.

The associated Adapter class is EnsLib.File.OutboundAdapter.

%Persistent %Persistent

%ActionHint %AlertStartTime %ConfigName %ConfigQueueName
%LastActionTime %LastHandledTime %LastReportedError %QuitTask
%RequestHeader %SessionId %SuperSession %WarnedLatest
%isShadow Adapter AlertGroups AlertOnError
AlertRetryGracePeriod ArchiveIO BusinessPartner ComplexMap
DeferResponse FailureTimeout Filename IOLogEntry
InactivityTimeout NoFailWhileDisconnected OpenMode QueueCountAlert
QueueWaitAlert ReplyCodeActions Retry RetryCount
RetryInterval SendSuperSession SuspendMessage ThrottleDelay

%%OIDGet %AddToSaveSet %BindExport %BuildObjectGraph
%ClassIsLatestVersion %ClassName %Close %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IncrementCount %IsA %IsModified
%New %NormalizeObject %ObjectModified %OnClose
%OnNew %OriginalNamespace %PackageName %RemoveFromSaveSet
%SerializeObject %SetModified %SuperSessionSet %ValidateObject
AdapterName AssignOneSetting CloseIOLogEntry DeferResponse
EnumerateSettingsClose EnumerateSettingsExecute EnumerateSettingsFetch EvalInitialExpression
GenerateSuperSession GetCharEncoding GetDeferredResponseToken GetMessageList
GetProductionSettingValue GetProductionSettings GetPropertyConnections GetRequestClassList
GetResponseClassList GetSettings GetShadowInstance GetTempStream
IncludeSuperSession MessageHandler MessageHeaderHandler NewIOLogEntry
OnError OnFailureTimeout OnGenerateSuperSession OnGetConnections
OnGetReplyAction OnInit OnKeepalive OnMessage
OnMonitor OnProductionStart OnProductionStop OnTask
OnTearDown ProcessTempStream PutBatch QueueName
SaveIOLogEntry SendAlert SendDeferredResponse SendRequestAsync
SendRequestSync SendRequestSyncMultiple acceptRequestAsync acceptRequestSync
doReplyAction finalReplyAction findCachedObject initConfig
inprocRequest makeConnections queueRequestAsync queueRequestSync



• parameter ADAPTER = "EnsLib.File.OutboundAdapter";
The type of adapter used to communicate with external systems
• parameter SETTINGS = "Filename:Basic";
List of properties can be set as settings in the configuration file format is a comma separated list of property names


• property Filename as %String(MAXLEN=1000,MINLEN=1) [ InitialExpression = "%Q",Required ];
Name of file to output the ComplexBatch to. May include timestamp specifiers. If present, the %f specifier will be replaced with the value of the ComplexBatch object's %Source property stripped of characters illegal in filenames.
See the documentation for the CreateTimestamp() method in Ens.Util.File for more detailed timestamping options.


• method GetCharEncoding() as %String
Return the expected character encoding to use for the output. The Batch operation uses a temp file to store data prior to writing out the end of the batch, and we need to know what encoding we should use to match the final output encoding. For this operation, the encoding is a setting of the adapter.
• method ProcessTempStream(pTempStream As %IO.FileStream, pBatch As EnsLib.RecordMap.ComplexBatch) as %Status
Let the adapter take responsibility for writing out the temporary file.