Class 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 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 pair retrieves 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.