Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void processCollection(ISCCollection cmallocColl) {
- m_trace.display("Processing allocation collection: (no. of items) "
- + cmallocColl.getCount());
- for (Enumeration te = cmallocColl.elements(); te.hasMoreElements();) {
- ISCCMAllocation cmalloc = (ISCCMAllocation) te.nextElement();
- m_trace.println("Processing allocation : " + cmalloc+tempd.toString());
- IFSAgreementParticipant origPayee = (IFSAgreementParticipant) cmalloc.getSalesTeam();
- //Got agentID here
- String agentID = origPayee.getContract().getAgentID();
- m_trace.println("Got agentID " + agentID);
- // setting contractual vesting exception indicator
- if (PLContractualVestingRules.isAllocationVested(cmalloc,
- cmalloc.getTransaction(), origPayee, m_trace)) {
- m_trace.display("ContractualVesting : "
- + PLContractualVestingRules.ALLOCATION_VESTED);
- cmalloc.setPLExceptionIndicator(false);
- } else {
- cmalloc.setPLExceptionIndicator(true);
- }
- //If SAID code contains T372
- if(agentID.contains("T372")){
- m_trace.display("Found T372 pattern. WFG is set to true");
- cmalloc.setWFG(true);
- } else {
- cmalloc.setWFG(false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment