Importing Sample Projects

Before running the project, you must import the sample projects to TIBCO Business Studio.

Procedure

  1. Start TIBCO Business Studio using one of the following ways:
    • Microsoft Windows: Click Start > All Programs > TIBCO > TIBCO_HOME > TIBCO Business Studio version_number > Studio for Designers.
    • Mac OS and Linux: Run the TIBCO Business Studio executable file located in the TIBCO_HOME/studio/version_number/eclipse directory.
  2. Click File > Import.
  3. In the Import dialog, expand the General folder and select the Existing Studio Projects into Workspace item. Click Next.
  4. Click Browse next to the Select root directory field to locate the samples. Click Finish.
    The sample project is located in the TIBCO_HOME\bw\palettes\clarity\version_number\samples directory.

Result

The sample project is imported to TIBCO Business Studio.

The sample project contains a process that adds a new source file to a clarity dataset, starts a new batch, and then downloads the result of the newly created batch job after it is done.

The process is designed with the following activities:

The following table describes the activities in this process.

Activity Description
Timer Starts the process
GetKey Returns the Rest API key
ReadFile Reads a file from the local drive and receive as input to AddFiles activity
StartBatch Starts a new batch in the dataset
Repeat Repeats to query the batch status until the batch job is finished
QueryBatch Queries the batch status
Assign Controls cycle condition
Sleep Waits a few milliseconds to keep the batch running
GetBatchResult Downloads the batch result file
WriteFile Writes the file to a local drive