Skip to content

Instantly share code, notes, and snippets.

/**
*
* jArchi Library to manage Archi visual relationships in views
*
* Author: Xavier Mayeur
* Version: 1.1
* Date: May 2022
*
*
* Remarks: the code has been written to work with GraalVM, not Nashorn framework.
/*
* This script parses the JSONschema from data-object concept with a property 'JSONschema'
* JSON schema is read from file and stored in the JSONschema property
* It replaces the data-object title, documentation by the schema title and description
* It adds the schema properties to the data object
* It finally format the object to display it with its attributes
*
* Source: https://www.eaprincipals.com/content/data-modeling-archi-part-2-adding-entity-attributes
*/
@xmayeur
xmayeur / RelSshape.ajs
Last active November 24, 2019 09:25
#jarchi - this script transforms a visual relationship into an orthogonal S-shape one
/*
* Author X. MAYEUR
*
* 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 create S-shape ortho connector
*/
// console.show()
@xmayeur
xmayeur / RelUshape.ajs
Last active November 24, 2019 09:25
#jarchi - this script transforms a visual relationship as a orthogonal U-shape one
/*
* Author X. Mayeur
*
* 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 create U-shape ortho connector
*/
// console.show()
@xmayeur
xmayeur / RelLshape.Ajs
Last active June 13, 2023 14:52
#jarchi - This script modifies a visual relationship to create an orthogonal L-shape
/*
* Author X. Mayeur
*
* 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 create L-shape ortho connector
*/
console.show()