<?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: Workflow execute needs nodeRef? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228062#M181192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a little up to know if someone has make progress on this problem ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 12:17:08 GMT</pubDate>
    <dc:creator>jc09</dc:creator>
    <dc:date>2011-09-21T12:17:08Z</dc:date>
    <item>
      <title>Workflow execute needs nodeRef?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228060#M181190</link>
      <description>I'm trying to start my custom workflow from JavaScript with the code below.&amp;nbsp; I get the error that the workflowAction.execute() requires a nodeRef.&amp;nbsp; I've tried passing the document object as well as document.nodeRef, but neither seems to satisfy it.&amp;nbsp; I've walked through the script in the debugger and</description>
      <pubDate>Tue, 18 May 2010 05:26:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228060#M181190</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-05-18T05:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow execute needs nodeRef?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228061#M181191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would still like to know why the previous (Alfresco specific) code doesn't work (so I'm not going to mark it solved yet), but it turns out doing it the long way works just fine (in theory this is what the action used above is doing):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var nodeId = args.nodeid;&lt;BR /&gt;var theDocument = search.findNode("workspace://SpacesStore/" + nodeId);&lt;BR /&gt;&lt;BR /&gt;var workflowDefinition = workflow.getDefinitionByName("jbpm$nmwf:myWorkflow");&lt;BR /&gt;&lt;BR /&gt;var workflowPackage = workflow.createPackage();&lt;BR /&gt;workflowPackage.addNode(theDocument);&lt;BR /&gt;&lt;BR /&gt;var workflowParameters = [];&lt;BR /&gt;workflowParameters["bpm:workflowDescription"] = "Please edit: " + theDocument.name;&lt;BR /&gt;workflowParameters["bpm:assignees"] = [people.getPerson("admin"), people.getPerson("joebloe")];&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 7);&lt;BR /&gt;workflowParameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;workflowParameters["bpm:dueDate"] = futureDate;&lt;BR /&gt;workflowParameters["bpm:workflowPriority"] = 1;&lt;BR /&gt;&lt;BR /&gt;var workflowPath = workflowDefinition.startWorkflow(workflowPackage, workflowParameters);&lt;BR /&gt;&lt;BR /&gt;// This does *not* work, I get "bpm_assignees is not defined"&lt;BR /&gt;// workflowPath.signal(null); &lt;BR /&gt;&lt;BR /&gt;// End the start task&lt;BR /&gt;var tasks = workflowPath.getTasks();&lt;BR /&gt;for (task in tasks)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; tasks[task].endTask(null);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 03:33:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228061#M181191</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-05-19T03:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow execute needs nodeRef?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228062#M181192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a little up to know if someone has make progress on this problem ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 12:17:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228062#M181192</guid>
      <dc:creator>jc09</dc:creator>
      <dc:date>2011-09-21T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow execute needs nodeRef?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228063#M181193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just a little up to know if someone has make progress on this problem ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I never learned anything more about this problem.&amp;nbsp; We are still using the code I posted last.&amp;nbsp; If you find anything, please do update this thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 19:17:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-execute-needs-noderef/m-p/228063#M181193</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2011-09-21T19:17:29Z</dc:date>
    </item>
  </channel>
</rss>

