我用了 ProcessInstance processInstance = processEngine.getExecutionService().signalExecutionById(task.getExecutionId());方法产生了上述问题,
之后我改成
ProcessInstance processInstance = processEngine.getExecutionService().findProcessInstanceById(task.getExecutionId());就能用了,我知道exception和processInstance是一个概念可以所以可以用task.getExecutionId()代替java.lang.String processInstanceId参数,但是signalExecutionById(task.getExecutionId())问题不知道上面原因。