Skip to content
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 @@ -39,12 +39,15 @@ public void testSpecExamplesParsing(String workflowLocation) throws Exception {
assertNotNull(workflow.getStates());

WorkflowDiagram workflowDiagram =
new WorkflowDiagramImpl().setWorkflow(workflow).setTemplate("custom-template");
new WorkflowDiagramImpl()
.showLegend(true)
.setWorkflow(workflow)
.setTemplate("custom-template");

String diagramSVG = workflowDiagram.getSvgDiagram();

Assertions.assertNotNull(diagramSVG);
// custom template uses #0000FF as start node color
Assertions.assertTrue(diagramSVG.contains("#0000FF"));
// custom template uses customcolor in the legend
Assertions.assertTrue(diagramSVG.contains("customcolor"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ skinparam backgroundColor White
skinparam legendBackgroundColor White
skinparam legendBorderColor White
skinparam state {
StartColor #0000FF
StartColor Green
EndColor Orange
BackgroundColor GhostWhite
BackgroundColor<< workflow >> White
Expand Down Expand Up @@ -39,7 +39,7 @@ state "[(${diagram.title})]" as workflow << workflow >> {
legend center
State Types and Border Colors:
| Event | Operation | Switch | Sleep | Parallel | Inject | ForEach | CallBack |
|<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<#ffcb8e>|
|<#7fe5f0>|<#bada55>|<#92a0f2>|<#b83b5e>|<#6a2c70>|<#1e5f74>|<#931a25>|<customcolor>|
endlegend
[/]

Expand Down