07-29-2013 06:06 PM
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/ActivitiDS" expected-type="org.activiti.spring.SpringProcessEngineConfiguration" />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="${jdbc.driver}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
<property name="defaultAutoCommit" value="true" />
</bean>
public class WorkflowTest {
@Rule
public ActivitiRule activitiRule = new ActivitiRule();
@Test
public void test() {
// Start
RuntimeService runtimeService = activitiRule.getRuntimeService();
Map<String, Object> variableMap = new HashMap<String, Object>();
………………………
ProcessInstance processInstance = runtimeService
.startProcessInstanceByKey("MyProcess", variableMap);
07-29-2013 07:39 PM
07-30-2013 05:45 AM
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.