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">
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,
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)