We have alfresco workflow with lot of script task. Can we keep this script outside in any js file within different function and just function call within workflow ? Basically the idea is keep business logic outside
from workflow.
To keep the logic outside the workflow you could use service tasks. But a script task is also possible. And you can invoke external script functions like you do in other webscripts etc.