Skip to content
Phil Beauvoir edited this page Feb 23, 2024 · 4 revisions

Note

Attributes and methods described in this section are available only on ArchiMate Elements

Contents

.junctionType
.merge
.specialization


.junctionType

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()

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

.specialization

Get/set the specialization for an element or visual object. The specialization should have been created first. See .createSpecialization()

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.