Class ExecutorResource


  • @Path("server/jobs")
    public class ExecutorResource
    extends Object
    • Field Detail

      • logger

        public static final org.slf4j.Logger logger
    • Constructor Detail

      • ExecutorResource

        public ExecutorResource()
      • ExecutorResource

        public ExecutorResource​(org.kie.server.services.jbpm.ExecutorServiceBase executorServiceBase,
                                org.kie.server.services.api.KieServerRegistry context)
    • Method Detail

      • scheduleRequest

        @POST
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response scheduleRequest​(@Context
                                                         javax.ws.rs.core.HttpHeaders headers,
                                                         @QueryParam("containerId")
                                                         String containerId,
                                                         String payload)
      • cancelRequest

        @DELETE
        @Path("{jobId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response cancelRequest​(@Context
                                                       javax.ws.rs.core.HttpHeaders headers,
                                                       @PathParam("jobId")
                                                       long requestId)
      • requeueRequest

        @PUT
        @Path("{jobId}")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response requeueRequest​(@Context
                                                        javax.ws.rs.core.HttpHeaders headers,
                                                        @PathParam("jobId")
                                                        long requestId)
      • updateRequestData

        @POST
        @Path("{jobId}/data")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response updateRequestData​(@Context
                                                           javax.ws.rs.core.HttpHeaders headers,
                                                           @PathParam("jobId")
                                                           long requestId,
                                                           @QueryParam("containerId")
                                                           String containerId,
                                                           String payload)
      • getRequestsByStatus

        @GET
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestsByStatus​(@Context
                                                             javax.ws.rs.core.HttpHeaders headers,
                                                             @QueryParam("status")
                                                             List<String> statuses,
                                                             @QueryParam("page") @DefaultValue("0")
                                                             Integer page,
                                                             @QueryParam("pageSize") @DefaultValue("10")
                                                             Integer pageSize)
      • getRequestsByBusinessKey

        @GET
        @Path("keys/{key}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestsByBusinessKey​(@Context
                                                                  javax.ws.rs.core.HttpHeaders headers,
                                                                  @PathParam("key")
                                                                  String businessKey,
                                                                  @QueryParam("status")
                                                                  List<String> statuses,
                                                                  @QueryParam("page") @DefaultValue("0")
                                                                  Integer page,
                                                                  @QueryParam("pageSize") @DefaultValue("10")
                                                                  Integer pageSize)
      • getRequestsByCommand

        @GET
        @Path("commands/{cmd}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestsByCommand​(@Context
                                                              javax.ws.rs.core.HttpHeaders headers,
                                                              @PathParam("cmd")
                                                              String command,
                                                              @QueryParam("status")
                                                              List<String> statuses,
                                                              @QueryParam("page") @DefaultValue("0")
                                                              Integer page,
                                                              @QueryParam("pageSize") @DefaultValue("10")
                                                              Integer pageSize)
      • getRequestsByContainer

        @GET
        @Path("containers/{containerId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestsByContainer​(@Context
                                                                javax.ws.rs.core.HttpHeaders headers,
                                                                @PathParam("containerId")
                                                                String containerId,
                                                                @QueryParam("status")
                                                                List<String> statuses,
                                                                @QueryParam("page") @DefaultValue("0")
                                                                Integer page,
                                                                @QueryParam("pageSize") @DefaultValue("10")
                                                                Integer pageSize)
      • getRequestsByProcessInstance

        @GET
        @Path("processes/instances/{processInstanceId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestsByProcessInstance​(@Context
                                                                      javax.ws.rs.core.HttpHeaders headers,
                                                                      @PathParam("processInstanceId")
                                                                      Long processInstanceId,
                                                                      @QueryParam("status")
                                                                      List<String> statuses,
                                                                      @QueryParam("page") @DefaultValue("0")
                                                                      Integer page,
                                                                      @QueryParam("pageSize") @DefaultValue("10")
                                                                      Integer pageSize)
      • getRequestById

        @GET
        @Path("{jobId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getRequestById​(@Context
                                                        javax.ws.rs.core.HttpHeaders headers,
                                                        @PathParam("jobId")
                                                        Long requestId,
                                                        @QueryParam("withErrors")
                                                        boolean withErrors,
                                                        @QueryParam("withData")
                                                        boolean withData)