Create GoodCommission template

  1. Click the Add If Then Template button Add If Then Template.
  2. In the Template 1 field, type GoodCommissionTemplate.
  3. Click the Add Template Parameter button Add Template Parameter.
  4. Click the Add Template Parameter button Add Template Parameter.
  5. Click the Add Template Parameter button Add Template Parameter.
  6. In the param1 field, type yearsLoyal.
  7. Click int.
  8. In the field, type int.
  9. In the field, type totalWorthStock.
  10. Click double.
  11. In the field, type double.
  12. In the field, type commissionToCharge.
  13. Click double.
  14. In the field, type double.
  15. In the Properties field, type A customer who has been loyal for at least .
  16. From the drop-down combo (CTRL-SPACE), select yearsLoyal.
  17. In the Presentation field after yearsLoyal, type years AND who has a stock portfolio worth at least $.
  18. From the drop-down combo (CTRL-SPACE), select totalWorthStock.
  19. In the Presentation field after totalWorthStock, type is charged a commission of $ {commissionToCharge} per stock transaction..
  20. From the drop-down combo (CTRL-SPACE), select commissionToCharge.
  21. In the Presentation field after commissionToCharge, type per stock transaction..
  22. Click Condition in the If field.
  23. From the drop-down combo (CTRL-SPACE), select All of the following are true.
  24. Click the first Condition in the If field.
  25. In the field, type commissionInfo.yearsLoyalCustomer >= yearsLoyal.
  26. Click Action in the Then field.
  27. In the field, type commissionInfo.totalPortfolioValue >= totalWorthStock.
  28. Click Action in the Then field.
  29. In the field, type cashAmount.value = commissionToCharge.
  30. From the menu, select File > Save (or press Ctrl+S).
    getCommission

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.