1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.hr.time.batch;
17  
18  import org.kuali.hr.time.service.base.TkServiceLocator;
19  import org.kuali.hr.time.timesheet.TimesheetDocument;
20  import org.kuali.hr.time.util.TkConstants;
21  
22  public class EmployeeApprovalBatchJobRunnable extends BatchJobEntryRunnable {
23  
24      public EmployeeApprovalBatchJobRunnable(BatchJobEntry entry) {
25          super(entry);
26      }
27  
28  	@Override
29  	public void doWork() throws Exception {
30  		String principalId = batchJobEntry.getPrincipalId();
31  		String documentId = batchJobEntry.getDocumentId();
32  		TimesheetDocument timesheetDocument = TkServiceLocator.getTimesheetService().getTimesheetDocument(documentId);
33  		TkServiceLocator.getTimesheetService().routeTimesheet(TkConstants.BATCH_JOB_ACTIONS.BATCH_JOB_ROUTE, principalId, timesheetDocument);
34  	}
35  
36  }