<?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 Automatically start approval workflow after doc import and afterwards move to archive in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/automatically-start-approval-workflow-after-doc-import-and/m-p/308171#M261301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Ephesoft with CMIS export to upload my documents into Alfresco which I got working just fine. But I want to add an extra step in our invoice-approval workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's actually very simple but I can't get it to work entirely. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The GROUP (which is called Approvers) should be able to approve a invoice, this approval workflow should start right after it is imported into Alfresco repository and after approval this document should be moved from Inbox to Archive so that the end-user in the company knows which invoice can be payed etc…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I'm able to get the document to start approval for 1 user (sander), but not a group, using this script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var workflow = actions.create("start-workflow");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters.workflowName = "activiti$activitiReview";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters["bpm:workflowDescription"] = "Please assign approver for "+ document.name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters['bpm:assignee']=people.getPerson("Sander");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters["sendEMailNotifications"] = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.execute(document);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that's all i got to work, I also have an aspect in my content model called "approve" which I maybe can use to start archive-rule (something I was randomly thinking should be used).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fingers crossed if there's anybody who can help me! (ps my scripting skill = zero &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 16:10:36 GMT</pubDate>
    <dc:creator>sandorv</dc:creator>
    <dc:date>2015-10-22T16:10:36Z</dc:date>
    <item>
      <title>Automatically start approval workflow after doc import and afterwards move to archive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automatically-start-approval-workflow-after-doc-import-and/m-p/308171#M261301</link>
      <description>Hey guys,The case:I'm using Ephesoft with CMIS export to upload my documents into Alfresco which I got working just fine. But I want to add an extra step in our invoice-approval workflow.It's actually very simple but I can't get it to work entirely. The GROUP (which is called Approvers) should be ab</description>
      <pubDate>Thu, 22 Oct 2015 16:10:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automatically-start-approval-workflow-after-doc-import-and/m-p/308171#M261301</guid>
      <dc:creator>sandorv</dc:creator>
      <dc:date>2015-10-22T16:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically start approval workflow after doc import and afterwards move to archive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automatically-start-approval-workflow-after-doc-import-and/m-p/308172#M261302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi SandorV&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Current code which you have used is for assigning workflow to a user.To assign it to a group use following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters["bpm:groupAssignee"] = people.getGroup("GROUP_MyGroupName");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However make sure that the workflow which you are trigerring is a group workflow. OOTB group review workflows is"activitiParallelGroupReview" for parallel review and for pooled review [seen in Start Workflow screen&amp;nbsp; as "Parallel Group Review And Approve Activiti Process"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 06:28:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automatically-start-approval-workflow-after-doc-import-and/m-p/308172#M261302</guid>
      <dc:creator>rahulmackdani</dc:creator>
      <dc:date>2015-11-02T06:28:20Z</dc:date>
    </item>
  </channel>
</rss>

