02-25-2016 05:51 AM
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManagerActiviti" />
<property name="databaseSchemaUpdate" value="false" />
<property name="jobExecutorActivate" value="false" />
<property name="asyncExecutorEnabled" value="true" />
<property name="asyncExecutorActivate" value="true" />
<!– Need to Validate this –>
<property name="deploymentResources" value="classpath*:processes/activiti/*bpmn20.xml" />
</bean>
<bean id="transactionManagerActiviti" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="datasourceForOracle"/>
<property name="globalRollbackOnParticipationFailure" value="false"></property>
</bean>
<!– Transaction Manager used by service tasks–>
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="datasourceForOracle">
<ref bean="$cashavailDataSource{cashavail.dataSourceBeanName}" />
</property>
</bean>
ProcessInstance pi = runtimeService.startProcessInstanceByKey("customProcess",processContextMap);
Execution execution = null;
while ((execution = runtimeService.createExecutionQuery().processInstanceId(pi.getId()).activityId("waitStateReceiveTask")
.singleResult()) != null) {
runtimeService.signal(execution.getId());
}
02-25-2016 04:08 PM
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.