Tibco File Pallet Tibco Tutorial

File Poller and Write File Activity


In this tutorial we will learn how to use File Poller and Write File activity and its configuration details. In this File Poller will look for any change in the given floder and Write File will write those details in another file.
File Poller
File Poller is a starter process which polls for files or directories and starts a process when the specified change (creation, modification, deletion) is detected.Write File
Write File activity is used to write content to a file.
Example


In this tutorial we will create a BW process as shown in the images below.
Design

File Poller
Configuration Tab
File Name: Here wildcard ‘*’ in the path will poll all the files and directories in the folder FilePallet.
Include Existing Files: When will start the BW process, all files already persent in folder FilePallet are picked and new process instances is created.
Exclude File Content: Here we are reading the content of the file. If in case its unchecked file content is not read.

Advance Tab

Here any change to file create, modify and delete is picked and a new process instance is created.
Include Sub-Directories: The current tutorial is listining to path “F:\Tibco\Projects\TibcoAZ\FilePallet”; when this option is checked File Poller will poll the files in its sub-directories. Note: Pattern to poll for specific file in the sub-directories will be same to the wildcard spcified in File Name in configuratin tab.
Mode:In this tutorial we are listing to any changed in files. Use “only-directories” to look for changes to directories and
“files-and-directories” to look for changes to both files and directories

Write File Activity
Configuration Tab

Append: Append contents; else when unchecked it will overwrite existing file.
Create Non-Existing Directories: If folder Projects and TibcoAZ are missing in the given path “F:\Projects\TibcoAZ\FilePallet\WriteToFile.txt” when Write File activity is executed the missing folder are automaticly created. If unchecked, IOException is genrated if floder is missing. Note: This is only applicable to folders not to file.

Input Tab


Note: In this tutorial if file name specified in Write File activity is in the same location been listened by File Poller then an endless loop will be created.

Output (On Successful Run)



About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.

1 comment

  1. cat hat

    I wanted to thank you once again for the amazing web-site you have designed
    here. It’s full of useful tips for those who are seriously interested in that subject, primarily this very post.
    Your all really sweet along with thoughtful of others as well as reading your website posts is a fantastic delight if you ask me.
    And that of a generous present! Jeff and I are going to have enjoyment making use of
    your points in what we should do in a month’s time.
    Our list is a kilometer long which means that your tips will
    be put to great use.

Leave a Reply

Your email address will not be published.