Skip to content

Commit

Permalink
Merge pull request #61 from Backbase/feature/HRMS-824-create-onerunti…
Browse files Browse the repository at this point in the history
…me-folder

HRMS-824 - add oneruntime folder
  • Loading branch information
amorimluzia authored Jun 4, 2024
2 parents 2b2d6f3 + cec6f60 commit d17a34a
Show file tree
Hide file tree
Showing 109 changed files with 1,464 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
echo "ECR Docker build business with tag ${NEW_VERSION}"
mvn clean package -Pbuild-business -B docker:tag -Ddocker.image.tag=${NEW_VERSION} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
echo "ECR Docker build oneruntime with tag ${NEW_VERSION}"
mvn clean package -Pbuild-oneruntime -B docker:tag -Ddocker.image.tag=${NEW_VERSION} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
##
#
Expand All @@ -113,6 +116,9 @@ jobs:
#
# echo "ECR Docker push business with tag ${NEW_VERSION}"
# mvn clean package -Ppush-business -Ddocker.skip.extendedAuth=true -Ddocker.push.username=${{ steps.ecr-credentials.outputs.username }} -Ddocker.push.password=${{ steps.ecr-credentials.outputs.password }} -B docker:tag -Ddocker.image.tag=${NEW_VERSION} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
#
# echo "ECR Docker push oneruntime with tag ${NEW_VERSION}"
# mvn clean package -Ppush-oneruntime -Ddocker.skip.extendedAuth=true -Ddocker.push.username=${{ steps.ecr-credentials.outputs.username }} -Ddocker.push.password=${{ steps.ecr-credentials.outputs.password }} -B docker:tag -Ddocker.image.tag=${NEW_VERSION} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn

