Skip to content

Commit

Permalink
Merge pull request #67 from Backbase/feature/CONT-2859-remove-party-e…
Browse files Browse the repository at this point in the history
…vents

[2024.10] feat(CONT-2859): Replace PartyUpdatedEvent with ContactUpdatedEvent
  • Loading branch information
amorimluzia authored Oct 18, 2024
2 parents 234ddb9 + 8204a18 commit ba0380e
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 352 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"title": "Contact status change",
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.party.name}}} has changed to {{lower event.party.status}}"
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.contact.name}}} has changed to {{lower event.contact.status}}"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"title": "Contact status change",
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.party.name}}} has changed to {{lower event.party.status}}"
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.contact.name}}} has changed to {{lower event.contact.status}}"
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"eventClassName": "com.backbase.party.persistence.event.spec.v1.PartyUpdatedEvent",
"eventClassName": "com.backbase.dbs.contactmanager.contact.event.spec.v1.ContactUpdatedEvent",
"id": "party-updated",
"eventBusinessName": "Party Updated",
"recipientType": "internal",
"extractor": "#this['party']['internalUserId']",
"serviceAgreementExtractor": "#this['party']['serviceAgreementId']",
"extractor": "#this['contact']['internalUserId']",
"serviceAgreementExtractor": "#this['contact']['serviceAgreementId']",
"generalNotifications": [
{
"id": "contact-status-updated-rejected",
"name": "Contact Status Updated (Rejected)",
"userPreferenceEnabled": true,
"manageable": true,
"additionalFilterLogic": "#triggeredEvent['party']['status'] == 'REJECTED'",
"additionalFilterLogic": "#triggeredEvent['contact']['status'] == 'REJECTED'",
"deliveryOptions": [
{
"channel": "in-app-notification",
Expand All @@ -20,7 +20,7 @@
"isManageableByUser": false,
"routeInfo": {
"whereTo": "party-view",
"data": "{\"id\": \"{{event.party.id}}\"}"
"data": "{\"id\": \"{{event.contact.id}}\"}"
},
"engagementTemplates": [
{
Expand All @@ -36,7 +36,7 @@
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "party-view",
"data": "{\"id\": \"{{event.party.id}}\"}"
"data": "{\"id\": \"{{event.contact.id}}\"}"
},
"engagementTemplates": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"name": "party-name",
"title": "Name",
"description": "Name of the party",
"value": "{{{event.party.name}}}"
"value": "{{{event.contact.name}}}"
},
{
"name": "alias",
"title": "Alias",
"description": "Preferred alias of the party",
"value": "{{event.party.alias}}"
"value": "{{event.contact.alias}}"
},
{
"name": "status",
"title": "Status",
"description": "Status of the party",
"value": "{{lower event.party.status}}"
"value": "{{lower event.contact.status}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"title": "Contact status change",
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.party.name}}} has changed to {{lower event.party.status}}"
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.contact.name}}} has changed to {{lower event.contact.status}}"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"title": "Contact status change",
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.party.name}}} has changed to {{lower event.party.status}}"
"body": "Hi {{{user.preferredName}}}, the status for Contact: {{{event.contact.name}}} has changed to {{lower event.contact.status}}"
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"eventClassName": "com.backbase.party.persistence.event.spec.v1.PartyUpdatedEvent",
"eventClassName": "com.backbase.dbs.contactmanager.contact.event.spec.v1.ContactUpdatedEvent",
"id": "party-updated",
"eventBusinessName": "Party Updated",
"recipientType": "internal",
"extractor": "#this['party']['internalUserId']",
"serviceAgreementExtractor": "#this['party']['serviceAgreementId']",
"extractor": "#this['contact']['internalUserId']",
"serviceAgreementExtractor": "#this['contact']['serviceAgreementId']",
"generalNotifications": [
{
"id": "contact-status-updated-rejected",
"name": "Contact Status Updated (Rejected)",
"userPreferenceEnabled": true,
"manageable": false,
"additionalFilterLogic": "#triggeredEvent['party']['status'] == 'REJECTED'",
"additionalFilterLogic": "#triggeredEvent['contact']['status'] == 'REJECTED'",
"deliveryOptions": [
{
"channel": "in-app-notification",
Expand All @@ -20,7 +20,7 @@
"isManageableByUser": false,
"routeInfo": {
"whereTo": "party-view",
"data": "{\"id\": \"{{event.party.id}}\"}"
"data": "{\"id\": \"{{event.contact.id}}\"}"
},
"engagementTemplates": [
{
Expand All @@ -36,7 +36,7 @@
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "party-view",
"data": "{\"id\": \"{{event.party.id}}\"}"
"data": "{\"id\": \"{{event.contact.id}}\"}"
},
"engagementTemplates": [
{
Expand Down
Loading

0 comments on commit ba0380e

Please sign in to comment.