TaggedValue is a property and value you can add to models. This feature is available in Astah Professional only.

section divider

Define TaggedValue

  1. Create a file named astah_customproperty_def.properties.
  2. Save it in the USERHOME/.astah/professional directory.
  3. Define the TaggedValues in the file, as in the sample below.

TaggedValue Definition Sample

tag.id_001.name=creator1
tag.id_001.target=Class
tag.id_001.stereotype=stereotype0
tag.id_001.defaultvalue=Dendy
tag.id_001.definition=The creator of a model


tag.id_002.name=creator2
tag.id_002.target=UseCase,Package
tag.id_002.stereotype=stereotype1
tag.id_002.defaultvalue=Tony
tag.id_002.definition=The creator of a model

tag.id_003.name=creator3
tag.id_003.target=Object
tag.id_003.stereotype=
tag.id_003.defaultvalue=
tag.id_003.definition=

With this sample, when “stereotype0” is added to a class, a “creator1” TaggedValue with the value “Dendy” is added to the class. When “stereotype1” is added to a use case or a package, a “creator2” TaggedValue with the value “Tony” is added to it.

If you have no value for a key, leave the value empty, as for “creator3“. The key itself must still be in the file, or the import fails.

You can see the TaggedValues in the [TaggedValue] tab of the model’s Property View.
TaggedValues

section divider

TaggedValue Format

Use this format to define TaggedValue name, Target Models types, Target Stereotype, Default Value, and definition. All five keys are required in the file but values can be empty except for Target Model.

ObjectKeyValue
Nametag.xxx.name
Target Modeltag.xxx.targetRequired. Use the strings in the table below. You can set several target models, separated by commas. The import fails if the value contains an invalid string.
Target Stereotypetag.xxx.stereotypeOptional. You can set only one stereotype.
Default Valuetag.xxx.defaultvalueOptional
Definitiontag.xxx.definitionOptional
Model NameString to set for “tag.xxx.target”
ModelModel
SubsystemSubsystem
PackagePackage
Class DiagramClassDiagram
ClassClass
AttributeAttribute
OperationMethod
AssociationAssociation
Association RoleAssociationRole
Association ClassAssociationClass
GeneralizationGeneralization
InterfaceInterface
DependencyDependency
EntityEntity
BoundaryBoundary
ControlControl
Instance SpecificationObject
Link (Object/Communication Diagram)Link
UseCase DiagramUseCaseDiagram
ActorActor
UseCaseUseCase
ExtendExtend
IncludeInclude
Statemachine DiagramStatemachineDiagram
StateState
Submachine StateSubmachineState
Stub StateStubState
Activity DiagramActivityDiagram
PartitionPartition
CallBehavior ActionCallBehaviorAction
TransitionTransition
Object NodeObjectNode
Sequence DiagramSequenceDiagram
Lifeline (Sequence, Communication Diagram)LifeLine
Message (Sequence Diagram)Message
Create MessageCreateMessage
Destroy MessageDestroyMessage
Reply MessageReturnMessage
Combined FragmentCombinedFragment
Interaction UseInteractionUse
StateInvariantStateInvariant
Communication DiagramCommunicationDiagram
Message (Communication Diagram)MessageCL
Component DiagramComponentDiagram
ComponentComponent
ArtifactArtifact
Deployment DiagramDeploymentDiagram
NodeNode
Node InstanceNodeInstance
Component InstanceComponentInstance
NoteComment
FlowchartFlowchart
Flow ElementFlowElement
Data Flow Diagram (DFD)DataFlowDiagram
External EntityExternalEntity
Data StoreDataStore
DataflowDataFlow
AnchorAnchor
ER DiagramERDiagram
ER EntityEREntity
ER AttributeERAttribute
DomainDomain
RelationshipERRelationship
Many to Many RelationshipManyToManyRelationship
SubtypeSubtype
CRUDCRUD
Requirement DiagramRequirementDiagram
Requirement TableRequirementTable
RequirementRequirement
TestCaseTestCase
Traceability MapTraceabilityMap
section divider

Import TaggedValues

  • Go to [Tools] – [Import User Defined TaggedValue]. The TaggedValues defined in astah_customproperty_def.properties are imported.
  • Once a project has imported the user-defined TaggedValues, they are added automatically to new models you create.