TaggedValue is a property and value you can add to models. This is supported in Astah Pro edition only.


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

With this sample, when “stereotype0” is added to a Class, a “cretor1” 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.

section divider

TaggedValue Format

Use this format to define TaggedValue name, Target Models types, Target Stereotype, Default Value, and definition in the file.

Object

Key

 
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
Only one stereotype can be set.
This is optional.
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.