I get this error when i use "workflow" in the .js file
org.mozilla.javascript.EcmaError - ReferenceError: "workflow" is not defined. (AlfrescoScript#3)
but the reference to same object from the template file works fine.
anyone has idea what the problem is
Thanks