BulkEaItemChange - Helmut-Ortmann/EnterpriseArchitect_hoTools GitHub Wiki
Bulk EA Element change
You want to change for a lot of EA Elements
- Stereotypes
- Tagged Values
- Properties
of selected
- Diagram Elements
- Browser Elements
- Browser Package
- Browser Package recursive
Procedure
- Update Settings.json, chapter '"BulkItems" :'
- Select
- Do, Bulk item change
- Do, Bulk item change Package recursive
- Run
Service / Toolbar
You can also define 10 Buttons for the Toolbar or Keys for the Services:
- Bulk change Elements (select Diagram Elements, Brower Elements, Browser Package)
- Bulk change Elements of Browser Package recursive
Pictures
Settings.json
You can change the rules to change EA Elements in Settings.json file:
The %appdata%Roaming\ho\hoReverse\Settings.json contains the rules to change elements and what to set.
Change Element Parameter
Name
The name in the Do-Menu.
Description
The tooltip in the Do-Menu
TypesCheck
A list of Types for which the changes to apply. Types and Stereotypes are AND combined.
StereotypesCheck
A list of Stereotypes for which the changes to apply. Types and Stereotypes are AND combined.
StereotypeApply
List of Stereotypes to set. You may use full names of the form:
- namespace::name
TaggedValueApply
List of tagged Values to set. You may use full names of the form:
- namespace::name
PropertyApply
List of EA Element properties like:
- "Priority=High"
Currently supported:
- Author
- Alias
- Complexity
- Difficulty
- GenFile
- Multiplicity
- Priority
- Status
- StyleEx
- Version
- Visibility
Example
// Bulk changes of EA elements:
// - Select Diagram Elements, Browser Elements, Browser Package ==> Check condition and change Elements according to apply rules
// - Browser Package (change Package recursive) ==> Check condition and change Elements according to apply rules
// - Services to put on a Button or on a Key
//
// TypesCheck: The EA-Types to apply the bulk change
// StereotypeCheck:The Stereotypes to apply the change
// StereotypesApply: Comma separated list of Stereotypes to set, you may use full qualified named like 'ZF_LE::LE Action'
// TaggedValuesApply: The Tagged Values to set, you may use full qualified named like 'ZF_LE::LE Action::Criticality' or simple 'Criticality'
// PropertiesApply:Properties in the form 'name=value'. Name: Difficulty, Efforts, GenFile, GenType, Multiplicity, Phase, Priority, RunState, Status, StyleEx, Tag,Version, Visibility
"BulkItems" :
[
{// Change Rules 1:
"Name" : "Test Action ASIL B",
"Description" : "Set Stereotype and ASIL B for Action",
"TypesCheck": ["Action"],
"StereotypesCheck" : [""],
"StereotypesApply" : ["ZF_LE::LE Action"],
"TaggedValuesApply" : [ {"Name" : "ZF_LE::LE Action::Criticality", "Value" : "ASIL B" } ],
"PropertiesApply" : []
},
{ // Change Rules 2:
"Name" : "Test Activity ASIL B",
"Description" : "Set Stereotype and ASIL B for Activity",
"TypesCheck": ["Activity"],
"StereotypesCheck" : [""],
"StereotypesApply" : ["ZF_LE::LE Activity"],
"TaggedValuesApply" : [ {"Name" : "ZF_LE::LE Activity::Criticality", "Value" : "ASIL B" } ],
"PropertiesApply" : []
},
{ // Change Rules 3:
"Name" : "Test Action ASIL C",
"Description" : "Set Stereotype and ASIL C for Action",
"TypesCheck": ["Action"],
"StereotypesCheck" : [""],
"StereotypesApply" : ["ZF_LE::LE Action"],
"TaggedValuesApply" : [ {"Name" : "ZF_LE::LE Action::Criticality", "Value" : "ASIL C" } ],
"PropertiesApply" : []
},
{ // Change Rules 4:
"Name" : "Test Activity ASIL C",
"Description" : "Set Stereotype and ASIL C for Activity",
"TypesCheck": ["Activity"],
"StereotypesCheck" : [""],
"StereotypesApply" : ["ZF_LE::LE Activity"],
"TaggedValuesApply" : [ {"Name" : "ZF_LE::LE Activity::Criticality", "Value" : "ASIL C" } ],
"PropertiesApply" : []
},
{ // Change Rules 5:
"Name" : "Test Requirements",
"Description" : "Set Prio to Medium and more, just test. Select Package, Browser Element or Diagram Element",
"TypesCheck": ["Requirement"],
"StereotypesCheck" : [""],
"StereotypesApply" : ["FunctionalRequirement"],
"TaggedValuesApply" : [ {"Name" : "EAREQ::FunctionalRequirement::priority", "Value" : "Medium" } ],
"PropertiesApply" : ["Difficulty=Medium","Status=Proposed","Keywords=Test", "Priority=High", "Version=1.1", "Phase=1.1", "Tag=MyTag", "Alias=MyAlias"]
},
{ // Change Rules 6:
"Name" : "Test FunctionalRequirements",
"Description" : "Set Prio to High and more, just test. Select Package, Browser Element or Diagram Element",
"TypesCheck": ["Requirement"],
"StereotypesCheck" : [""],
"StereotypesApply" : [""],
"TaggedValuesApply" : [ {"Name" : "", "Value" : "" } ],
"PropertiesApply" : ["Difficulty=High","Status=Approved","Keywords=Test", "Priority=High", "Version=2.1", "Phase=2.1", "Tag=MySecondTag", "Alias=MySecondAlias"]
}