Often, we'll have a
requirement to change the directory to which the files are to be written
dynamically. In such cases, Oracle SOA Suite 11g provides the option to do so.
While configuring a
File Adapter, we specify the output directory and the file name pattern at
design time.
But if we want to
derive the output directory file dynamically at runtime, the process is simple.
Steps:
- Configure the File Adapter normally as you do for anyother one, ie., you specify a directory name and the file name pattern at design time.
- In the Invoke activity in the BPEL process, as you wire it to a File Adapter partner link, you get the Edit Invoke dialogue.
- Go to properties and configure jca.file.Directory and jca.file.FileName with values set to variables that will be populated at runtime in some assign activity before the invoke activity.
- This overrides the directory and name mentioned at the design time.
- Note that if the filename is set to the same value at runtime again and again, the same file gets overridden. So take care to set a value that uses diff file names if you dont need the files to be overridden.
Thanks ... Nice Information..
ReplyDeleteThanx ..
ReplyDeleteg00d 0ne
ReplyDelete