This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the Archi CSV export elements as labeled nodes | |
using periodic commit | |
load csv with headers from "file:/elements.csv" as e | |
call apoc.create.node([e.Type], {name: e.Name, doc: e.Documentation, uid: e.ID}) | |
yield node | |
return count(*); | |
// Create the uid indexes for my main objects | |
create index on :ApplicationComponent(uid); | |
create index on :ApplicationFunction(uid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Export View to Markdown | |
* | |
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
* | |
* Markdown - https://www.markdownguide.org/ | |
* | |
* Version 2: Updated to support Diagram Groups | |
* Version 2.1: Add check for Selected View | |
* Version 2.2: Change to regex, added date of export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RemoveBentpoints | |
// | |
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/ | |
// | |
// This script takes a selection of visual objects as input, filter it to keep only relationships and remove all their bendpoints | |
// | |
// (c) 2018 Jean-Baptiste Sarrodie | |
$(selection).filter("relationship").filter(function(o) {return o.view}).each(function(o) { | |
var view = o.view; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml Archi Usage | |
!include archi-seq.puml | |
title Archi Print Usage | |
' Define Elements | |
$businessActor("Architect","architect") | |
$applicationComponent("Archi","archi") | |
$applicationFunction("Update\nModel","update") | |
$applicationFunction("Print\nView","print") | |
$systemSoftware("Windows\nPrint\nService","windowsPrint") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
Script Name: Quality Check - UX Relations | |
Script Description: | |
A jArchi script for use on Archi tool models. | |
Using a specific view called ConceptDefinition to represent a cut down version of the full ArchiMate model, | |
check all the model relationships to flag up any unexpected ones. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getDiagramComponents = function(v, e) { | |
return $(v).find("concept").filter(function(o) { | |
return o.concept.id == e.id; | |
}); | |
} | |
gap = $("element").filter(function(obj) { | |
return obj.prop("GAP") == "true" ? true : false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sourced: https://gist.github.com/rich-biker/9a3c86c5a576ce0d8639856f3ee81651 | |
Script: Documentation Generation | |
Purpose: To generate output based on a driving view | |
Author: Richard Heward - Tame Blue Lion Ltd | |
This generates a markdown file with the embedded images and text based upon a driving view in Archi of groups that trigger each other and embedded views. | |
See my blog for a more detailed explaination. https://www.tamebluelion.co.uk/blog/archi-documentation |