diff --git a/ole-app/olefs/src/main/resources/org/kuali/ole/olefs-config-defaults.xml b/ole-app/olefs/src/main/resources/org/kuali/ole/olefs-config-defaults.xml
index 1846688a8c..b8c07c9721 100644
--- a/ole-app/olefs/src/main/resources/org/kuali/ole/olefs-config-defaults.xml
+++ b/ole-app/olefs/src/main/resources/org/kuali/ole/olefs-config-defaults.xml
@@ -498,7 +498,8 @@
${project.home}/reports
- ${project.home}/batchUploadLocation
+ ${project.home}/batch/batchUploadLocation
+ ${project.home}/batch/schedulerUploadLocation
10001
diff --git a/ole-app/olefs/src/main/webapp/WEB-INF/rest-servlet.xml b/ole-app/olefs/src/main/webapp/WEB-INF/rest-servlet.xml
index 88defcfa6a..2a172d3969 100644
--- a/ole-app/olefs/src/main/webapp/WEB-INF/rest-servlet.xml
+++ b/ole-app/olefs/src/main/webapp/WEB-INF/rest-servlet.xml
@@ -3,12 +3,17 @@
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:p="http://www.springframework.org/schema/p"
+ xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
+ http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
+ http://www.springframework.org/schema/aop
+ http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ole-app/olefs/src/main/webapp/batchScheduling/controllers/batchProcessJobsController.js b/ole-app/olefs/src/main/webapp/batchScheduling/controllers/batchProcessJobsController.js
index a0058db436..84c8c87945 100644
--- a/ole-app/olefs/src/main/webapp/batchScheduling/controllers/batchProcessJobsController.js
+++ b/ole-app/olefs/src/main/webapp/batchScheduling/controllers/batchProcessJobsController.js
@@ -282,6 +282,33 @@ batchProcessJobsApp.controller('batchProcessJobsController', ['$scope', '$http',
var batchProcessJob = $scope.batchProcessJobs[index];
batchProcessJob["jobType"] = data["jobType"];
batchProcessJob["cronExpression"] = data["cronExpression"];
+ batchProcessJob["nextRunTime"] = data["nextRunTime"];
+ $scope.batchProcessJobs[index] = batchProcessJob;
+ $scope.message = "Job Unscheduled";
+ });
+ };
+
+ $scope.pauseJob = function(index,jobId) {
+ var jobIdToPause = Number(jobId);
+ doGetRequest($scope, $http, OLENG_CONSTANTS.PAUSE_JOB, {"jobId": jobIdToPause}, function(response) {
+ var data = response.data;
+ var batchProcessJob = $scope.batchProcessJobs[index];
+ batchProcessJob["jobType"] = data["jobType"];
+ batchProcessJob["cronExpression"] = data["cronExpression"];
+ batchProcessJob["nextRunTime"] = data["nextRunTime"];
+ $scope.batchProcessJobs[index] = batchProcessJob;
+ $scope.message = "Job Unscheduled";
+ });
+ };
+
+ $scope.resumeJob = function(index,jobId) {
+ var jobIdToResume = Number(jobId);
+ doGetRequest($scope, $http, OLENG_CONSTANTS.RESUME_JOB, {"jobId": jobIdToResume}, function(response) {
+ var data = response.data;
+ var batchProcessJob = $scope.batchProcessJobs[index];
+ batchProcessJob["jobType"] = data["jobType"];
+ batchProcessJob["cronExpression"] = data["cronExpression"];
+ batchProcessJob["nextRunTime"] = data["nextRunTime"];
$scope.batchProcessJobs[index] = batchProcessJob;
$scope.message = "Job Unscheduled";
});
@@ -404,4 +431,23 @@ batchProcessJobsApp.controller('batchProcessJobsController', ['$scope', '$http',
return false;
};
+
+
+ $scope.deleteJobDetails = function(index, jobExecutionId) {
+ var jobDetailsId = Number(jobExecutionId);
+ doGetRequest($scope, $http, OLENG_CONSTANTS.DELETE_JOB_EXECUTION, {"jobDetailsId": jobDetailsId}, function(response) {
+ $scope.batchJobs.splice(index, 1);
+ });
+ };
+
+ $scope.stopJobExecution = function(index, jobExecutionId) {
+ var jobDetailsId = Number(jobExecutionId);
+ doGetRequest($scope, $http, OLENG_CONSTANTS.STOP_JOB_EXECUTION, {"jobDetailsId": jobDetailsId}, function(response) {
+ var data = response.data;
+ var batchJob = $scope.batchJobs[index];
+ batchJob["status"] = data["status"];
+ $scope.batchJobs[index] = batchJob;
+ });
+ };
+
}]);
\ No newline at end of file
diff --git a/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobExecutions.html b/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobExecutions.html
index 96c1331ccf..6c005ff426 100644
--- a/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobExecutions.html
+++ b/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobExecutions.html
@@ -40,22 +40,12 @@
|
|
-
-
-
-
diff --git a/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobs.html b/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobs.html
index 55059369e6..98b7d4c384 100644
--- a/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobs.html
+++ b/ole-app/olefs/src/main/webapp/batchScheduling/views/batchJobs.html
@@ -12,6 +12,7 @@
| Created On |
Next Run Time |
Cron Expression |
+ Job Status |
Execution Count |
Last Execution Status |
Actions |
@@ -27,6 +28,7 @@
|
|
|
+ |
|
|
@@ -37,10 +39,18 @@
name="processSchedule_{{$index}}" ng-click="schedulePopUp($index, batchProcessJob.jobId)" ng-show="batchProcessJob.jobType === 'Adhoc'">Schedule
+
+
|