AnsweredAssumed Answered

move the file from folder to another folder

Question asked by alessioa. on Nov 9, 2006
Latest reply on Nov 9, 2006 by davidc
Hi to all the folks,
sorry, i know in these days i will post often but i have few time to complete the work i begin and ask on the forum is faster for solving some problems …
I have a jbpm workflow very similar the adhoc process embedded into alfresco, the difference is that when adhoc task completed i need the file on which the advanced workflow running is moved from its folder to another folder (for example from pending to completed).
In the process definition i put this code:
<transition name="" to="completed">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           <script>
                 document.move(userhome);
           </script>
         </action>
      </transition>

But receive this error
Failed to signal transition '' from workflow task 'jbpm$13'

In the stack trace i have:
[….]
Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "document" is not defined
[…]

So how can refer the document on which the advanced workflow run from the processdefinition ?

Thank you very much
Best regards
Alessio A.

Outcomes