Class SchedulerRestController
- java.lang.Object
-
- com.aquima.web.rest.v1.controller.SchedulerRestController
-
@ConditionalOnMissingBean(com.aquima.interactions.caseengine.client.CaseEngineClient.class) @RestController @RestApiContext public class SchedulerRestController extends Object
Responsible for handling Scheduler Maintenance specific requests.- Since:
- 11.0
- Author:
- Voicu Moldovan
-
-
Constructor Summary
Constructors Constructor Description SchedulerRestController(com.aquima.interactions.process.dao.IProcessCaseDao processCaseDao, SchedulerRestService schedulerRestService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>
cancelStartedTasks()
Retrieves all the application names and versions and for each pairretrieves the corresponding ProcessEngine and calls cancelStartedTasks() methods on it. org.springframework.http.ResponseEntity<String>
updateApplicationId(String currentApplicationId, Long caseId, Application newApplication)
Updates application id for all cases and jobs matching the current application id (applicationName:applicationVersion) with new values.
-
-
-
Constructor Detail
-
SchedulerRestController
@Autowired public SchedulerRestController(com.aquima.interactions.process.dao.IProcessCaseDao processCaseDao, SchedulerRestService schedulerRestService)
-
-
Method Detail
-
cancelStartedTasks
@RequestMapping(value="/scheduler/maintenance/tasks/cancelStarted", method=PUT) @ResponseStatus(OK) @ResponseBody public org.springframework.http.ResponseEntity<String> cancelStartedTasks()
Retrieves all the application names and versions and for each pairretrieves the corresponding ProcessEngine and calls cancelStartedTasks() methods on it.
-
updateApplicationId
@RequestMapping(value="/scheduler/maintenance/applications/{currentApplicationId}", method=PUT, consumes="application/json") @ResponseBody public org.springframework.http.ResponseEntity<String> updateApplicationId(@PathVariable(name="currentApplicationId") String currentApplicationId, @RequestParam(name="caseId",required=false) Long caseId, @RequestBody Application newApplication)
Updates application id for all cases and jobs matching the current application id (applicationName:applicationVersion) with new values. If case id is specified, only that case with the corresponding jobs will be updated with the new values.
-
-