TIBCO Tutorial: How To Run Operating System Commands In TIBCO BW Processes

By | June 21, 2014

While developing business processes in TIBCO Designer, often we need to run external commands like Operating System commands to perform certain actions. TIBCO provides External Command activity to execute operating system commands from inside a BW process.

In this tutorial, you will learn how you can run operating system command to copy files from one folder to another. This project is being developed in Windows platform so I will be using Windows OS command. If you are working on Linux/Unix environment; you need to run the commands which are available in your Operating System.

Step 1: Decide the command to run using External Command activity

For this tutorial, I am going to run XCOPY windows OS command which is used to copy files from one folder to another. I have some files in a folder named original from which I wish to copy files to another folder named backupfolder. Command to do this copy operation is as follows:

XCOPY D:\ExternalCommandTest\original D:\ExternalCommandTest\backupfolder /m /e /y

Step 2: Write TIBCO BW Process to run External Command

In this step, I am going to create a process in TIBCO Designer for running the above command.

The command to run is specified in command filed in the Input Tab as you can see below:

tibco run external command

Step 3: Test TIBCO Process to run External Command

Once the process has been implemented and validated successfully, load the process in designer tester and start it. As you can see below, process has run successfully and the file from the source path has been copied to the destination path:

tibco designer tester external command run

Ajmal Abbasi

Ajmal Hussain Abbasi is a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

4 thoughts on “TIBCO Tutorial: How To Run Operating System Commands In TIBCO BW Processes

  1. Abraham

    I would like to display all the BW Processes up and Running and alert if its not running, can I do this using Engin command . Your advise

    Reply
  2. B Satish

    Hi Ajmal,

    Kindly, help me on how to encrypt file using gpg commands in tibco bw.

    Thanks & Regards,
    Satish B

    Reply
  3. krishnarao potti

    i want to run the multiple commands in single external commands like
    SFTP connection establishment
    SFT P get command

    how to do it
    i dont want use the SFTP plugin and java code

    Reply
    1. Ajmal Abbasi Post author

      Dear Krishnarao,

      You can write a shell script and get it executed through “External command” palette activity. Thanks

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *