This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class MortgageCalculator implements Process.Plugin | |
{ | |
global Process.PluginResult invoke(Process.PluginRequest request) | |
{ | |
Double amount = (Double)request.inputParameters.get('Amount'); | |
Double term = (Double)request.inputParameters.get('Term'); | |
Double rate = (Double)request.inputParameters.get('Rate'); | |
// Magic here | |
Double cMonthlyPayment; | |
cMonthlyPayment=(amount+(amount*rate))/term; |