ProcessInstanceManagementResource extends BaseProcessInstanceManagementResource<Response> { @Override @POST @Path("{processId}/instances/{processInstanceId}/nodeInstances/{nodeInstanceId}") @Produces(MediaType.APPLICATION_JSON) public Response retriggerNodeInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId, @PathParam("nodeInstanceId") String nodeInstanceId) { return doRetriggerNodeInstanceId(processId, processInstanceId, nodeInstanceId); } ProcessInstanceManagementResource(); @Inject  ProcessInstanceManagementResource(Processes processes, Application application); @Override @GET @Path("{processId}/nodes") @Produces(MediaType.APPLICATION_JSON) Response getProcessNodes(@PathParam("processId") String processId); @Override @GET @Path("{processId}/instances/{processInstanceId}/error") @Produces(MediaType.APPLICATION_JSON) Response getInstanceInError(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId); @Override @GET @Path("{processId}/instances/{processInstanceId}/nodeInstances") @Produces(MediaType.APPLICATION_JSON) Response getWorkItemsInProcessInstance(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId); @Override @POST @Path("{processId}/instances/{processInstanceId}/retrigger") @Produces(MediaType.APPLICATION_JSON) Response retriggerInstanceInError(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId); @Override @POST @Path("{processId}/instances/{processInstanceId}/skip") @Produces(MediaType.APPLICATION_JSON) Response skipInstanceInError(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId); @Override @POST @Path("{processId}/instances/{processInstanceId}/nodes/{nodeId}") @Produces(MediaType.APPLICATION_JSON) Response triggerNodeInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId, @PathParam("nodeId") String nodeId); @Override @POST @Path("{processId}/instances/{processInstanceId}/nodeInstances/{nodeInstanceId}") @Produces(MediaType.APPLICATION_JSON) Response retriggerNodeInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId, @PathParam("nodeInstanceId") String nodeInstanceId); @Override @DELETE @Path("{processId}/instances/{processInstanceId}/nodeInstances/{nodeInstanceId}") @Produces(MediaType.APPLICATION_JSON) Response cancelNodeInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId, @PathParam("nodeInstanceId") String nodeInstanceId); @Override @DELETE @Path("{processId}/instances/{processInstanceId}") @Produces(MediaType.APPLICATION_JSON) Response cancelProcessInstanceId(@PathParam("processId") String processId, @PathParam("processInstanceId") String processInstanceId);  }
@Test public void testRetriggerNodeInstanceId() { resource.retriggerNodeInstanceId(PROCESS_ID, PROCESS_INSTANCE_ID, NODE_ID); verify(resource).doRetriggerNodeInstanceId(PROCESS_ID, PROCESS_INSTANCE_ID, NODE_ID); }