Lesson 3: Create the mortgage calculation service
Create a dedicated service to calculate monthly payments.
About this task
In this lesson, you create an EGL Service part, which is a generatable part. You must place each generatable part in a separate source file, and the name of the part must be the same as the name of the file.
Create a Service part
Procedure
Create a Record part
About this task
amortize() function uses a MortgageCalculationResult record.
You can define this record in the same file as the Service.To create the Record part:
Procedure
Lesson checkpoint
About this task
- Create an EGL Service part
- Create an EGL Record part and add it to the source file for the Service
- Check for errors in your code
In the next lesson, you create the user interface for the first application portlet.


