The future of Alfresco’s Community – my thoughts

Update June 14th 2014

It seems that there is quite some interests in the general “Future of Alfresco’s community”-topic. There are already 20 comments here & some more on twitter, linkedIn & Co.

I would be a pity if this is just another discussion that does not lead to any acting. So my proposal:

Let’s do a workshop at the day before London Summit (or even SF if it suit your needs) this year with participations from the Community, Alfresco’s Community Team, Alfresco Engineering & also Alfresco Management if they like to join:

  • Collect Ideas about how to give the Community a boost (like fast-track Contributions, a Aikau widget/plugins system, docs/ guides & tutorials …)
  • Goal is to have a concrete “Community enablement Action Plan” for the next 6 or 12 months


Main post

Jeff Potts recently announced that he is going to leave Alfresco as Chief Community Officer. From my point of view, Jeff was a wonderful “beekeeper” & pushed the Alfresco Community (I’m talking of the Community here & not Alfresco Community Edition!) forward. We had some great Alfresco Devcons that where mainly organized by Jeff – another big “Thank You” from here!

But, the Alfresco company has changed heavily in the last 1 or 2 years. It’s becoming a more & more Sales & Profit (+ IPO-) oriented software vendor like every of their competitors. Already the 1st Alfresco Summit 2013 – as successor of the DevCon –  has shown that the focus has changed al lot.

Don’t get me wrong, It’s perfectly OK that Alfresco as company likes to grow & gain a lot of profit & money, but as a Community member I’m more & more getting the feeling that they forget about their Open (Source) origin. Alfresco should beware of becoming a “sales monster”.

So, as Jeff left Alfresco there is no more a strong & official “Community believer” working for Alfresco. Of course, there are al lot of high talented engineers working for Alfresco in different roles (Engineering, Product Management, PreSales, Support…) that will still push Alfresco to be Open (not only Open Source), but there is an opportunity to setup a “new community network”:

I don’t really like the job title “Evangelist”, but IMHO that’s what Alfresco need to do to work on their Openness:

  • Get some Alfresco community members (should have deep Alfresco knowledge) on their payroll & give them the freedom to work on dedicated community projects (that maybe will be contributed to the core afterwards) – Thing about an approach like share extras + more repository oriented addons like ContentStore encryption, oAuth2-provider, a Dropbox integration (+ prototyping some new ideas like a task board and suchlike)
  • Let them do more tech-driven marketing like
    • Speak on conferences
    • Organize meetups (not Partner-oriented marketing events)
    • Organize Workshops, Hackathons etc.
  • Focus on the local community as things are completely different between US & EMEA or DACH in special
  • These guys should also be able to support Alfresco Consulting or PreSales, but not as their main job

What do you think – is a team of “Alfresco Evangelists” the future of Alfresco’s Community team to strengthen its Openess & technical marketing and visibility?


Waitara – a MEAN-stack kanban-board prototype

Too long to read?

Sorry, but I can’t tell the story in 3min…maybe in 140 chars…

Take a look at these screencast first, grab a coffee & get a grip on yourself!

Screencast I & Screencast II

Why? What?

A few months ago, I decided to work only 3 days a week in my daily job at fme as projects in the ECM world can get boring … I wanted to learn something new, I wanted to be creative & I wanted to do it the way I like. While traveling around in New Zealand at end of last year I’ve decided to implement sth. with AngularJS (as developing the fme file Exchange platform with Angular was one of the most enjoyable projects last year). And as fan of kanban-boards I decided that developing such a board would be a nice project.

Constraints 😉

  • no endless server restarts
  • no IE <10 support
  • no business case

Having Fun while coding

Earlier this year, I started to built & choose my environment, tools etc. I ended up with the following ones:

  • git & bitbucket:
    • git – well, why not?
    • bitbucket – I wanted to keep the code in a private repo (in the first instance), it’s free there
  • brackets: To try something different … I liked it, but IntelliJ Angular support is *interesting*, someone like to sponsor a WebStorm license ;-)?
  • ngTailor – I’ve tried yeoman before & especially otb support for browser-sync & Sass is nice. You may argue that gulp is better than grunt and that bower can drive you crazy, but I like them.
  • Sass – I wanted to learn it and I can definitely say that I should have used it before!
  • Twitter Bootstrap: I’m not one these CSS-star-hackers – so I’m very happy with bootstrap. It saves time & is clean, modern and plays nice with angular & angular-ui. Easily customizable via less or sass – I’ve used the free Bootswatch Yeti theme

I’ve extensively used existing Angular Modules, e.g.:

  • angular-translate:THE i18n & l10n module for your Angular app – a must have
  • ui-bootstrap: native AngularJS directives based on Bootstrap’s markup and CSS – a must have if you use Bootstrap in an Angular app.
  • angular-growl: growl like notifications for angularJS projects, using bootstrap alert classes. Simple & useful.
  • Angular-xeditable: edit-in-place elements for Angular. Simply awesome!
  • textAngular: A Lightweight, Two-Way-Bound  Angular.js HTML-Editor. Sweet!

