Class ProcessAdminResource


  • @Path("server/admin/containers/{containerId}/processes")
    public class ProcessAdminResource
    extends Object
    • Constructor Detail

      • ProcessAdminResource

        public ProcessAdminResource()
      • ProcessAdminResource

        public ProcessAdminResource​(org.kie.server.services.jbpm.admin.ProcessAdminServiceBase processAdminServiceBase,
                                    org.kie.server.services.api.KieServerRegistry context)
    • Method Detail

      • migrateProcessInstance

        @PUT
        @Path("instances/{processInstanceId}")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response migrateProcessInstance​(@Context
                                                                javax.ws.rs.core.HttpHeaders headers,
                                                                @PathParam("containerId")
                                                                String containerId,
                                                                @PathParam("processInstanceId")
                                                                Long processInstanceId,
                                                                @QueryParam("targetContainerId")
                                                                String targetContainerId,
                                                                @QueryParam("targetProcessId")
                                                                String targetProcessId,
                                                                String payload)
      • migrateProcessInstanceWithSubprocess

        @PUT
        @Path("instances/{processInstanceId}/subprocess")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response migrateProcessInstanceWithSubprocess​(@Context
                                                                              javax.ws.rs.core.HttpHeaders headers,
                                                                              @PathParam("containerId")
                                                                              String containerId,
                                                                              @PathParam("processInstanceId")
                                                                              Long processInstanceId,
                                                                              @QueryParam("targetContainerId")
                                                                              String targetContainerId,
                                                                              @QueryParam("targetProcessId")
                                                                              String targetProcessId,
                                                                              String payload)
      • migrateProcessInstances

        @PUT
        @Path("instances")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response migrateProcessInstances​(@Context
                                                                 javax.ws.rs.core.HttpHeaders headers,
                                                                 @PathParam("containerId")
                                                                 String containerId,
                                                                 @QueryParam("processInstanceId")
                                                                 List<Long> processInstanceIds,
                                                                 @QueryParam("targetContainerId")
                                                                 String targetContainerId,
                                                                 @QueryParam("targetProcessId")
                                                                 String targetProcessId,
                                                                 String payload)
      • cancelNodeInstance

        @DELETE
        @Path("instances/{processInstanceId}/nodeinstances/{nodeInstanceId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response cancelNodeInstance​(@Context
                                                            javax.ws.rs.core.HttpHeaders headers,
                                                            @PathParam("containerId")
                                                            String containerId,
                                                            @PathParam("processInstanceId")
                                                            Long processInstanceId,
                                                            @PathParam("nodeInstanceId")
                                                            Long nodeInstanceId)
      • retriggerNodeInstance

        @PUT
        @Path("instances/{processInstanceId}/nodeinstances/{nodeInstanceId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response retriggerNodeInstance​(@Context
                                                               javax.ws.rs.core.HttpHeaders headers,
                                                               @PathParam("containerId")
                                                               String containerId,
                                                               @PathParam("processInstanceId")
                                                               Long processInstanceId,
                                                               @PathParam("nodeInstanceId")
                                                               Long nodeInstanceId)
      • updateTimer

        @PUT
        @Path("instances/{processInstanceId}/timers/{timerId}")
        @Consumes({"application/json","application/xml"})
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response updateTimer​(@Context
                                                     javax.ws.rs.core.HttpHeaders headers,
                                                     @PathParam("containerId")
                                                     String containerId,
                                                     @PathParam("processInstanceId")
                                                     Long processInstanceId,
                                                     @PathParam("timerId")
                                                     Long timerId,
                                                     @QueryParam("relative") @DefaultValue("true")
                                                     boolean relative,
                                                     String payload)
      • triggerNode

        @POST
        @Path("instances/{processInstanceId}/nodes/{nodeId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response triggerNode​(@Context
                                                     javax.ws.rs.core.HttpHeaders headers,
                                                     @PathParam("containerId")
                                                     String containerId,
                                                     @PathParam("processInstanceId")
                                                     Long processInstanceId,
                                                     @PathParam("nodeId")
                                                     Long nodeId)
      • getTimerInstances

        @GET
        @Path("instances/{processInstanceId}/timers")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getTimerInstances​(@Context
                                                           javax.ws.rs.core.HttpHeaders headers,
                                                           @PathParam("containerId")
                                                           String containerId,
                                                           @PathParam("processInstanceId")
                                                           Long processInstanceId)
      • getActiveNodeInstances

        @GET
        @Path("instances/{processInstanceId}/nodeinstances")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getActiveNodeInstances​(@Context
                                                                javax.ws.rs.core.HttpHeaders headers,
                                                                @PathParam("containerId")
                                                                String containerId,
                                                                @PathParam("processInstanceId")
                                                                Long processInstanceId)
      • getNodes

        @GET
        @Path("instances/{processInstanceId}/nodes")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getNodes​(@Context
                                                  javax.ws.rs.core.HttpHeaders headers,
                                                  @PathParam("containerId")
                                                  String containerId,
                                                  @PathParam("processInstanceId")
                                                  Long processInstanceId)
      • acknowledgeError

        @PUT
        @Path("errors/{errorId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response acknowledgeError​(@Context
                                                          javax.ws.rs.core.HttpHeaders headers,
                                                          @PathParam("containerId")
                                                          String containerId,
                                                          @PathParam("errorId")
                                                          String errorId)
      • acknowledgeErrors

        @PUT
        @Path("errors")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response acknowledgeErrors​(@Context
                                                           javax.ws.rs.core.HttpHeaders headers,
                                                           @PathParam("containerId")
                                                           String containerId,
                                                           @QueryParam("errorId")
                                                           List<String> errorIds)
      • getExecutionErrorById

        @GET
        @Path("errors/{errorId}")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getExecutionErrorById​(@Context
                                                               javax.ws.rs.core.HttpHeaders headers,
                                                               @PathParam("containerId")
                                                               String containerId,
                                                               @PathParam("errorId")
                                                               String errorId)
      • getExecutionErrorsByProcessInstance

        @GET
        @Path("instances/{processInstanceId}/errors")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getExecutionErrorsByProcessInstance​(@Context
                                                                             javax.ws.rs.core.HttpHeaders headers,
                                                                             @PathParam("containerId")
                                                                             String containerId,
                                                                             @PathParam("processInstanceId")
                                                                             Long processInstanceId,
                                                                             @QueryParam("includeAck") @DefaultValue("false")
                                                                             boolean includeAcknowledged,
                                                                             @QueryParam("node")
                                                                             String nodeName,
                                                                             @QueryParam("page") @DefaultValue("0")
                                                                             Integer page,
                                                                             @QueryParam("pageSize") @DefaultValue("10")
                                                                             Integer pageSize,
                                                                             @QueryParam("sort")
                                                                             String sort,
                                                                             @QueryParam("sortOrder") @DefaultValue("true")
                                                                             boolean sortOrder)
      • getExecutionErrors

        @GET
        @Path("errors")
        @Produces({"application/json","application/xml"})
        public javax.ws.rs.core.Response getExecutionErrors​(@Context
                                                            javax.ws.rs.core.HttpHeaders headers,
                                                            @PathParam("containerId")
                                                            String containerId,
                                                            @QueryParam("includeAck") @DefaultValue("false")
                                                            boolean includeAcknowledged,
                                                            @QueryParam("page") @DefaultValue("0")
                                                            Integer page,
                                                            @QueryParam("pageSize") @DefaultValue("10")
                                                            Integer pageSize,
                                                            @QueryParam("sort")
                                                            String sort,
                                                            @QueryParam("sortOrder") @DefaultValue("true")
                                                            boolean sortOrder)