Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(waypoints): avoid edge overlapping shapes in more use cases #90

Merged
merged 1 commit into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/
package io.process.analytics.tools.bpmn.generator;

import org.junit.jupiter.api.Test;
import static io.process.analytics.tools.bpmn.generator.App.runApp;
import static io.process.analytics.tools.bpmn.generator.AppTest.*;

import java.io.IOException;

import static io.process.analytics.tools.bpmn.generator.App.runApp;
import static io.process.analytics.tools.bpmn.generator.AppTest.*;
import org.junit.jupiter.api.Test;

public class AppFromCsvTest {

Expand Down Expand Up @@ -48,6 +48,13 @@ public void main_generates_bpmn_with_vacation_request_bonita_discovery_data() th
"from_vacation_request_bonita_csv_diagram.bpmn");
}

@Test
public void main_generates_bpmn_with_vacation_request_bonita_v2_discovery_data() throws Exception {
runAndCheckBpmnAndSvgGeneration("csv/VacationRequestBonita_v2/nodes.csv",
"csv/VacationRequestBonita_v2/edges.csv",
"from_vacation_request_bonita_v2_csv_diagram.bpmn");
}

// =================================================================================================================
// UTILS
// =================================================================================================================
Expand Down
28 changes: 28 additions & 0 deletions java/src/test/resources/csv/VacationRequestBonita_v2/edges.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"","id","from_id","to_id","value"
"1",1,1,2009,52
"2",2,5,2010,3
"3",3,7,2002,53
"4",4,8,4,53
"5",5,9,7,53
"6",6,11,5,3
"7",7,3,1003,56
"8",8,4,1004,53
"9",9,6,1006,3
"10",10,10,1010,56
"11",11,1003,8,53
"12",12,1003,2010,2
"13",13,1003,2011,1
"14",14,1004,2006,1
"15",15,1004,2010,50
"16",16,1004,2011,2
"17",17,1006,2002,2
"18",18,1006,2010,1
"19",19,1010,1,52
"20",20,1010,2002,1
"21",21,1010,2006,2
"22",22,1010,2009,1
"23",23,2002,2,56
"24",24,2006,6,3
"25",25,2009,9,53
"26",26,2010,10,56
"27",27,2011,11,3
21 changes: 21 additions & 0 deletions java/src/test/resources/csv/VacationRequestBonita_v2/nodes.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"","from_id","node","type","value"
"1",1,"Add event on employee calendar","task",52
"2",2,"ARTIFICIAL_END","end_event",56
"3",3,"ARTIFICIAL_START","start_event",56
"4",4,"Deduct requested days from available days","task",53
"5",5,"End Reminder","task",3
"6",6,"end when request cancelled","task",3
"7",7,"New Vacation Request End","task",53
"8",8,"New Vacation Request Start","task",53
"9",9,"Notify employee request approved","task",53
"10",10,"Review request","task",56
"11",11,"Send reminder","task",3
"12",1003,"gateway1","gateway",56
"13",1004,"gateway2","gateway",53
"14",1006,"gateway3","gateway",3
"15",1010,"gateway4","gateway",56
"16",2002,"gateways_merge_1","gateway",56
"17",2006,"gateways_merge_2","gateway",3
"18",2009,"gateways_merge_3","gateway",53
"19",2010,"gateways_merge_4","gateway",56
"20",2011,"gateways_merge_5","gateway",3