Search in sources :

Example 1 with TaskRuntimeEventListener

use of org.activiti.api.task.runtime.events.listener.TaskRuntimeEventListener 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)1 VariableEventListener (org.activiti.api.runtime.shared.events.VariableEventListener)1 TaskRuntimeConfiguration (org.activiti.api.task.runtime.conf.TaskRuntimeConfiguration)1 TaskRuntimeEventListener (org.activiti.api.task.runtime.events.listener.TaskRuntimeEventListener)1 Test (org.junit.jupiter.api.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1