For outbound operation in File adapter Oracle SOA 11g provides the feature to change outbound directory name and file name dynamically.
In order to achieve this we need to configure jca.file.Directory and jca.file.FileName property in Invoke activity.
For clarity consider the below example.
Let us know your valuable feedback for the post. Happy coding.. :)
In order to achieve this we need to configure jca.file.Directory and jca.file.FileName property in Invoke activity.
For clarity consider the below example.
- For your BPEL process configure the File Adapter for outbound operation and while file configuration provide some dummy values for File name and Outbound File Directory.
- Create two variables MyDir and MyFileName of string datatype.
- Before your invoke activity create an Assign activity and assign the respective values for directory name and file name which you want to use at runtime.
- Double click Invoke activity to edit, in properties tab assign the variables (MyDir and My FileName) for the jca,file.Directory and jca.file.FileName respectively.
- Deploy the project and test it, file name and directory name will be overridden dynamically at run-time.
- Directory name and filename configured at design time was /temporary and sample.txt. But at runtime it got replaced with the values assign at runtime i.e. /u01/temp and test.txt
Let us know your valuable feedback for the post. Happy coding.. :)
No comments:
Post a Comment