![]() PlantUML is a tool which allows us to draw diagram from a text based domain specific language. This post is about general concepts of diagrams, not specific to UML. In today’s post, we will learn how to build diagrams with PlantUML and look into different sort of diagrams that are often used. If the condition is not met, the combined fragment is omitted and the normal flow continues. Youll notice B remains deactivated (without a lifeline) after the else statement. In the UML specification, else is the default sequence in a list of alternative sequences. If you prefer OCL syntax, it would be condition1 and condition2. Hello, Assume following sequence diagram: A->B: Hi. ![]() In other words, with the guard brackets condition1 & condition2 is perfectly fine. PlantUML allows us to create diagrams from text script. When a break combined fragment is met and its guard condition is true, only this fragment is still executed and then the execution of the interaction (flow) stops. In some situations, a formal language (such as OCL) or a programming language (such as Java) may be appropriate, in other situations natural language may be used. Any text after the start of the comment to the next newline will be treated as a comment, including any diagram syntax. Comments need to be on their own line, and must be prefaced with (double percent signs). ![]() That’s where PlantUML comes in, or puml for short. Comments can be entered within a sequence diagram, which will be ignored by the parser. You need a sense of aesthetics to use different shapes, place elements in a way that makes sense and use different ways of linking shapes so that the diagram doesn’t get convoluted, failing any of those steps will discourage your audience from even trying to understand what your diagram represents. Whether it is to convey an idea to someone or to pindown an idea that I have in my head or simply to think about a solution for a problem.ĭiagrams are useful as they are cheap, quick scribble on paper and we are done but everyone know that drawing is not an easy task and therefore even drawing diagrams is hard. In my work I draw diagrams almost every day. Aug 30th, 2019 - written by Kimserey with. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |