Skip to content

rotty3000/madrid-sample-workspace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Objective

Implement a logging mechanism that records any changes made to a User object in Liferay. This mechanism will capture the changed fields and store them in a 'log' object within Liferay. Additionally, it will include the timestamp from an external service located at http://worldtimeapi.org/api/timezone/Asia/Tokyo to ensure accurate timing based on the Tokyo timezone.

Installation

Download the workspace and run gw initBundle.

How to Run

  1. After writing your CX code in your CX classes, start your Liferay bundle.
  2. Run ./restart.sh in the Node.js app (please use node 18 ->nvm use v18.14.2) .
  3. For the Java app, run gw clean && gw deploy && gw bootRun.

How to Test

  1. Create an object called log with two text fields: datetime and message.
  2. Go to the user object and configure an action to trigger our CX "on updating" the user object.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.8%
  • Java 33.9%
  • Python 16.8%
  • Dockerfile 4.7%
  • Shell 0.8%