How can I define a javascript-method in a workflow that all tasks in my workflow can use. My usecase is that i need to log every transition and my current solution is very ugly repeting the same lines of javascript-code for every task. The only thing that isn't repeted is the property to be written.
If I only had a system that I could stop when I wanted to. Waiting for a servicewindow is a good reason to not use java in Alfresco. But in the face of the evil code duplication I guess I don't have a choise…