<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: not able to run advanced workflow using api in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104516#M72999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when I tried to print out the path of the node, I do get value returned correctly, therefore I'm sure I do get the node being returned correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how I would pass the node into workflow.execute function?&amp;nbsp; Should I pass the whole node like workflow.execute(node) or should I pass in the path such as workflow.execute(note.path) or should it be something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 14:40:58 GMT</pubDate>
    <dc:creator>kimquy76</dc:creator>
    <dc:date>2008-01-14T14:40:58Z</dc:date>
    <item>
      <title>not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104512#M72995</link>
      <description>I try to run a custom worflow using alfresco api (not javascript). I have a parmeter bpm:assignees (multiple assignees) that i m not able to set . This is my code:Action workflow = actionService.create("start-workflow");workflow.setParameterValue(workflowName ,"jbpm$wf:myworkflow");workflow.setParam</description>
      <pubDate>Thu, 26 Jul 2007 18:30:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104512#M72995</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2007-07-26T18:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104513#M72996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What error are you getting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:38:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104513#M72996</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-07-27T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104514#M72997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to do the samething and keep getting error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var workflow = actions.create("start-workflow"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.parameters.workflowName = "jbpm$wf:submit"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.parameters["bpm:workflowDescription"] = "blah"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; workflow.parameters["bpm:initiator"] = "user1";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.parameters["bpm:assignee"] = "user2";&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var futureDate = new Date(); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; futureDate.setDate(futureDate.getDate() + 7); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; workflow.parameters["bpm:workflowDueDate"] = futureDate; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var store = avm.lookupStore(args.q);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var node = store.lookupNode("/ROOT/childfolder/" + args.file);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; workflow.execute(node);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the error I'm getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.service.cmr.repository.InvalidNodeRefException - Node does not exist&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 21:54:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104514#M72997</guid>
      <dc:creator>kimquy76</dc:creator>
      <dc:date>2008-01-11T21:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104515#M72998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you trying to launch a workflow on a using a Webscript and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var node = store.lookupNode("/ROOT/childfolder/" + args.file); is not returning a node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should use the JavaScript debugger to walk through the code and test that args.q and args.file are being passed correctly and then check that the store and node are being returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can enable the debugger from the Web Script Index page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;YOURHOST&amp;gt;:8080/alfresco/service/index&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note this will open the debugger on the server, you therefore need to be on the server to work with it. Please see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Alfresco_Javascript_Debugger" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Alfresco_Javascript_Debugger&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 17:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104515#M72998</guid>
      <dc:creator>mikef</dc:creator>
      <dc:date>2008-01-12T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104516#M72999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when I tried to print out the path of the node, I do get value returned correctly, therefore I'm sure I do get the node being returned correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know how I would pass the node into workflow.execute function?&amp;nbsp; Should I pass the whole node like workflow.execute(node) or should I pass in the path such as workflow.execute(note.path) or should it be something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 14:40:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104516#M72999</guid>
      <dc:creator>kimquy76</dc:creator>
      <dc:date>2008-01-14T14:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104517#M73000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've tried workflow.execute(node.nodeRef), and get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.service.cmr.repository.InvalidNodeRefException - Node does not exist: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would a node does not exist, but its path is availalble?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 14:56:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104517#M73000</guid>
      <dc:creator>kimquy76</dc:creator>
      <dc:date>2008-01-14T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: not able to run advanced workflow using api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104518#M73001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might check the source of following class org.alfresco.repo.workflow.StartWorkflowActionExecuter (Repository project) as an example of how to properly start advanced workflow from java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 15:39:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/not-able-to-run-advanced-workflow-using-api/m-p/104518#M73001</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-01-14T15:39:49Z</dc:date>
    </item>
  </channel>
</rss>

