<?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: Automaticlly start custom workflow after upload document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224375#M177505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 21:58:32 GMT</pubDate>
    <dc:creator>maxogm</dc:creator>
    <dc:date>2010-07-12T21:58:32Z</dc:date>
    <item>
      <title>Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224373#M177503</link>
      <description>Hello,I made one custom workflow, and he works OK. I also made a custom document type.I do not know how to do: when I upload the document how to automatically start my custom workflow.if anyone has an example, thanks</description>
      <pubDate>Mon, 12 Jul 2010 12:31:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224373#M177503</guid>
      <dc:creator>maxogm</dc:creator>
      <dc:date>2010-07-12T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224374#M177504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;do it with javascript:&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$sawf:WFPool";&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:groupAssignee"] = people.getGroup("GROUP_groupname");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;make a business rule that executes a script on inbound (new content) and adopt the name of ur workflow (mine is sawf:WFPool) and replace groupname with a group to review it (i have pooled wf)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:54:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224374#M177504</guid>
      <dc:creator>thestorm</dc:creator>
      <dc:date>2010-07-12T12:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224375#M177505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 21:58:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224375#M177505</guid>
      <dc:creator>maxogm</dc:creator>
      <dc:date>2010-07-12T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224376#M177506</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;I tried the below code.But it didnt work for me.&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 = "jbpm$wf:review";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters.requiredApprovePercent = 100;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters["bpm:workflowDescription"] = "Please review and approve: " + document.name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.parameters["bpm:groupAssignee"] = people.getGroup("GROUP_marketing");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;workflow.execute(document);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created 2 groups GROUP_marketing and marketing in alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have set a rule to execute the script. But when I upload the document in that space I am getting the below error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error&amp;nbsp; Please correct the errors below then click OK.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * A system error happened during the operation: 08210016 Failed to execute script 'workspace://SpacesStore/45d12735-4e2f-427a-a50c-511df0f85b1d': 08210015 Mandatory task properties have not been provided: {&lt;A href="http://www.alfresco.org/model/bpm/1.0}assignee" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/bpm/1.0}assignee&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can u pls help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 12:31:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224376#M177506</guid>
      <dc:creator>pp20218</dc:creator>
      <dc:date>2010-09-21T12:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224377#M177507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to do the same and I understand the code and all… but, where exactly I have to writhe this code? In any specific document into any specific folder of the Alfresco directory? Thanks in advance! (I would also apreciate if you gave me some link with information about that)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 10:16:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224377#M177507</guid>
      <dc:creator>roseta</dc:creator>
      <dc:date>2010-10-19T10:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224378#M177508</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;The above piece of code didnt work for me, when I am using a group.But If you assign to a particular user(I mean to say hard code the value) then it is working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can do is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) Write a javascript say (approval.js) withe the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#FF0000;"&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "jbpm$wf:review";&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = 'Approval Request for'+document.name;&lt;BR /&gt;workflow.parameters["bpm:assignee"] = "admin";&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;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) Go to a space(lets say the space name is Test) in alfresco and create a rule. The rule is to execute the script when a new document arrives.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(3)Go to Company Home/Data Dictionary/scripts and upload approval.js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(4) So the rule will be execute approval.js when a new document arrives in "Test" space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(5) After the document is uploaded review workflow will be initiated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this meets your requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 10:48:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224378#M177508</guid>
      <dc:creator>pp20218</dc:creator>
      <dc:date>2010-10-19T10:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224379#M177509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much PP! I'll try it right now! =D&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(btw, where have you lent it? or read it? I would like to learn to do it bymyself as well)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 12:44:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224379#M177509</guid>
      <dc:creator>roseta</dc:creator>
      <dc:date>2010-10-19T12:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Automaticlly start custom workflow after upload document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224380#M177510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Roseta,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even I am not 100% perfect on this.I just learnt from this wikis. with some sample example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 07:04:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automaticlly-start-custom-workflow-after-upload-document/m-p/224380#M177510</guid>
      <dc:creator>pp20218</dc:creator>
      <dc:date>2010-10-20T07:04:08Z</dc:date>
    </item>
  </channel>
</rss>

