cancel
Showing results for 
Search instead for 
Did you mean: 

About configureFromPropertiesResource

jcosano
Champ in-the-making
Champ in-the-making
This code (extracted from User Guide) doesn't work in RC1


ProcessEngine processEngine = new ProcessEngineBuilder()
  .configureFromPropertiesResource(configurationResource)
  .buildProcessEngine();

Then… which is correct way for do this?
4 REPLIES 4

jcosano
Champ in-the-making
Champ in-the-making
For the moment I'm using:

ProcessEngine processEngine = new ProcessEngineBuilder().configureFromResource("activiti.properties").buildProcessEngine();

frederikherema1
Star Contributor
Star Contributor
The configuration is changed to XML, see http://jira.codehaus.org/browse/ACT-134. Example XML:
<?xml version="1.0" encoding="UTF-8"?>
<activiti-cfg>
 
  <database type="h2" schema-strategy="create-if-necessary">
    <jdbc url="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000"
          driver="org.h2.Driver"
          username="sa"
          password="" />
  </database>
 
  <job-executor activate="off" />
 
  <mail server="localhost" port="5025" />
 
</activiti-cfg>

jcosano
Champ in-the-making
Champ in-the-making
Work fine with

ProcessEngine processEngine = new ProcessEngineBuilder().configureFromResource("activiti.cfg.xml").buildProcessEngine();

changes:
- modify configureFromPropertiesResource to configureFromResource
- modify name of file .properties to .cfg.xml

jbarrez
Star Contributor
Star Contributor
My bad, I revised the configuration chapter but not the API chapter.
I'll fix that asap http://jira.codehaus.org/browse/ACT-307

jcosano is indeed correct with his remarks.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.