cancel
Showing results for 
Search instead for 
Did you mean: 

How to include javascript in processdefinition file

sanatmastan
Champ in-the-making
Champ in-the-making
HI,

can anyone help me how to include external javascript file in processdefinition file and reuse existing js code?

Thanks
Sanat.
10 REPLIES 10

sanatmastan
Champ in-the-making
Champ in-the-making
Hi,

The following script is not an Alfresco javascript, it is Beanshell scripting.
<script>
System.out.println("———- Process End————");
</script>



the javascript file that we including will be processed by AlfrescoJavaScript Action class, where as processing beanshell scripting is different.
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
  ……..
</script>
</action>

So we can not include System.out.println in the included javascript file.