Activiti v5 to v6 update customFormTypes is null

cancel
Showing results for 
Search instead for 
Did you mean: 
ivan_activiti
Member II

Activiti v5 to v6 update customFormTypes is null

In the process of moving from Activiti v5 to v6 I ran into the issue with custom form types. I am using Spring in my app. The current setup to update is:

 

<bean id="activiti5CompabilityFactory" class="org.activiti.compatibility.spring.SpringActiviti5CompatibilityHandlerFactory" />

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration" >
	<property name="activiti5CompatibilityEnabled" value="true" />
	<property name="activiti5CompatibilityHandlerFactory" ref="activiti5CompabilityFactory" />
        <property name="customFormTypes">
            <list>
                <bean class="com.foo.MyFormType" />
...

Also added to my pom.xml:

 

 

		<dependency>
		    <groupId>org.activiti</groupId>
		    <artifactId>activiti5-engine</artifactId>
		    <version>6.0.0</version>
		</dependency>
		<dependency>
		    <groupId>org.activiti</groupId>
		    <artifactId>activiti5-compatibility</artifactId>
		    <version>6.0.0</version>
		</dependency>
		<dependency>
		    <groupId>org.activiti</groupId>
		    <artifactId>activiti5-spring</artifactId>
		    <version>6.0.0</version>
		</dependency>
		<dependency>
		    <groupId>org.activiti</groupId>
		    <artifactId>activiti5-spring-compatibility</artifactId>
		    <version>6.0.0</version>
		</dependency>

The app deploys successfully. All existing deployments are marked as activiti-5. I am able to start a new process and complete tasks only when no custom form types are used. When there is a custom form type, I get the "unknown type" exception.

After debugging, I found out that my customFormTypes property was picked up successfuly during the initialization by the org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl (that is v6.) But in the v5 file org.activiti5.engine.impl.cfg.ProcessEngineConfigurationImpl the customFormTypes is null. Why is it not picking it up form my engine configuration setting? Am I missing something in my setup?