Skip to content

Commit

Permalink
Rename test file and use multiple correlation parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Saratz authored and filiphr committed Jan 25, 2024
1 parent d4280e6 commit 32f63d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ public void testStaticEventRegistryProcessStart() {

@Test
@Deployment(resources = {
"org/flowable/engine/test/eventregistry/DynamicProcessStartEventRegistryDeploymentTest.testStaticEventRegistryProcessWithCorrelationParameter.bpmn20.xml",
"org/flowable/engine/test/eventregistry/DynamicProcessStartEventRegistryDeploymentTest.testStaticEventRegistryProcessWithCorrelationParameters.bpmn20.xml",
"org/flowable/engine/test/eventregistry/DynamicProcessStartEventRegistryDeploymentTest.sendTestEventProcess.bpmn20.xml",
"org/flowable/engine/test/eventregistry/SendInternalEventTaskTest.simple.event"
})
public void testStaticEventRegistryProcessWithCorrelationParameter() {
public void testStaticEventRegistryProcessWithCorrelationParameters() {
sendEvent("gonzo", "start");
assertThat(runtimeService.createProcessInstanceQuery().count()).isZero();

sendEvent("kermit", "start");
assertThat(runtimeService.createProcessInstanceQuery().list())
.extracting(ProcessInstance::getProcessDefinitionKey)
.containsExactlyInAnyOrder("eventRegistryDynamicStartTestProcessWithCorrelationParameter");
.containsExactlyInAnyOrder("eventRegistryStaticStartTestProcessWithCorrelationParameters");

Task task = taskService.createTaskQuery().singleResult();
assertThat(task).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:design="http://flowable.org/design" typeLanguage="http://www.w3.org/2001/XMLSchema"
expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://flowable.org/test" design:palette="flowable-engage-process-palette">
<process id="eventRegistryDynamicStartTestProcessWithCorrelationParameter" name="Event Registry Dynamic Start Test Process With Correlation Parameter" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
<process id="eventRegistryStaticStartTestProcessWithCorrelationParameters" name="Event Registry Dynamic Start Test Process With Correlation Parameter" isExecutable="true" flowable:candidateStarterGroups="flowableUser">
<extensionElements>
<design:stencilid><![CDATA[BPMNDiagram]]></design:stencilid>
<design:creationdate><![CDATA[2023-11-27T16:04:40.123Z]]></design:creationdate>
Expand Down

0 comments on commit 32f63d4

Please sign in to comment.