-
Notifications
You must be signed in to change notification settings - Fork 6
BIE contention event queues User Guide
Cheng edited this page Oct 27, 2023
·
4 revisions
- Subscribe to the following RabbitMQ Queues
-
bie-events-contention-associated-to-claim
(Kafka topicCONTENTION_BIE_CONTENTION_ASSOCIATED_TO_CLAIM_V02
) -
bie-events-contention-updated
(Kafka topicCONTENTION_BIE_CONTENTION_UPDATED_V02
) -
bie-events-contention-classified
(Kafka topicCONTENTION_BIE_CONTENTION_CLASSIFIED_V02
) -
bie-events-contention-completed
(Kafka topicCONTENTION_BIE_CONTENTION_COMPLETED_V02
) -
bie-events-contention-deleted
(Kafka topicCONTENTION_BIE_CONTENTION_DELETED_V02
)
-
{
"status": 200,
"eventType": "CONTENTION_UPDATED",
"claimId": 12345678,
"contentionId": 12345678,
"contentionTypeCode": "NEW",
"contentionClassificationName": "Musculoskeletal - Wrist",
"notifiedAt": 1694451084874,
"occurredAt": 1694451062000
}
-
eventType
- There are total of 5 different event types:CONTENTION_ASSOCIATED_TO_CLAIM
CONTENTION_UPDATED
CONTENTION_CLASSIFIED
CONTENTION_COMPLETED
CONTENTION_DELETED
Make sure you have the latest version of abd-vro and abd-vro-dev-secrets cloned in sibling directories. Run these commands
export COMPOSE_PROFILES='kafka'
source scripts/setenv.sh
./gradlew docker
./gradlew :dockerComposeUp
./gradlew -p mocks docker
./gradlew -p mocks :dockerComposeUp
./gradlew :domain-xample:dockerComposeUp
./gradlew :app:dockerComposeUp
pushd svc-bie-kafka && { source ./docker-entryprep.sh; popd; }
./gradlew :svc-bie-kafka:integrationTest
NOTE: The BIE team does not provide any mechanism to test or send Kafka payloads in non-local environments. So, testing in these environments is very limited since we need to wait for Kafka payloads in order to see the data in RabbitMQ queues.