cancel
Showing results for 
Search instead for 
Did you mean: 

process definition not appearing in the activiti explorer.

pavan_bukka_ait
Champ in-the-making
Champ in-the-making
Hi all ,
I have deployed both my application which is developed on spring framework and activitiexplorer on the same application server tomcat7.0. i am deploying the processdefinition from my application in the following way

Deployment d = repositoryService.createDeployment() .addClasspathResource("CustomTaskAssignmentTest.testSetAssigneeThroughSpringService.bpmn20.xml")
.deploy();

i can see the deployment id in the deployment object but in the activiti explorer i cannot see the Process definition in the Process definitions tab . If i am not wrong it should come in the process definition list right ?

Thanks in advance.

kind regards ,
B pavan kumar.
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Does your spring-activiti-engine point to the same database as the on in your the engine in activiti explorer? Are you using the same spring-contex-file?

pavan_bukka_ait
Champ in-the-making
Champ in-the-making
hi ,
    thanks for the reply,following configuration code i have put in my spring dispatcher-serverlet.xml ,but activiti explorer still using the h2 database . I think i have to make activiti explorer use activiti db on mysql server, right ? if so, how to do it ?

<!– activiti integeration  –>
<bean id="activitiDataSource"
  class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
  <property name="driverClass" value="com.mysql.jdbc.Driver" />
  <property name="url" value="jdbc:mysql://localhost:3306/activiti" />
  <property name="username" value="root" />
  <property name="password" value="" />
</bean>

<bean id="transactionManager"
  class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
  <property name="dataSource" ref="activitiDataSource" />
</bean>

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
  <property name="dataSource" ref="activitiDataSource" />
  <property name="transactionManager" ref="transactionManager" />
  <property name="databaseSchemaUpdate" value="true" />
  <property name="jobExecutorActivate" value="false" />
</bean>

<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
  <property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>

<bean id="sentenceGenerator" class="com.equalize.dms.service.SentenceGenerator" />

<bean id="delegateExpressionBean"
  class="com.equalize.dms.service.DelegateExpressionBean">
  <property name="sentenceGenerator" ref="sentenceGenerator" />
</bean>

<bean id="sentenceToUpperCaseBean"
  class="com.equalize.dms.service.SentenceToUpperCaseBean">
  <property name="sentenceGenerator" ref="sentenceGenerator" />
</bean>

<bean id="myExecutionListenerBean"
  class="com.equalize.dms.service.MyExecutionListenerBean" />

<bean id="myTaskListenerBean" class="com.equalize.dms.service.MyTaskListenerBean" />

  <bean id="fakeLdapService" class="com.equalize.dms.service.FakeLdapService" />

<bean id="repositoryService" factory-bean="processEngine"
  factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine"
  factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine"
  factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine"
  factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine"
  factory-method="getManagementService" />

frederikherema1
Star Contributor
Star Contributor
Does your activiti-explorer also point to the same database? If you're using the explorer out of the box, it's not…

pavan_bukka_ait
Champ in-the-making
Champ in-the-making
Hi,
   Thanks, I changed application-context.xml of activiti-explorer and it is working fine now.