Skip to content

Instantly share code, notes, and snippets.

@daywong1119
Created November 11, 2015 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daywong1119/5686e795c74eb3de6a6f to your computer and use it in GitHub Desktop.
Save daywong1119/5686e795c74eb3de6a6f to your computer and use it in GitHub Desktop.
Transporter
##Transform Approach
Knowing how many brands are listed on AEM and each branch support how many languages, eg. Brand A have Br1 and Br2 , Br1 having "en" and Br2 having "en, zh"
----------
Flow:
1. Set all 1st formed data active to 'false'
2. Fetch Brand List in both EN and ZH (or more lang for the future)
3. Update or Create Data (1st formed data)
4. All set all updated and new record atvice = true
5. Detemine how many record are Listed on AEM (Both EN and ZH)
6. Detemine branch and supported Language
7. Export Task List ( add to queue )
----------
Fail Case:
1. When get Task list interrupted (404, 500 or other error occurs)
----------
1st formed data:
{
key: '/content/am-content/en/earn-partner/dining/23-dolci'
, timestamp: 123456789
, active: false
, lang: 'en'
, info: {...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment