<?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 Workflow Loop in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296377#M249507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a rule starting a workflow through a script on create/update. This workflow itself updates files, thus triggering another workflow on completion. What and how would be the best way to solve this be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look through the rule conditions but didn't really know what to do&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or would it be done inside the script, eg "if (node has no active workflows)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, slightly relevant, if a file being routed in a workflow is held and called through bpm_package,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the equivalent to a file being handled by a rule?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 23:35:18 GMT</pubDate>
    <dc:creator>tomoconnell</dc:creator>
    <dc:date>2013-10-10T23:35:18Z</dc:date>
    <item>
      <title>Workflow Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296377#M249507</link>
      <description>I have a rule starting a workflow through a script on create/update. This workflow itself updates files, thus triggering another workflow on completion. What and how would be the best way to solve this be.I had a look through the rule conditions but didn't really know what to door would it be done i</description>
      <pubDate>Thu, 10 Oct 2013 23:35:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296377#M249507</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-10-10T23:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296378#M249508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, OOB dont have any conditions that would satisfy your requirement&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest to do it, in script itself from where you are inititating workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do below also but that would be generic.If you make that check then user might not be able to start any other workflow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Node has no active workflow" OR "File in in BPM_package"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rather than You can check specificically for your custom WF. If it is already active on Content then do NOT initiate new workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use below API, you may check for similar JS API&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//get all active WF on nodeRef . This will return you workflowInstance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflowService.getWorkflowsForContent(nodeRef, true); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From workflowInstance, you can WorkflowDefinition and name/id of your workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 05:35:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296378#M249508</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-10-11T05:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Loop</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296379#M249509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been playing around with this in JavaScript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var workflowList = document.activeWorkflows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (workflowList.length &amp;lt; 1) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't check for specific custom workflows at the moment but if I have any more time for this I might come back to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 21:44:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-loop/m-p/296379#M249509</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-10-14T21:44:07Z</dc:date>
    </item>
  </channel>
</rss>

