return configuration;
}
public static JbpmConfiguration getJbpmConfiguration(String cfg, String properties) {
Object key = getKey(cfg,properties);
JbpmConfiguration jbpmConfiguration = (JbpmConfiguration) jbpmConfigurations.get(key);
if (jbpmConfiguration==null) {
jbpmConfiguration = JbpmConfiguration.parseXmlString(
"<jbpm-configuration>" +
" <jbpm-context>" +
" <service name='persistence' factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />" +
" </jbpm-context>" +
" <string name='resource.business.calendar' value='org/jbpm/calendar/jbpm.business.calendar.properties' />" +
" <string name='resource.default.modules' value='org/jbpm/graph/def/jbpm.default.modules.properties' />" +
" <string name='resource.converter' value='org/jbpm/db/hibernate/jbpm.converter.properties' />" +
" <string name='resource.action.types' value='org/jbpm/graph/action/action.types.xml' />" +
" <string name='resource.node.types' value='org/jbpm/graph/node/node.types.xml' />" +
" <string name='resource.parsers' value='org/jbpm/jpdl/par/jbpm.parsers.xml' />" +
" <string name='resource.varmapping' value='org/jbpm/context/exe/jbpm.varmapping.xml' />" +
"</jbpm-configuration>"
);
Configuration configuration = getConfiguration(cfg, properties);
DbPersistenceServiceFactory dbPersistenceServiceFactory = (DbPersistenceServiceFactory) jbpmConfiguration.getServiceFactory(Services.SERVICENAME_PERSISTENCE);
dbPersistenceServiceFactory.setConfiguration(configuration);
jbpmConfigurations.put(key, jbpmConfiguration);
}
return jbpmConfiguration;