OK, that’s the frontend part, but what about the backend? Well, I considered to use Alfresco & Alfresco WebScripts, but wait …. that’s my daily job! After a few hours on google some blogs & slide decks I came across deployd. Deployd is based on NodeJS & MongoDB. It’s a rapid API development framework  and offers an easy & very quick approach to define an API for *resources*. It’s now an integral part of my tool box for rapid prototyping. I don’t think it should be use in production. Sadly, it is no more in active development, It’s like a Grizzly bear, hibernating, dreaming about the spring – Upload, convert, store and embed documents, images, audio and video files with ease

I’ve started with an S3 file store first, but then my good fellows in hanover launched & as I wanted to be able to upload, embed & preview documents -> bull’s eye. 2 hours later my app had an online preview for office documents, images, videos etc.

Ok ok…after 2 hours it was working but I was calculating my SHA1 keys via CryptoJS in the browser. Thus , I started to develop my own deployd-module for all these signature tasks to keep my Application Secret on the server side – quite a bumpy road but I finally made it & learned some new NodeJS internals.

Let’s ship

Ok, it’s running locally. Nice … let’s ship the prototype. NodeJS + MongoDB – well there are plenty of possibilities. I choosed heroku.

Here it is (demo credentials jan:jan):

Disclaimer: all your data will be *public* incl. your documents. My heroku plan is limited as well as my space (5GB). The app may will crash when to many people are trying to modify the same data. Delete buttons aren’t implemented yet. It is really just a prototype!

What next?

I don’t know…I’m thinking of using this prototype & go some steps further:

  • improve the kanban-board stuff
  • leverage websockets
  • add a real activity stream
  • use another backend (e.g. Alfresco) & add more capabilities to built a full feature team collaboration solution

W00t! You’ve an idea – it’s time to ping me on twitter … I’m listening 😉

AngularJS + CMIS 1.1 – a simple CMIS Repo browser

I was invited to do a talk at Alfresco’s Meet the Experts in Hamburg a weeks ago. As I had done a few things with AngularJS ago (e.g. the fme File Exchange Platform) I had decided to give a talk about building SPAs for Alfresco with AngularJS.

The slides of my talk are available here (sorry in german only).

