Running the SpaceResultHandler Project

You can run the processes in the SpaceResultHandler project to see how to perform the asynchronous operations of different operation types in the space.

Prerequisites

Ensure that you have imported the SpaceResultHandler project to TIBCO Business Studio as described in Importing Sample Projects.

Procedure

  1. In the Project Explorer view, expand the SpaceResultHandler project.
  2. Click Processes > spaceresulthandler > Operations.bwp and double-click the process in the Process editor.
  3. From the menu, click Run > Run Configurations.
  4. In the Run Configurations dialog, expand BusinessWorks Application and click BWApplication.
  5. In the right panel, click Deselect All and select the check box next to SpaceResultHandler.application. Then click Apply.
  6. Click Run to run the process.
  7. Click the icon to stop the process.

Result

The SpaceResultHandler activities in the different processes can display the results of the space as a result of the asynchronous operations:
  • The Output tab of the SpaceResultHandler activity in the PutHandler.bwp process displays the tuple that was first stored in the space by the Put activity, and returns the closed data transferred in the Put asynchronous operation.
  • The Output tab of the SpaceResultHandler activity in the TakeHandler.bwp process displays the tuple that was removed from the space by the Take_Async activity, and returns the closed data transferred in the Take asynchronous operation.
  • The Output tab of the SpaceResultHandler activity in the LockHandler.bwp process displays the tuple that was locked in the space by the Lock_Async activity, and returns the closed data transferred in the Lock asynchronous operation.
  • The Output tab of the SpaceResultHandler activity in the UnlockHandler.bwp process displays the tuple that was unlocked in the space by the UnLock_Async activity, and returns the closed data transferred in the Unlock asynchronous operation.