Package org.imixs.workflow.jaxrs
Class SchedulerRestService
java.lang.Object
org.imixs.workflow.jaxrs.SchedulerRestService
@Path("/scheduler")
@Produces({"text/html","application/xml","application/json","text/xml"})
public class SchedulerRestService
extends Object
The SchedulerRestService provides methods to
- Load a Scheduler configuration
- Save a Scheduler configuration
- Start a Scheduler
- Stop a Scheduler
- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.StreamingOutputjakarta.ws.rs.core.ResponseloadConfiguration(String name, String items, String format) Returns a scheduler configuration by its namejakarta.ws.rs.core.ResponseupdateSchedulerConfiguration(XMLDocument xmlworkitem) Update a scheduler configuration
-
Constructor Details
-
SchedulerRestService
public SchedulerRestService()
-
-
Method Details
-
getHelpHTML
@GET @Produces("text/html") @Path("/help") public jakarta.ws.rs.core.StreamingOutput getHelpHTML() -
updateSchedulerConfiguration
@POST @Path("/") @Produces("application/xml") @Consumes({"application/xml","text/xml"}) public jakarta.ws.rs.core.Response updateSchedulerConfiguration(XMLDocument xmlworkitem) Update a scheduler configurationIf the scheduler configuration is 'enabled' the scheduler will be started automatically. Otherwise the scheduler will be stopped if running
- Parameters:
xmlworkitem- - entity to be saved- Returns:
-
loadConfiguration
@GET @Path("/{name}") public jakarta.ws.rs.core.Response loadConfiguration(@PathParam("name") String name, @QueryParam("items") String items, @QueryParam("format") String format) Returns a scheduler configuration by its name- Parameters:
name- - name of the configuration- Returns:
- the scheduler configuration entity
-