cancel
Showing results for 
Search instead for 
Did you mean: 

Define method

buurd
Champ in-the-making
Champ in-the-making
Hi!

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.

Best regards
Roland
2 REPLIES 2

zaizi
Champ in-the-making
Champ in-the-making
Write a java class that extends org.alfresco.repo.processor.BaseProcessorExtension to provide the functionality and configure it in. See http://forums.alfresco.com/en/viewtopic.php?f=4&t=18010.

Ainga

buurd
Champ in-the-making
Champ in-the-making
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…
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.