move the file from folder to another folder
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 08:01 AM
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:
But receive this error
In the stack trace i have:
So how can refer the document on which the advanced workflow run from the processdefinition ?
Thank you very much
Best regards
Alessio A.
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.
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2006 09:29 AM
We are all under time pressures.
A look at http://wiki.alfresco.com/wiki/WorkflowAdministration will reveal that a collection of documents are routed through the workflow.
The variable name you're after is bpm_package.
You can use it like so:
or:
Your next problem will be userhome is not specified. Refer to the url above.
A look at http://wiki.alfresco.com/wiki/WorkflowAdministration will reveal that a collection of documents are routed through the workflow.
The variable name you're after is bpm_package.
You can use it like so:
bpm_package.children[0].move(userhome);
or:
for (var i=0; ……) bpm_package.children[i]….
Your next problem will be userhome is not specified. Refer to the url above.
