diff --git a/plantuml/gilded-rose.png b/plantuml/gilded-rose.png index 7a9f4cfb..3f79be92 100644 Binary files a/plantuml/gilded-rose.png and b/plantuml/gilded-rose.png differ diff --git a/plantuml/gilded-rose.puml b/plantuml/gilded-rose.puml index 63f3c7a5..1d36cb1d 100644 --- a/plantuml/gilded-rose.puml +++ b/plantuml/gilded-rose.puml @@ -1,5 +1,7 @@ @startuml +skinparam backgroundColor transparent + start note left Do this for each item in the list. diff --git a/plantuml/history/01_lower-both-values.puml b/plantuml/history/01_lower-both-values.puml index 151691a5..8fa637bc 100644 --- a/plantuml/history/01_lower-both-values.puml +++ b/plantuml/history/01_lower-both-values.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note :lower quality with 1; :lower sell in with 1; diff --git a/plantuml/history/02_sell-by-passed.puml b/plantuml/history/02_sell-by-passed.puml index 71d8559a..3b2c317d 100644 --- a/plantuml/history/02_sell-by-passed.puml +++ b/plantuml/history/02_sell-by-passed.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note :lower quality with 1; :lower sell in with 1; diff --git a/plantuml/history/03_quality-never-negative.puml b/plantuml/history/03_quality-never-negative.puml index a0965397..b2b9ed7e 100644 --- a/plantuml/history/03_quality-never-negative.puml +++ b/plantuml/history/03_quality-never-negative.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note if (quality > 0) then (yes) :lower quality with 1; diff --git a/plantuml/history/04_aged-brie.puml b/plantuml/history/04_aged-brie.puml index 7bdf78b9..7b74e874 100644 --- a/plantuml/history/04_aged-brie.puml +++ b/plantuml/history/04_aged-brie.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note if (not "Aged Brie") then (yes) if (quality > 0) then (yes) diff --git a/plantuml/history/05_quality-max-50.puml b/plantuml/history/05_quality-max-50.puml index c76615b9..69cc86d0 100644 --- a/plantuml/history/05_quality-max-50.puml +++ b/plantuml/history/05_quality-max-50.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note if (not "Aged Brie") then (yes) if (quality > 0) then (yes) @@ -32,6 +30,7 @@ if (sell in < 0) then (yes) else (no) endif endif + else (no) endif stop diff --git a/plantuml/history/06_sulfuras.puml b/plantuml/history/06_sulfuras.puml index b464e40d..25350c1d 100644 --- a/plantuml/history/06_sulfuras.puml +++ b/plantuml/history/06_sulfuras.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note if (not "Aged Brie") then (yes) if (quality > 0) then (yes) diff --git a/plantuml/history/07_backstage-passes.puml b/plantuml/history/07_backstage-passes.puml index 63f3c7a5..5d6f2fa3 100644 --- a/plantuml/history/07_backstage-passes.puml +++ b/plantuml/history/07_backstage-passes.puml @@ -1,10 +1,8 @@ @startuml +skinparam backgroundColor transparent + start -note left - Do this for each item in the list. - An item has a name, a sell in value and a quality value -end note if (not "Aged Brie" and not "Backstage passes to a TAFKAL80ETC concert") then (yes) if (quality > 0) then (yes) diff --git a/plantuml/readme.md b/plantuml/readme.md index f5b5b006..9c577adb 100644 --- a/plantuml/readme.md +++ b/plantuml/readme.md @@ -9,9 +9,13 @@ Several alternatives are available to render PlantUML, see https://plantuml.com/ ## Syntax For the syntax of activity diagrams in PlantUML, please refer to https://plantuml.com/activity-diagram-beta -## Exercise -You can find the original GildedRose challenge in the gilded-rose.puml file. +## Workshop +You can run this exercise as a workshop. +During this workshop, you start off with a presentation explaining the domain, while filling out the testcases found under `plantuml/workshop`. After that, participants are invited to refactor the UML Activity Diagram, using the examples that were discovered during the presentation. +[The google slides can be found here](https://docs.google.com/presentation/d/1kkRnVQjZELcfuGoFXaiSY_HxbO4lPQnSgHRGQZIH2nU/edit?usp=sharing). + +## History If you want to illustrate how this activity diagram got to this state, you can show the requirements and the files under the /history directory. These individual files show the evolution of the activity diagram. ## Original state diff --git a/plantuml/workshop-materials/testcases.pdf b/plantuml/workshop-materials/testcases.pdf new file mode 100644 index 00000000..be311e2d Binary files /dev/null and b/plantuml/workshop-materials/testcases.pdf differ