Actions and Other Objects
Last updated
Was this helpful?
Last updated
Was this helpful?
Actions are the primary item in an activity diagram.
Basic actions are declared by placing text between a colon and semicolon. If more than one action is created. An arrow is automatically drawn between them working from the top down. However, you can manually draw the arrow between actions.
fill_color - the fill color of the action
text - the text inside of the action
specification - the shape or specification of the action
The fill_color property determines the fill color of the action. The fill_color is defined by a standard color name or hex code. Create a gradient by using two colors. This property must come after a hash (#) sign and touch the hash sign.
The text property provides the text that is displayed in the action. This is also where the text is formatted. Action text supports creole for emphasis and markup language for color and emphasis. You can define colors with a standard color name or hex code. The # is optional for hex codes in this portion of markup. It appears to be optional in all <color> tags as well.
Multiline text can be achieved with line breaks between the leading colon and final shape character. You can use as many lines as necessary. Empty lines will be displayed.
The shape or specification of the action is determined by the final character of the action which is by default a semicolon. The following example shows the eight options. The fork command is only used here for aesthetics. It will be discussed in its own section later.
Connectors are declared by a single letter inside of a set of parentheses.
fill_color - the fill color of the action
text - the text inside of the action
The fill_color property determines the fill color of the connector. The fill_color is defined by a standard color name or hex code. Create a gradient by using two colors. This property must come after a hash (#) sign and touch the hash sign. It is followed by a colon(:).
The text property provides the text that is displayed in the connector. The text must be a single character. Connector text does not support any formatting, neither creole nor markup, at the time of this writing.
The start, stop, and end objects are declared by the word itself. They have no other properties.