Skip to content

Instantly share code, notes, and snippets.

View egui's full-sized avatar

E. Guichard egui

  • Altius Services
  • Lyon, France
View GitHub Profile
@egui
egui / gist:2225776
Created March 28, 2012 12:24 — forked from sbob909/gist:1855055
Apex Plug-In for Force.com Cloud Flow Designer Workbook
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;