Events
This page describes the events that are published by CPPA on Tjenestebuss. These events can be subscribed to.
Event name / Routing key | Description | Event headers |
---|---|---|
CppUpdatedcppa.cppupdated.{HERID} |
This event is published when a CPP is created or changed (process added / removed). | Key: HERID Value: herId of the owner of the updated CPP. |
CpaTerminatedcppa.cpaterminated.{PARTY_A_HERID}.{PARTY_B_HERID} |
This event is published if an agreement between two parties is terminated. This can happen if one or both of the CPPs change, and a new agreement will be created the next time it is requested. |
Key: PARTY_A_HERID Value: herId of the first of the two parties the agreement is between Key: PARTY_B_HERID Value: herId of the first of the two parties the agreement is between Key: CPA_ID Value: The unique ID of the terminated agreement. |
CpaCreatedcppa.cpacreated.{PARTY_A_HERID}.{PARTY_B_HERID} |
This event is published when an agreement is created between two parties. | Key: PARTY_A_HERID Value: herId of the first of the two parties the agreement is between Key: PARTY_B_HERID Value: herId of the first of the two parties the agreement is between Key: CPA_ID Value: The unique ID of the created agreement. |
Note: the CpaID is not reused for the same two parties if the agreement changes - the agreement is terminated and a new one is created.