ExpandClassConfig expandClassConfig=processEngineConfiguration.getExpandClassConfig();
List<ExpandClass> expandClasses=expandClassConfig.getExpandClass();
for (ExpandClass expandClass : expandClasses) {
if(expandClass.getClassId().equals("ProcessDefinitionPersistence")){
Object[] objTemp = new Object[] {commandExecutor};
DeploymentQuery deploymentQuery =(DeploymentQuery) ReflectUtil.instantiate(expandClass.getClassImpl(),objTemp);
return deploymentQuery;
}
}
throw new FixFlowException("流程引擎扩展配置里的ProcessDefinitionPersistence实现类指定错误");
}