- name: Commit files
if: "contains(github.ref, 'master') || contains(github.ref, 'support/')"
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ This repository has the following structure:
│ │ └── repository.xml # A repository definitions
│ └── ...
└── ...
└── oneruntime # Oeruntime collection
└── general-notifications # General notifications related collection
└── event-general-notifications
├── {event-general-notifications-name}
│ ├── {general-notification-name} # The folder to store channel specific data for general notifications.
│ │ ├── in-app-notification
│ │ │ ├── {locale} # The folder to store locale-specific engagement templates
│ │ │ │ └── engagement-template.json # The engagement template that contains default messages with the Handlebars expressions
│ │ │ └── in-app_channel-settings.json # The channel settings for in-app notification channels per locale
│ │ └── push
│ │ ├── {locale}
│ │ │ └── engagement-template.json
│ │ └── in-app_channel-settings.json
│ └── event-general-notifications.json # The event with one or more general-notification definitions
└── ...
```

### Repository definition configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"subject": "Account balance changed (business)",
"body": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Account balance changed (business)",
"body": "💸 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"level": "INFO",
"targetGroup": "USER",
"origin": "Accounts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Account balance changed (business)",
"body": "\uD83D\uDCB8 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"appName": "model-bank-business",
"payload": {
"android": {
"settings": {
"sound": "default",
"color": "#FFE5CC",
"icon": "hello"
}
},
"ios": {
"settings": {
"category": "ACCOUNT_BALANCE_LOW_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "BACKBASE"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"subject": "Account balance changed (retail)",
"body": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Account balance changed (retail)",
"body": "💸 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"level": "INFO",
"targetGroup": "USER",
"origin": "Accounts"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Account balance changed (retail)",
"body": "\uD83D\uDCB8 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"appName": "model-bank-retail",
"payload": {
"android": {
"settings": {
"sound": "default",
"color": "#FFE5CC",
"icon": "hello"
}
},
"ios": {
"settings": {
"category": "ACCOUNT_BALANCE_LOW_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "BACKBASE"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"eventClassName": "com.backbase.dbs.actions.reactive.event.spec.v2.AccountBalanceChangedEvent",
"id": "account-balance-changed",
"eventBusinessName": "Account Balance Changed",
"recipientType": "subscription",
"extractor": "#this['arrangementId']",
"subscriptionType": "arrangement",
"serviceAgreementExtractor": "#this['serviceAgreementId']",
"generalNotifications": [
{
"id": "account-balance-low",
"name": "Account Balance Low Retail",
"userPreferenceEnabled": true,
"manageable": false,
"additionalFilterLogic": "T(java.lang.Double).valueOf(#triggeredEvent['currentBalance']) < #userConditions['amount'] && T(java.lang.Double).valueOf(#triggeredEvent['previousBalance']) >= #userConditions['amount']",
"userPreferenceDefaults": "{\"amount\":0}",
"deliveryOptions": [
{
"channel": "in-app-notification",
"channelSettings": "/account-balance-low-retail/in-app-notification/in-app_channel-settings.json",
"isEnabledByDefault": true,
"isManageableByUser": false,
"routeInfo": {
"whereTo": "arrangement-view",
"data": "{\"id\":\"{{event.arrangementId}}\"}"
},
"engagementTemplates": [
{
"path": "/account-balance-low-retail/in-app-notification/en_US/engagement-template.json",
"templateName": "account-balance-low-in-app-notification",
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/account-balance-low-retail/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "arrangement-view",
"data": "{\"id\":\"{{event.arrangementId}}\"}"
},
"engagementTemplates": [
{
"path": "/account-balance-low-retail/push/en_US/engagement-template.json",
"templateName": "account-balance-low-push",
"locale": "en_US"
}
]
},
{
"channel": "sms",
"channelSettings": "/account-balance-low-retail/sms/sms_channel-settings.json",
"isEnabledByDefault": false,
"engagementTemplates": [
{
"path": "/account-balance-low-retail/sms/en_US/engagement-template.json",
"templateName": "account-balance-low-sms",
"locale": "en_US"
}
]
},
{
"channel": "email",
"channelSettings": "/account-balance-low-retail/email/email_channel-settings.json",
"isEnabledByDefault": false,
"engagementTemplates": [
{
"path": "/account-balance-low-retail/email/en_US/engagement-template.json",
"templateName": "account-balance-low-email",
"locale": "en_US"
}
]
}
]
},
{
"id": "account-balance-low-business",
"name": "Account Balance Low Business",
"userPreferenceEnabled": true,
"manageable": false,
"additionalFilterLogic": "T(java.lang.Double).valueOf(#triggeredEvent['currentBalance']) < #userConditions['amount'] && T(java.lang.Double).valueOf(#triggeredEvent['previousBalance']) >= #userConditions['amount']",
"userPreferenceDefaults": "{\"amount\":0}",
"deliveryOptions": [
{
"channel": "in-app-notification",
"channelSettings": "/account-balance-low-business/in-app-notification/in-app_channel-settings.json",
"isEnabledByDefault": true,
"isManageableByUser": false,
"routeInfo": {
"whereTo": "arrangement-view",
"data": "{\"id\":\"{{event.arrangementId}}\"}"
},
"engagementTemplates": [
{
"path": "/account-balance-low-business/in-app-notification/en_US/engagement-template.json",
"templateName": "account-balance-low-in-app-notification",
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/account-balance-low-business/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "arrangement-view",
"data": "{\"id\":\"{{event.arrangementId}}\"}"
},
"engagementTemplates": [
{
"path": "/account-balance-low-business/push/en_US/engagement-template.json",
"templateName": "account-balance-low-push",
"locale": "en_US"
}
]
},
{
"channel": "sms",
"channelSettings": "/account-balance-low-business/sms/sms_channel-settings.json",
"isEnabledByDefault": false,
"engagementTemplates": [
{
"path": "/account-balance-low-business/sms/en_US/engagement-template.json",
"templateName": "account-balance-low-sms",
"locale": "en_US"
}
]
},
{
"channel": "email",
"channelSettings": "/account-balance-low-business/email/email_channel-settings.json",
"isEnabledByDefault": false,
"engagementTemplates": [
{
"path": "/account-balance-low-business/email/en_US/engagement-template.json",
"templateName": "account-balance-low-email",
"locale": "en_US"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Export failed",
"body": "The CSV you requested for export failed to complete"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"level": "ALERT",
"targetGroup": "USER",
"origin": "Audit"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Export complete",
"body": "The CSV you requested for export is complete and ready to download"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"level": "SUCCESS",
"targetGroup": "USER",
"origin": "Audit"
}
Loading

0 comments on commit d17a34a

Please sign in to comment.