AnsweredAssumed Answered

Custom management dosen't work when migrate to Activiti 5.15

Question asked by galix on Jun 20, 2014
Latest reply on May 18, 2015 by jbarrez
Hi devs,

I've custom management working great in version Activiti 5.12. Now we are migrating to 5.15 and I've some troubles to adapt code to it.
I notice there are some changes in internal API:
- In ManagementGroupManager, method findGroupById() no exist in GroupEntityManager anymore.
- In ManagementUserManager, we have to cast result of findUserById to (UserEntity)

This is my activiti-rest config in activiti-context.xml:
 
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSource" ref="dataSource" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="mailServerHost" value="localhost" />
      <property name="mailServerPort" value="5025" />
      <property name="jobExecutorActivate" value="true" />
        <property name="customFormTypes">
          <list>
            <bean class="org.activiti.rest.form.UserFormType"/>
            <bean class="org.activiti.rest.form.ProcessDefinitionFormType"/>
            <bean class="org.activiti.rest.form.MonthFormType"/>  
          </list>
        </property>
      <property name="customSessionFactories">
         <list>
            <bean class="activiti.management.ManagementUserManagerFactory">
               <constructor-arg ref="managementConnectionParams" />
            </bean>
            <bean class="activiti.management.ManagementGroupManagerFactory">
               <constructor-arg ref="managementConnectionParams" />
            </bean>
         </list>
      </property>
   </bean>

   <bean id="managementConnectionParams" class="activiti.management.ManagementConnectionParams">
      <property name="serviceUrl" value="https://XXX/Management/ManagementWebService.svc" />
      <property name="user" value="XXX" />
      <property name="password" value="XXX" />
      <property name="timeout" value="30000" />
   </bean>


Even seems like activiti dosen't use custom managment cause dosen't print any log of module when i'ts working in 5.15 and it does when is in 5.12.

Anybody can help me.
Thanks a lot

Cheers

Outcomes