My 2 jArchi scripts

Last year I wrote 2 jArchi scrips. Those scripts allow to add functionality to the Archimate toolkit. (The Archimate toolkit is a a tool which allow Business and IT Architects to model the Business/Enterprise/IT architectutes using the Archimate notation.)

The scripts are tagged #jarchi on Github. (See also github/jfdeclercq)

I always need to search for my own scripts so I post them here also.

Script to add a note to a diagram:

 * New Archi Script
console.log("AddNote Started !");
//var date = new Date();
//var note = archimateView.createObject("note", 10, 200, -1, -1);
//note.setText("This is a note.\n\nHello World!");
//var note = visualObject.createObject("note", 10, 200, -1, -1);

// Get the first view in the current selection
var view = selection.filter("archimate-diagram-model").first();
// Get current date
var currentDate = new Date();
// Create a new note and set its text
var note = view.createObject("note", 10, 10, 300, -1);
note.text = + "\n" + currentDate.toString() +"\n" + "Jean-Francois Declercq";
note.fillColor = "#e2e2be";
console.log("Note added to " +;

Script to export a diagram as picture with the name of the view as proposed image name:

//Export View as image (PNG)  with date and diagram name in filename.

// Get the first view in the model
//var view = $("view").first();
var view = selection.filter("archimate-diagram-model").first();
// Get the Base64 bytes of the view in PNG format. Can use "PNG", "BMP", "JPG" or "GIF"
// Options are scale (1 - 4) and margin (pixel value)
var bytes = $.model.renderViewAsBase64(view, "JPG", {scale: 1, margin: 20});

var date = new Date();

// Ask for a file name
var fileName = window.promptSaveFile( { title: "Save View", filterExtensions: [ "*.jpg" ], fileName: ""+ date.toISOString().replace(":","").replace("T","-").slice(0,15)+ "-" + + ".jpg" } );
if(fileName) {
    // Write to file
    $.fs.writeFile(fileName, bytes, "BASE64");

Risk Management and ROAM

This nice article on ROAM explains the acronym to be used to manage a risk:.

Resolved The risk can be completely or partially avoided. If partial resolution, there is a residual risk
Owned The risk is not fully resolved/accepted/mitigated. Someone is assigned to work on it.
Accepted We accept to take the (residual) risk.
Mitigated Mitigation is what we will do if the risk happens in order to reduce the impact

Demand Manager @ PV Group

From January 1st 2017 until Sept 15th 2017, I worked as “IT Demand Excellence Manager” at PVGroup.

I managed a team of about 5 Enterprise IT architects and 5 Domain Experts (Non-Life, Life, Claims, Employee Benefits and Front).

This was a very good team to aim at the description of the complete Enterprise Architecture : from Business Processes to Technical Infrastructure.

Together we developed an interesting “Enterprise Architecture” process with several activities:

  • Intake
  • Production
  • Review
  • Validation
  • Harvesting

This was the ITDEME  (IT Demand Excellence) process.

In addition we were busy with building some new digital foundations : ESB, ECM, IAM……

Strategies for your enterprise architecture: people or documentation ?

Here is an interesting thought of a colleague yesterday (Thomas Vermassen – Lead Architect ORES) on documenting IT systems:

You have basically two strategies for keeping your Enterprise Architecture knowledge under control.

The first one is to capitalize on people. If your organization is stable enough you can assign clear responsibilities and you should be able to find the right information by finding the right person.

The second one is to capitalize on documentation. Through deliverables you make sure everything is described as it should be. This is most suitable if you have a high collaborators turnover like when you work with a lot of sub-contractors.

The ideal world is probably to have both.

I’m a deliverable minded person and I so I tend to prefer the second one. I value information sharing as it often avoids job protection and silo thinking. The notion of deliverable is also linked to another value that I like : personal contribution.

Also when the architecture is complex I don’t see how you can just book a meeting with someone in oder for him to explain you the 100 business processes in scope. That must be why clever people write books……


In IT solution architecture, Microsoft  uses the PASSME acronym for Non Functional Requirements (NFRs):
  • Performance
  • Availability
  • Scalability
  • Security
  • Maintainability
  • Extensibility

Why I didn’t buy a new MacBook Pro

In 2010 I left IBM and I started as a freelancer.

I needed a new computer.

A friend of mine had a MacBook Pro. He has always been an excellent ITer so I decided to follow his advise and give Mac a try. I bought a MacBook Pro. The best one. The most expensive one.

Was it a better experience than Windows ? Not really. My Mac’s performance decreased with time just like it would with a windows PC.

I even had regression: very annoying crashes due to the GPU switches. I has to install freeware (GfxCardStatus – to be able to use my mac.

When the MacBook pro disk gets full the performance gets really very bad making the computer unusable.

At the store they told me the only solution was to format and re-install… Last week I decided to re-install the OS from the original CD. I really hesitated to try Ubuntu on MacBook Pro. Before I upgraded to “El Captain” I checked if my GPU problem was still there and in fact it had disappeared ! I could connect to an external display which was impossible since years… So I decided to report to Apple.

Here is what I sent to Apple as a comment to the crash report:

GPU switch crashes my Macbook Pro 2010.  For example when connecting to external monitor.

This week I reinstalled with the original CD OSX 10.6.3 and I could extend my desktop to a second screen. After OSX updates it’s now crashing again.

I conclude that it’s a software problem and that Apple OSX suffers from regression for managing the GPU.

I’m obliged to play with GfxCardStatus to maintain my mac up and running in a decent way.

Many software that are initially designed on windows don’t work well or just don’t work on Mac : MS Office, Sparx EA, MAMP, Java, Flash…

So finally :

  • The overall MacBook experience is not better
  • I have much more freedom and choice on Android and Windows
  • You have less viruses on Mac Vs Windows but  can install Ubuntu or boot Linux on any PC.
  • Apple is 50% more expensive

In 2010 I had also bought an iPad 1. The hardware is still ok but it has also become unusable : impossible to update most of the apps.

Bye bye Apple.…