Literals reflect Local Constants. You can use them to provide a literal value within an activity diagram.
Activities are modeled in activity diagrams. Refer to Modeling Activities for more information on how to create an activity diagram.
You can connect literals to the following elements if they do not have incoming relations:
output parameters
return parameters
pins
Select one of these elements to which you want to connect the literal, then drag out the literal icon from the elements toolbar. In the example on the left, the pin key of the call operation retrieve was selected. You can place the literal anywhere within the diagram pane at the desired position. As soon as you release the literal, the relation to the selected element is drawn.
Once you have placed the literal, you can assign a value to it directly in the diagram.
To change the value of the literal, switch to the Attributes panel. Alternatively, you can change the literal value directly in the diagram by double-clicking in the element.