Hello,
I tried to use Aries instead of Spring to configure Activiti process engine. 
The problem I meet was related to fluent builders. Activiti can be configured 
with fluent builder, for example:

ProcessEngine processEngine = 
ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
  .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_FALSE)
  .setJdbcUrl("jdbc:h2:mem:my-own-db;DB_CLOSE_DELAY=1000")
  .setJobExecutorActivate(true)
  .buildProcessEngine();

I ported this fragment to an XML fragment:

    <bean id="processEngineConfiguration" 
class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
        <property name="jobExecutorActivate" value="true" />
        <property name="databaseSchemaUpdate" value="false" />
        <property name="dataSource">
            <bean class="org.h2.jdbcx.JdbcDataSource">
                <property name="url" value="jdbc:h2:mem:activiti" />
            </bean>
        </property>
    </bean>
    <bean id="processEngine" factory-ref="processEngineConfiguration" 
factory-method="buildProcessEngine">
    </bean>

The error reported by blueprint is:
org.osgi.service.blueprint.container.ComponentDefinitionException: No setter 
for jobExecutorActivate property

The jobExecutorActivate property returns an instance of 
ProcessEngineConfiguration so it is not a regular Java Bean property. Do you 
have any ideas how to manage both - Aries and Activiti to work together?

Best regards,
Lukasz

Reply via email to