AnsweredAssumed Answered

Importing js scripts inside workflow js?

Question asked by msvoren on Apr 7, 2009
Hi,
Is there any way i can import js files inside workflow process definition?

        <transition name="todo" to="gothere" >
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <runas>admin</runas>
      <script>
         <import resource="/Company Home/Data Dictionary/Scripts/wf_library.js">
         bpm_package.children[0].move(dest);
      </script>
         </action>
   </transition>

With "import" part, alfresco fails to load processdefinition file.
Any tips on how to import this properly?

Outcomes