<?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: Workflows automation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflows-automation/m-p/248481#M201611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is easy to do with a rule on the scan folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a script in "Data Dictionary/Scripts" that sets the parameters and executes the workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add a rule to the folder and choose "Execute script" as the action, select the script you created in step 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example of a script that starts an advanced workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "jbpm$wf:parallelreview";&lt;BR /&gt;workflow.parameters.requiredApprovePercent = 100;&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "Please review and approve: " + document.name;&lt;BR /&gt;workflow.parameters["bpm:assignees"] = [people.getPerson("admin"), people.getPerson("cyber")];&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 7);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;workflow.execute(document);&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Aug 2012 21:04:05 GMT</pubDate>
    <dc:creator>jonash</dc:creator>
    <dc:date>2012-08-18T21:04:05Z</dc:date>
    <item>
      <title>Workflows automation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflows-automation/m-p/248480#M201610</link>
      <description>Hi,I have recently integrated ephesoft and alfresco. What I want to achieve is to start an advanced workflow for each document being scanned into a&amp;nbsp;&amp;nbsp; particular folder in Alfresco. Is this possibleKind regardsmdu</description>
      <pubDate>Fri, 17 Aug 2012 13:41:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflows-automation/m-p/248480#M201610</guid>
      <dc:creator>mduduzi</dc:creator>
      <dc:date>2012-08-17T13:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows automation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflows-automation/m-p/248481#M201611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is easy to do with a rule on the scan folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a script in "Data Dictionary/Scripts" that sets the parameters and executes the workflow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add a rule to the folder and choose "Execute script" as the action, select the script you created in step 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example of a script that starts an advanced workflow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "jbpm$wf:parallelreview";&lt;BR /&gt;workflow.parameters.requiredApprovePercent = 100;&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "Please review and approve: " + document.name;&lt;BR /&gt;workflow.parameters["bpm:assignees"] = [people.getPerson("admin"), people.getPerson("cyber")];&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 7);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;workflow.execute(document);&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2012 21:04:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflows-automation/m-p/248481#M201611</guid>
      <dc:creator>jonash</dc:creator>
      <dc:date>2012-08-18T21:04:05Z</dc:date>
    </item>
  </channel>
</rss>

