How do I pass the attribute is from 0 to 10? And, how to make an attribute from two options, for example, "yes" or "no"?
You can define it using the Constraint property of the attribute. Right-click on the desired attribute in the diagram editor, choose Properties from the context menu and enter the constraint into the Constraint box.
You can express the condition in textual way, e.g.:
- 0..10, 'yes' or 'no'
- self >= 0 and self <= 10, self = 'yes' or self = 'no'