//创建流程实例查询
ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
//查询刚才暂停的流程实例
processInstanceQuery.processInstanceId(processInstanceId);
//获取流程实例
processInstance = processInstanceQuery.singleResult();
//验证流程实例已经暂停
assertTrue(processInstance.isSuspended());
//恢复流程实例
runtimeService.continueProcessInstance(processInstanceId);