Creating a New Process

These steps show how to create a new process.

Procedure

  1. Open TIBCO Business Studio™ for BusinessWorks™.
  2. Open the Design perspective by clicking 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 binding > rest > Bookstore and double-click tibco.bw.sample.binding.rest.BookStore.zip.
    This opens the project in the Project Explorer.
  6. In the Project Explorer, expand the tibco.bw.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. For more information on folder structure, see the TIBCO ActiveMatrix BusinessWorks™ Application Development guide .


  10. Expand Processes and then expand tibco.bw.sample.binding.rest.bookstore.db.
    You will see BooksDB.bwp.
    Note: The .bwp extension indicates that it is an ActiveMatrix BusinessWorks™ process.


  11. Double-click BooksDB.bwp.
    The process comprises:
    • Green chevron on the left indicates the service details.
    • addBooks, getAllBooks, and so on indicate the 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, you can see a JDBC activity.
    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.bw.sample.rest, right-click on Processes in the Project Explorer view, and select New > BusinessWorks Package.

  14. In the BusinessWorks Package screen, specify tibco.bw.sample.rest in the Name field.


  15. Click Finish and verify that the new package tibco.bw.sample.rest has been added in the Project Explorer view.