I decided to implement a little app the day before the meetup to have a simple in-place to explain some of Angular’s features like routing, directives & also to show the strength of modern web developer tools like yeoman. As the app should be simple but also using an Alfresco repository as backend I decided to implement a simple Repository browser leveraging the CMIS 1.1 browser binding & Alfresco’s Demo Repo (


As mentioned above the demo app uses the the following libs/tools:

You can try the app here: (login is admin/admin as is used as repo).

The Code is available on github:

CMIS Browser using Angular Material

I’ve played around a little bit with angular-material ( & implemented another CMIS-Browser demo that supports Alfresco& Nuxeo.

Code is on github:

Demo is available here: (Credentials alfresco is admin:admin, nuxeo is Administrator:Administrator):



Implementing a file exchange platform with Alfresco & angularJS

Exchanging your files with external users like partners, agencies etc. is still a challenge for enterprise IT departments. Employees will use emails or cloud-based file sharing services like dropbox & Co if the external user has no access to the internal  IT systems.

Sharing files & collaborating via emails leads to a bunch of problems and inefficient processes that have been already discussed a thousand times.

The usage of cloud-based file sharing services will put your CIO in panic – at least if we’re talking about germany & europe & sensitive information like product drawings, price-lists or your latest R&D project data.

One way out is to run an Alfresco Share instance in the DMZ … but – at least from my point of view – Alfresco Share is too complex for such a use case. Yes, you can use it and strip it down, but I wanted to get a much more simple UI … and I’ve to admit that I wanted to promote the single page webapp paradigm 😉

Inspired by Laurens Alfresco Vault approach ( and my experiences with bootstrap and jQuery my choice had been made: Usage of a MVC/MVM framework is a MUST. Thus, I did some research & some basis prototyping and decided to implement the app using AngularJS, Bootstrap, AngularUI-Bootstrap & jQuery (file upload) plus some nice things like font-awesome, modernizr & momentJS.

I don’t have mentioned that the decision regarding the backend was set in stone: Alfresco – big surprise, he 😉
ASCII architecture diagramm:

Solution – End-user perspective

Disclaimer: The project itself is not available under a Open Source License – it’s a commercial solution offering by my current employer (fme).

From a end-user perspective the app contains of thre main components: Registration, New File Collection & My File Collections.


  1. Provide account information incl. contact person ( employee who has to approve the registration)
  2. e-mail based account verification
  3. e-mail based registration approval for the contact person

New File Collection – upload & share a collection of files (can be restricted to a group of users):

  • Name of the File Collection
  • Users to share with (of course with typeahead)
  • Files to Share (multi files & drag&drop)

My File Collection:

  • browse your file collections & navigate into a file collection
  • Actions like update existing files & upload new files, delete & download
  • manage (Sub-)folders
  • manage file collection expiration

Solution – developer perspective

Developing the solution with my colleagues was fun. Why? because we were able to boost our developing velocity to the next level – I’ll give a quick example: a typeahead-control to add users to a file collection :

Repo: We just use Alfresco’s api/people?filter= WebScript


  1. add a new Angular Service to be injected in our Controller:
  2.  controller:
  3.  template:

Some other quick examples:

Our FileCollectionService based on ng-resource & a custom REST-API (WebScripts):

A custom directive to render the list of items in a file collection based on their content type (the templates themselves just contain a bit html markup & expressions like {{}} to show the name of the document or folder):

You’d like to filter & sort your item list? Just add a few $filters:

Long story short

Alfresco’s WebScript API is a fantastic single page webapp enabler – You can easily leverage the existing API or add your own specific API. These WebScripts play nicely with Angular’s $resource-service.

If you’re fan of testable code, dependency injection, data binding & much more then take a look at angularJS – more than ever if you’re interested in reusable UI components (aka directives)!

Setting user preferences via JavaScript Console

While upgrading a huge Alfresco system from 3.4 to 4.0 I was asked if it is possible to collapse all sections (excepting the actions) on the document-details page.

The state of these twisters is saved for each user in his preferences (preference: org.alfresco.share.twisters.collapsed), so I wrote a little script using the JavaScript Console:

Getting Alfresco Content Types via JavaScript

I was asked if it is possible to access Alfresco’s DictionaryService via JavaScript…Well, not directly using an offical Alfresco JS Root-Object, but it isn’t a big task if you use some functions of the embedded Rhine engine (& of course Florian’s famous Alfresco JavaScript Console

Monitoring Alfresco with New Relic

I came across New Relic a few days ago & decided after a few minutes that I HAVE to try out that cool.

1. Step – the Basics

My first step, adding a New relic agent to a tomcat server that runs Alfresco was pretty easy:

  1. SignUp to New Relic
  2. Download New Relics jar-Files
  3. Deploy them as described here:

After some minutes I was able to use the New Relic WebClient & try out some basic application monitoring features like:

  • HTTP Response Times
  • SQL Response Times
  • JVM Monitoring (CPU, Heap, GC etc.)
  • Transaction Traces etc

2. Step – Real User Monitoring

But the most impressive feature is their “real user monitoring” – They monitor the end user browser performance by automatically adding a small JS snippet to each HTML page. If you’ve JSPs that may be done automatically, but iId like to monitor an Alfresco Share application.


1st: A custom Freemarker TemplateMethod to be used within Share (or any other SURF webapp):

2nd: Spring Bean definition web-extension/custom-newrelic-context.xml:

3rd: Add ${newrelic.browserTimingHeader} & ${newrelic.browserTimingFooter} alfresco/templates/org/alfresco/include/alfresco-template.ftl

–> You’ll get some nice charts like these:

Alfresco Share datalist extensions – now Open Source!

I’ve developed some extensions to the default Alfresco Share datalists some months ago. My former blog post ( gained a lot of interests at Alfresco & also in the Alfresco Community.

As part of my discussions with fme’s customer and Alfresco regarding a contribution of this extensions one of Alfresco’s Solution Engineers did a code review and was very satisfied with it:!/rjmfernandes/status/136437605981097985

Finally fme’s customer agreed to make this extensions available under Open Source (Apache License) here:

This gives the whole Alfresco community the opportunity to use & improve the extensions we made. So, please feel free to contact me if you like to contribute back some additional features or if you like to sponsor the further development (e.g. an upgrade to 4.0).

Alfresco Share Cluster – tweaks

I recently faced an upgrade from a single node Alfresco into a high available (HA) configuration (1 Load-Balancer, 2 Alfresco Nodes, 2 Share Nodes) using Alfresco Enterprise 3.4.2 (including kerberos SSO etc.).

The Basic steps (@see Kevs blog post went well & my new system performed well. But then I realized that changes to a Share dashboard weren’t visible on the other Share instance. I forget to add the following configuration (“custom-slingshot-application-context.xml”):

But now my Share instances were very slow (dashboard layout changes weren’t visible on the other Share instance either). Loading a dashboard in the browser took up to 8s – without that cache disabling ~2s. Thus I made some tests with a vanilla 3.4.2 & 3.4.6 system and observed the same behavior (not as slow because I didn’t created a few hundred sites & >2000 users in my local system).

First of all I backported the 4.0.c org.springframework.extensions.webscripts.RequestCachingConnector that improved the whole Share performance a little bit. Afterwards I thought about the situations when a cached SURF object must be invalidated and reloaded via its remote store. AFAIK the only moment is when a dashboard configuration is changed on another Share instance. As my configuration only incorporates 2 Share instances I developed the follwing simple tweak to notify the other Share instance if a dashboard config is changed & the Surf object cache should be invalidated:

    re-enable caching for component & pages

  1. add a new HTTP endpoint (used to notify the other Share instance via HTTP if the SURF caches should be invalidated):

  2. append the following lines to site-webscripts\org\alfresco\components\dashboard\

  3. added a new Java-backed webscript (Share) mapped to URI api/fme/cache with following executeImpl():

The following things should be kept in mind:

  • this scenario only works with 2 Share instances & has to be enhanced if you’ve more than 2 nodes
  • api/fme/cache is not secured via an authenticator …

I’ll fill (& link) a detailed jira issue shortly.