Testing in TIBCO Business Studio for BusinessWorks

Before you begin

  • Your computer must be connected to the Internet.
  • Setup Prometheus to monitor events and Grafana dashboard provided by Resilience4j for visualization.

    Procedure
  1. From the File Explorer, navigate to the samples directory and select samples > Container > cloudfoundry > core > Resilience4j and double-click tibco.bwce.sample.core.Resilience4j.
  2. From the Project Explorer expand the tibco.bwce.sample.core.Resilience4j project.
  3. Expand the Processes folder and double-click HTTP_Request_Response_Example.bwp.
  4. Click Run > Debug Configurations.
  5. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  6. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco.bwce.sample.core.Resilience4j.application.
  7. Click Debug.
    This runs the sample in the debug mode.
  8. Open the request_news.html file found in samples > Container > cloudfoundry > core > Resilience4j> Basic folder.
  9. Click the Get News from Wiki! button to request headlines from the associated web page.
ResultThe Wiki web page displays in your default browser. The message Response sent successfully!! is printed on the TIBCO Business Studio for BusinessWorks console.

In order to view resilience4j metrics, you need a resilience4j stream URL which is as follows:

http://<Route URL>/resilience4j_metrics

You can see the Grafana dashboard locally and the command name given is displayed as shown below.