PetrovIgor

Modified processCollection

Feb 10th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 1.20 KB | None | 0 0
  1. protected void processCollection(ISCCollection cmallocColl) {
  2.         m_trace.display("Processing allocation collection: (no. of items) "
  3.                 + cmallocColl.getCount());
  4.        
  5.         for (Enumeration te = cmallocColl.elements(); te.hasMoreElements();) {
  6.             ISCCMAllocation cmalloc = (ISCCMAllocation) te.nextElement();
  7.  
  8.             m_trace.println("Processing allocation : " + cmalloc+tempd.toString());
  9.            
  10.             IFSAgreementParticipant origPayee = (IFSAgreementParticipant) cmalloc.getSalesTeam();
  11.            
  12.  
  13.             //Got agentID here
  14.             String agentID = origPayee.getContract().getAgentID();
  15.             m_trace.println("Got agentID " + agentID);
  16.            
  17.  
  18.  
  19.             // setting contractual vesting exception indicator
  20.             if (PLContractualVestingRules.isAllocationVested(cmalloc,
  21.                     cmalloc.getTransaction(), origPayee, m_trace)) {
  22.                 m_trace.display("ContractualVesting : "
  23.                         + PLContractualVestingRules.ALLOCATION_VESTED);
  24.                 cmalloc.setPLExceptionIndicator(false);
  25.             } else {
  26.                 cmalloc.setPLExceptionIndicator(true);
  27.             }
  28.            
  29.  
  30.  
  31.             //If SAID code contains T372
  32.             if(agentID.contains("T372")){
  33.                 m_trace.display("Found T372 pattern. WFG is set to true");
  34.                 cmalloc.setWFG(true);
  35.             } else {
  36.                 cmalloc.setWFG(false);
  37.             }
  38.         }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment