0 votes
550 views
in Interview Questions by (30.6k points)

1 Answer

0 votes
by (30.6k points)

The File Adapter (WebSphere Adapter for Flat Files) is used in Integration Designer (IID) modules to read and write files as if they were services - typically to feed a BPEL / mediation flow with batch input or to drop output files for other systems. It has two sides:

  • Inbound (event-driven): the adapter polls a directory (EventDirectory), splits each file into records with a delimiter or a fixed length (SplitCriteria, SplittingFunctionClassName), converts them with a data binding (XML, delimited "flat" records, or your own DataBinding class) and calls the module's export - one event per record or per file; processed files are archived (ArchiveDirectory) or deleted. Event persistence in the adapter's event table guarantees once-only delivery across restarts.
  • Outbound (invoked by the flow): Create, Append, Overwrite, Retrieve, List, Delete, Exists operations against a directory (OutputDirectory), with the same data bindings to turn business objects into file records; staging directory + rename gives atomic writes.
Inbound example (module "OrdersInbound"):
  EventDirectory  = /data/in        ArchiveDirectory = /data/archive       FileExtensions = csv
  SplitCriteria   = "\n"           DataBinding = delimited (Order BO; delimiter ";")   PollPeriod = 5000 ms
  Export "OrdersInboundExport" -> mediation flow -> BPEL process "ProcessOrder" (one instance per record)

Where it fits with BAW: IID / BPEL is part of BAW Advanced (the Process Server "Advanced" deployment environment); BPD-only installations do not have the adapters - there you read files with a Java integration or a script (question 2990), or let IIB / ACE do the file handling. Typical usage answers: nightly batch imports, legacy exports for a mainframe, integration with SFTP drop zones (combined with the FTP adapter), and log / audit exports.

References

Related questions

0 votes
1 answer 1.9k views
0 votes
1 answer 2.4k views
0 votes
1 answer 2.2k views
0 votes
1 answer 2.1k views
0 votes
1 answer 1.8k views
0 votes
1 answer 2.4k views
+1 vote
2 answers 7.5k views
0 votes
1 answer 1.8k views
0 votes
1 answer 705 views
0 votes
1 answer 774 views
asked May 21, 2016 in Interview Questions by anonymous
0 votes
1 answer 821 views
0 votes
1 answer 2.4k views

723 questions

807 answers

98 comments

4.9k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...