taskEntity.setProcessDefinitionId(processDefinitionId);
taskEntity.update();
}
// 操作Execution表
List<Execution> executions = new ExecutionQueryImpl(commandContext)
.processInstanceId(processInstanceId).list();
for (Execution execution : executions) {
if (execution instanceof ExecutionEntity) {
((ExecutionEntity) execution)