TIBCO/BW6-CE/2 → File to File copy with use of function on the file content

integratio
4 min readOct 28, 2023

--

This is a post on Tibco Business Works 6 CE highlighting a basic flow that copies content from one file to another file in another location. Here we will use a function to capitalize the file content.

Tibco BW6 CE

Open Tibco Business Studio for BW6 CE.

Go to: File → New → BusinessWorks Resources → BusinessWorks Application Module → Next.

Project name: FileToFileProject

In Component Palette, left Click on the palette icon and then come to canvas of the Business Works process flow (.bwp extension) and left click again to place the activity.

Drag and put Timer (under General Activities), Exit (under Basic Activities) and Read File (under File) to the process flow (.bwp)

Double click on Read File and go to properties to configure the read file activity.

Click on the Output tab to see what the Read Activity will fetch for us in output.

Inside fileContent the textContent element will carry the file contents. This we can use for further processing. In our case feed this to another file as content.

Add WriteFile activity (under File) from palette to process flow.

Configure the target file name as above (configure as per your folder structure) and can click the checkbox if you want Tibco BW6 to create the folder structure for you during process runtime.

Here we are using a upper case function to make the content write in upper case. In properties tab, navigate to Input to do the mapping. Click on Functions as shown below to bring up the upper-case function.

So our first simple BW flow is ready to test. Make sure there are no issues reported in the Problems tab. If issue count is 0, then run the flow in debug mode from Run option on top menu.

Click on Debug tab in the left to see the job instance. Using the Job Data, you can check what payload each step is carrying.

Check the out file in target directory (as configured) and verify the file contents.

As expected, file content is capitalized.

--

--

integratio

📌 IT Backend enthusiast 📌 Blogging about Oracle FMW, Python, Cloud related technologies 📌 Non monetized, non hustle 📌 Knowledge sharing sole purpose