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 astah_customproperty_def.properties file.
  2. Save this file in USERHOME/.astah/professional directory.
  3. Define TaggedValues in this file as 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_002.name=creator3
tag.id_002.target=Object
tag.id_002.stereotype=
tag.id_002.defaultvalue=
tag.id_002.definition=

With this sample, when “stereotype0” is added to a Class, a “creator1” TaggedValue named “Dendy” will be added to the Class. And when “stereotype1” is added to UseCases and Packages, a “creator2” TaggedValue named “Tony” will be added to those models.
You can see TaggedValues in the [TaggedValue] tab in the models’ property view.
When you don’ have values for all the keys, make it empty. You still need the key in the file to import the property file.
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.

Object

Key

Value

Nametag.xxx.name
Target Modeltag.xxx.target
This is a required property.
Please refer to the String list in a table below. You can add multiple target models. Astah fails to import if it contains invalid strings.
Target Stereotypetag.xxx.stereotype
Optional
You cannot have multiple Stereotypes.
Default Valuetag.xxx.defaultvalue
Optional
Definitiontag.xxx.definition
Optional

Model Name

String 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].
    Defined TaggedValues in the astah_customproperty_def.properties file would be imported.
  • Once the project file has imported User Defined TaggeValue, the TaggeValue will be added automatically when creating new models.