File Handling in TIBCO Cloud™ Integration

In TIBCO Cloud™ Integration, you can use the File palette activities for files created or present inside the TIBCO Cloud™ Integration application container only. This topic provides information on using different file palette activities for file manipulations in TIBCO Cloud™ Integration. You can create the files inside the default directory /opt in TIBCO Cloud™ Integration.

The sample project contains the following two processes:

  • WriteAndReadFile.bwp: It has a rest endpoint with GET operation, which writes a file in the TIBCO Cloud™ Integration application container, reads the file, and logs the output to the application logs.
  • FileProcessingAllActivities.bwp: It has FilePoller activity, which polls the file created in the above process and performs rename, copy, list file, and remove operations.

    Procedure
  1. In the samples directory in the File Explorer view, expand palette > file > BasicFileHandling and double-click tibco.bw.sample.palette.file.BasicFileHandling.zip. For more information, see Accessing Samples.
  2. In the Project Explorer view, expand the tibco.bw.sample.palette.file.BasicFileHandling.zip project.
    For example, the following illustration shows write and read file activity:

    Following illustration shows all file processing activities:

  3. Deploy this application to the cloud. For more information about deploying an application, see Deploying an App from TIBCO Business Studio™ for BusinessWorks™.
  4. To test the endpoint, see Viewing App Endpoints.
    The GET operation of an endpoint shows the content and location of the file written in TIBCO Cloud™ Integration and application logs show the different file operations performed and their outputs.

Understanding the Configuration

All the file paths used in the project are of default directory /opt in TIBCO Cloud™ Integration.