Create GoodCommission template

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

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