Importing a Process Package

These steps show how to create a new process package.

Procedure

  1. Open TIBCO Business Studio™ Container Edition.
  2. Open the Design perspective by clicking the icon in the upper right.
  3. Click the File Explorer tab. If the tab is not visible, click Window > Show View > Other > FileSystem > File Explorer and click OK.
  4. Click File > Switch Workspace and select or open a clean new workspace.
  5. In the samples directory, select cloudfoundry > binding > rest > Bookstore and double-click tibco.bwce.sample.binding.rest.BookStore.zip.
    This opens the project in the Project Explorer.
  6. In the Project Explorer, expand the tibco.bwce.sample.binding.rest.BookStore project.
  7. You can also import the sample using the File > Import > General > Existing Studio Projects into Workspace > Select Archive File > Browse option.
  8. The project is displayed in the Project Explorer panel on the left.
  9. Expand the folders in the project to see all the project processes and resources. Refer to the Application Development guide for information about the folder structure.
  10. Expand Processes and then expand tibco.bwce.sample.binding.rest.bookstore.db.
    You will see BooksDB.bwp.
    Note: bwp is a BusinessWorks process.
  11. Double-click BooksDB.bwp.
    The BusinessWorks process comprises:
    • Green chevron on the left indicates the service details.
    • addBooks, getAllBooks, and other operations implemented by this process.
    • Each operation is implemented separately.
  12. Double-click an operation to display the process for example, BooksPersist > addBooks.
    1. In the addBooks operation, a JDBC activity is seen.
    2. The activity is repeated using a ForEach group.
    3. addBooksOut represents the Reponse to the web service request.
  13. To add a new process package named tibco.bwce.sample.rest, right-click on Processes in the Project Explorer and select New > BusinessWorks Package.

  14. In the BusinessWorks Package screen, specify tibco.bwce.sample.rest in the Name field.
  15. Click Finish and verify that the new package tibco.bwce.sample.rest has been added in the Project Explorer.