コード例 #1
0
 @POST
 @Produces(MediaType.APPLICATION_XML)
 @Path("/process/instance/{procInstId: [0-9]+}/abort")
 public JaxbGenericResponse abortProcessInstance(@PathParam("procInstId") Long procInstId) {
   Command<?> cmd = new AbortProcessInstanceCommand();
   ((AbortProcessInstanceCommand) cmd).setProcessInstanceId(procInstId);
   internalDoKieSessionOperation(cmd, "Unable to abort process instance " + procInstId);
   return new JaxbGenericResponse(request);
 }
コード例 #2
0
  @POST
  @Path("/process/instance/{procInstId: [0-9]+}/abort")
  public Response process_instance_procInstId_abort(@PathParam("procInstId") Long procInstId) {
    Command<?> cmd = new AbortProcessInstanceCommand();
    ((AbortProcessInstanceCommand) cmd).setProcessInstanceId(procInstId);

    processRequestBean.doKieSessionOperation(
        cmd, deploymentId, procInstId, "Unable to abort process instance " + procInstId);

    return createCorrectVariant(
        new JaxbGenericResponse(uriInfo.getRequestUri().toString()), headers);
  }