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.