Hello,
Thanks to the awesome Jeff Potts's tutorials i managed to create a simple workflow which starts when content is added to Draft folder and moves added document to Approved or Rejected folders accordingly to user task output.
Unfortunatelly, it throws an error and says that the 'document' is not found.
I'm using the newest version of Alfresco (6.0)
This is the fragment of my workflow.bpmn20.xml:
<serviceTask id="moveTask" name="Alfresco Move Script Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string>document.move("Accepted");</activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
Why document node has not been defined?
It might be better to use workflow_model variables, but 'userhome' node is working fine so why 'document' node is not?
Thanks in advance,
Mike
PS. Is there a way to simply debug Alfresco repo and list all workflow avaiable variables? (i know about workflow console but it does not seem to have such a capabilities)
Solved! Go to Solution.
If anyone had the same problem, here is a workaround:
bpm_package.children[0].move(DESTINATION_FOLDER);
Still, i do not understand why it the document node is not working.
If anyone had the same problem, here is a workaround:
bpm_package.children[0].move(DESTINATION_FOLDER);
Still, i do not understand why it the document node is not working.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.