Skip to content

rafaeltuelho/PHM-integration-service

Repository files navigation

PHM Integration Service

This service implements the integration routing of the PHM Heathcare Demo. It is responsible for routing events from a Kafka Stream Topic to the Red Hat Process Automation Service.

Initial setup

Before running this service you need to spin up a Kafka cluster and a Process Server (RHPAM). After configuring these two components you can specify the connection properties in the application.properties config file.

the process project can be imported into Business Central from this repository

You can use the following endpoint to generate some test msgs into Kafka Topic:

{
  "triggerId": "1",
  "memberId": "0987654321"
}

Stream load

You can use Apache JMeter with Pepper Box plugin to load about 10m triggers using this JMeter Test plan jmeter/JMteter_kafka_topic_load_plan.jmx

before running the test plan make sure your local kafka cluster is up&running. expects zookeper listening on localhost:2181 and broker on localhost:9092

the Pepper Box plugin JAR file is avaiable inside the jmeter/ dir. Before start JMeter copy this JAR into the JMETER_HOME/lib/ext

API exposed

Access the OpenAPI spec with Swagger-UI

Deployment options

You can run this service in the following modes:

  • Single-node OpenShift cluster

  • Standalone on your machine

The most effective way to use this booster is to deploy and run the project on OpenShift.

Important
This project requires Java 8 JDK or later and Maven 3.3.x or later.

Running the booster on a single-node OpenShift cluster without preinstalled images

To deploy your booster to a running single-node OpenShift cluster without preinstalled images:

  1. Download the project and extract the archive on your local filesystem.

  2. Log in to your OpenShift cluster:

    $ oc login -u developer -p developer
  3. Create a new OpenShift project for the booster:

    $ oc new-project MY_PROJECT_NAME
  4. Import base images in your newly created project (MY_PROJECT_NAME):

    $ oc import-image {image-name-version} --from={image-registry}{image-prefix}{image-name-version} --confirm
  5. Build and deploy the project to the OpenShift cluster:

    $ mvn clean -DskipTests fabric8:deploy -Popenshift -Dfabric8.generator.fromMode=istag -Dfabric8.generator.from=MY_PROJECT_NAME/{image-name-version}
  6. In your browser, navigate to the MY_PROJECT_NAME project in the OpenShift console. Wait until you can see that the pod for the PHM-integration-service application has started up.

  7. On the project’s Overview page, locate the URL for the PHM-integration-service application. The URL uses this form: http://PHM-integration-service-MY_PROJECT_NAME.OPENSHIFT_IP_ADDR.nip.io.

  8. Click the URL to access the greetings service application and then follow the instructions on that page.

Running the booster standalone on your machine

To run this booster as a standalone project on your local machine:

  1. Download the project and extract the archive on your local filesystem.

  2. Build the project:

    $ cd PROJECT_DIR
    $ mvn clean package
  3. Run the services:

    $ mvn spring-boot:run
  4. Go to http://localhost:8181 and then follow the instructions on that page.

  5. To view the Fuse Console got to link://localhost:10001/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published