I am in the process of developing an MDG technology for my project. This includes assigning a number of tagged values to my stereotypes. I would like some of these to either auto-populate with a value or change the enumeration options after the user has selected values for other tags.
I am comfortable creating new tags based on my custom enumerations and getting the shape to change if certain tags are changed to particular values (using the shape script). However I can't seem to figure out how to pass data between tags (in the same element), create derived tagged values or change which enumeration is assigned based on a condition.
For example lets say I'm modelling pets. The user can choose an animal from an enumeration e.g.
* Species (enumeration) Cat, Dog, Rodent, Snake, Lizard, Parrot
Question 1: I would then like the tagged value 'group' to be auto-populated based on their species selection
* Group (auto-assigned) Mammal, Reptile, Fish, Bird
Question 2: I would like the tagged value 'Animal' to offer specific enumerated values based on their species selection
* Animal (user selects Rodent as species) - enumeration values offered are: Hamster, Rat, Gerbil
* Animal (user selects Dog as Species) - enumeration values offered are: Labrador, Pug, Spaniel