cancel
Showing results for 
Search instead for 
Did you mean: 

Create Task for simple workflow

kiran_428
Champ in-the-making
Champ in-the-making
Hi, I am trying create a simple work flow for moving documents from one space to another space for approval using a rule .But I am not able to show this a task in the dash board.Can any one help me?

I am able to get this by creating advanced work flow , but I just wanted to do it using a rule.
23 REPLIES 23

tarl
Champ in-the-making
Champ in-the-making
That was a good idea but it don't work I get this error:
A system error happened during the operation: 10030003 Failed to execute script 'workspace://SpacesStore/f3f510e3-37b5-44fa-b1a9-ab5f1bd3a44d': 10030002 TypeError: Cannot find function createElement in object Node Type: {http://www.alfresco.org/model/content/1.0}content, Node Aspects: [{http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/content/1.0}titled, {http://www.alfresco.org/model/content/1.0}author]. (workspace://SpacesStore/f3f510e3-37b5-44fa-b1a9-ab5f1bd3a44d#7)
I think it is because the script is executed by the server and not by the browser… it is not regular javascript API. What do you think?

witho
Champ on-the-rise
Champ on-the-rise
You are right, the problem is tha the script is being executed by the server and the element "document" is an Alfresco document and not the page that is being executed by the browser.

You could try to look how to load dojo from a javascript. If I figure out a better solution I'll make you know.

kashyap_kk
Champ in-the-making
Champ in-the-making
i am have seen one of your process definations on another post
actually i wanted to ask that var dest = companyhome.childByNamePath(bpm_aproveDestination);
what should i pass actually in javascript workflow.parameters["bpm:aproveDestination"] = "Aproved";
where Approved is foldre in company home am i passing right path.because when i approve doc it dosent get moved to this folder

thanks

kossinus
Champ in-the-making
Champ in-the-making
hi Kiran,
i want to moving documents from one space for another space by creating advanced workflow.
Regards