https://github.com/cuba-platform/emailtemplate-addon-demo
Demo application for email templates CUBA component
https://github.com/cuba-platform/emailtemplate-addon-demo
Last synced: 10 months ago
JSON representation
Demo application for email templates CUBA component
- Host: GitHub
- URL: https://github.com/cuba-platform/emailtemplate-addon-demo
- Owner: cuba-platform
- License: apache-2.0
- Created: 2019-01-21T11:31:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T10:03:14.000Z (almost 7 years ago)
- Last Synced: 2025-03-16T21:48:44.632Z (over 1 year ago)
- Language: Java
- Size: 179 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](http://www.apache.org/licenses/LICENSE-2.0)
# Overview
This is a demo project for CUBA [email template](https://github.com/cuba-platform/emailtemplate-addon) component.
The demo project implements a simple subscription management system.
# Data model
**Customer** - contains name, surname, email and list of subscriptions
**Subscription** - contains active flag, expiry date, link to the customer and subscription name.
# Implementation
The demo project implements customers and subscriptions browsers and editors.
The following email templates were created:
- *Subscription created* - will be sent when a subscription is created
- *Subscription updated* - will be sent when a subscription is updated
- *Subscription ended* - will be sent when subscription `active` flag is set to false
- *Subscription renewed* - will be sent when subscription `active` flag is set to true
All templates have the required `subscription` parameter and optional parameters.
Subscription notification will be sent through API via CUBA entity listeners.
Also, there is an ability to send emails from the *Subscription browser* by selecting a template from the drop-down list. If an email is sent manually, then the standard `Send Email` screen should be used from the `Email templates` component.