Search in sources :

Example 1 with ProcessRuntimeEventListener

use of org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener 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)

Example 2 with ProcessRuntimeEventListener

use of org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener 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 3 with ProcessRuntimeEventListener

use of org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener 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 4 with ProcessRuntimeEventListener

use of org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener 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)

Example 5 with ProcessRuntimeEventListener

use of org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener in project Activiti by Activiti.

the class UserTaskAssigneeRuntimeTest method shouldGetConfiguration.

@Test
public void shouldGetConfiguration() {
    securityUtil.logInAs("user1");
    // when
    TaskRuntimeConfiguration configuration = taskRuntime.configuration();
    // then
    assertThat(configuration).isNotNull();
    // when
    List<TaskRuntimeEventListener<?>> taskRuntimeEventListeners = configuration.taskRuntimeEventListeners();
    List<VariableEventListener<?>> variableEventListeners = configuration.variableEventListeners();
    List<ProcessRuntimeEventListener<?>> processRuntimeEventListeners = processRuntime.configuration().processEventListeners();
    // then
    assertThat(taskRuntimeEventListeners).hasSize(6);
    assertThat(variableEventListeners).hasSize(3);
    assertThat(processRuntimeEventListeners).hasSize(11);
}
Also used : ProcessRuntimeEventListener(org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener) VariableEventListener(org.activiti.api.runtime.shared.events.VariableEventListener) TaskRuntimeEventListener(org.activiti.api.task.runtime.events.listener.TaskRuntimeEventListener) TaskRuntimeConfiguration(org.activiti.api.task.runtime.conf.TaskRuntimeConfiguration) 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