Search in sources :

Example 1 with ProcessRuntimeConfiguration

use of org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration 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 ProcessRuntimeConfiguration

use of org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration 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 ProcessRuntimeConfiguration

use of org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration in project Activiti by Activiti.

the class TaskVariablesLocalCopiesTest method shouldGetConfiguration.

@Test
public void shouldGetConfiguration() {
    securityUtil.logInAs("user");
    // when
    ProcessRuntimeConfiguration configuration = processRuntime.configuration();
    // then
    assertThat(configuration).isNotNull();
}
Also used : ProcessRuntimeConfiguration(org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 4 with ProcessRuntimeConfiguration

use of org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration 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 5 with ProcessRuntimeConfiguration

use of org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration 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

ProcessRuntimeConfiguration (org.activiti.api.process.runtime.conf.ProcessRuntimeConfiguration)17 Test (org.junit.jupiter.api.Test)17 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)17 ProcessRuntimeEventListener (org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener)6 VariableEventListener (org.activiti.api.runtime.shared.events.VariableEventListener)6 ProcessInstance (org.activiti.api.process.model.ProcessInstance)4 VariableInstance (org.activiti.api.model.shared.model.VariableInstance)3 JsonNode (com.fasterxml.jackson.databind.JsonNode)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 ProcessDefinition (org.activiti.api.process.model.ProcessDefinition)2 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 SimpleDateFormat (java.text.SimpleDateFormat)1 UpdateProcessPayload (org.activiti.api.process.model.payloads.UpdateProcessPayload)1