Search in sources :

Example 6 with VariableEventListener

use of org.activiti.api.runtime.shared.events.VariableEventListener in project Activiti by Activiti.

the class ConformanceBasicProcessRuntimeTest method shouldGetConfiguration.

@Test
public void shouldGetConfiguration() {
    securityUtil.logInAs("user1");
    // when
    ProcessRuntimeConfiguration configuration = processRuntime.configuration();
    // then
    assertThat(configuration).isNotNull();
    // when
    List<ProcessRuntimeEventListener<?>> processRuntimeEventListeners = configuration.processEventListeners();
    List<VariableEventListener<?>> variableEventListeners = configuration.variableEventListeners();
    // then
    assertThat(processRuntimeEventListeners).isNotEmpty();
    assertThat(variableEventListeners).isNotEmpty();
}
Also used : ProcessRuntimeEventListener(org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener) VariableEventListener(org.activiti.api.runtime.shared.events.VariableEventListener) ProcessRuntimeConfiguration(org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 7 with VariableEventListener

use of org.activiti.api.runtime.shared.events.VariableEventListener in project Activiti by Activiti.

the class ConformanceBasicProcessRuntimeTest method shouldGetConfiguration.

@Test
public void shouldGetConfiguration() {
    securityUtil.logInAs("user1");
    // when
    ProcessRuntimeConfiguration configuration = processRuntime.configuration();
    // then
    assertThat(configuration).isNotNull();
    // when
    List<ProcessRuntimeEventListener<?>> processRuntimeEventListeners = configuration.processEventListeners();
    List<VariableEventListener<?>> variableEventListeners = configuration.variableEventListeners();
    // then
    assertThat(processRuntimeEventListeners).hasSize(11);
    assertThat(variableEventListeners).hasSize(3);
}
Also used : ProcessRuntimeEventListener(org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener) VariableEventListener(org.activiti.api.runtime.shared.events.VariableEventListener) ProcessRuntimeConfiguration(org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

ProcessRuntimeEventListener (org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener)7 VariableEventListener (org.activiti.api.runtime.shared.events.VariableEventListener)7 Test (org.junit.jupiter.api.Test)7 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)7 ProcessRuntimeConfiguration (org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration)6 TaskRuntimeConfiguration (org.activiti.api.task.runtime.conf.TaskRuntimeConfiguration)1 TaskRuntimeEventListener (org.activiti.api.task.runtime.events.listener.TaskRuntimeEventListener)1