-
Notifications
You must be signed in to change notification settings - Fork 41
Elements
Phil Beauvoir edited this page Feb 23, 2024
·
7 revisions
Note
Attributes and methods described in this section are available only on ArchiMate Elements
.junctionType
.merge
.specialization
Applies only to Junctions.
Get/set the type of a Junction.
Allowed types - "and", "or"
// Getters
var type = junction.getJunctionType();
var type = junction.junctionType;
var type = junction.attr("junction-type");
// Setters
junction.setJunctionType("and");
junction.junctionType = "and";
junction.attr("junction-type", "or");Merge this element and another element.
element.merge(otherElement);- Existing diagram instances of the other ArchiMate element will be replaced with this element
- Elements have to be of the same type
- Documentation of the other element is appended to this element's documentation
- Properties of the other element are appended to this element's properties
- All source and target relationships of the other element are set to this element
- The other element is not deleted
Get/set the specialization for an object or concept. The specialization should have been created first.
var specialization = model.createSpecialization("Oscar", "business-actor", image);
object.specialization = "Oscar";
var specializationName = object.specialization;Note - a specialization is assigned to a concept by its name, not the Specialization object.
If you value and use Archi please consider making a donation. Thanks!