AnsweredAssumed Answered

Code reuse in jBPM action scripts

Question asked by bedag-moo on Feb 4, 2008
Latest reply on Feb 5, 2008 by bedag-moo
Aside from using action references, there appears to be no way to reuse code in action scripts? In particular, I can not call a JavaScript function because there is no place I can put the function definition that would be visible to all action scripts? (importing the definition from a file in the classpath does not work, as the xml-like nature of Alfresco's JavaScript import disturbs xml-parsing the processdefinition.)

I ask because I am tasked with informing a workflow's initiator about every step of the workflow by e-mail. There are 5 such steps, and the e-mails differ only in subject and text.

Outcomes