Subversion Repositories SmartDukaan

Rev

Rev 5916 | Rev 7596 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5916 Rev 5936
Line 7... Line 7...
7
import in.shop2020.alert.EntityType;
7
import in.shop2020.alert.EntityType;
8
import in.shop2020.alert.MonitoredEntity;
8
import in.shop2020.alert.MonitoredEntity;
9
import in.shop2020.crm.Activity;
9
import in.shop2020.crm.Activity;
10
import in.shop2020.crm.ActivityType;
10
import in.shop2020.crm.ActivityType;
11
import in.shop2020.crm.Agent;
11
import in.shop2020.crm.Agent;
-
 
12
import in.shop2020.crm.TicketStatus;
12
import in.shop2020.crm.CRMService.Iface;
13
import in.shop2020.crm.CRMService.Iface;
13
import in.shop2020.crm.SearchFilter;
14
import in.shop2020.crm.SearchFilter;
14
import in.shop2020.crm.Ticket;
15
import in.shop2020.crm.Ticket;
15
import in.shop2020.crm.TicketCategory;
16
import in.shop2020.crm.TicketCategory;
16
import in.shop2020.crm.handler.ActivityHandler;
17
import in.shop2020.crm.handler.ActivityHandler;
Line 88... Line 89...
88
            try{
89
            try{
89
	            /*For now monitoring is only done for New tickets and hence once any 
90
	            /*For now monitoring is only done for New tickets and hence once any 
90
	        	 * activity is done on a ticket after its creation, we stop monitoring that ticket*/
91
	        	 * activity is done on a ticket after its creation, we stop monitoring that ticket*/
91
            	if(activity.getType()== ActivityType.SEND_EMAIL_TO_CUSTOMER || 
92
            	if(activity.getType()== ActivityType.SEND_EMAIL_TO_CUSTOMER || 
92
            			activity.getType()== ActivityType.ESCALATE_TICKET ||
93
            			activity.getType()== ActivityType.ESCALATE_TICKET ||
93
            			activity.getType()== ActivityType.CALLED_CUSTOMER) {
94
            			activity.getType()== ActivityType.CALLED_CUSTOMER || 
-
 
95
            			activity.getTicketStatus().equals(TicketStatus.CLOSED)) {
94
		        	AlertService.Client alertClient = new AlertClient().getClient();
96
		        	AlertService.Client alertClient = new AlertClient().getClient();
95
		            alertClient.endMonitoringEntity(EntityType.TICKET, "ticketId = " + ticket.getId());
97
		            alertClient.endMonitoringEntity(EntityType.TICKET, "ticketId = " + ticket.getId());
96
            	}
98
            	}
97
            } catch(Exception ex) {
99
            } catch(Exception ex) {
98
            	log.error("Exception while ending monitoring for ticketId " + ticket.getId());
100
            	log.error("Exception while ending monitoring for ticketId " + ticket.getId());