<?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 autoStart in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327121#M14122</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there any way to make a workflow autostart, once a form is filled or a document is uploaded, that will be a serial approval workflow and if all, in this example 3 approvers accept the document gets moved to a separate folder ?&lt;/P&gt;
&lt;P&gt;Or something similar, I am looking for a tutorial, as this is the first time I am using nuxeo and am still unfamilliar with it.&lt;/P&gt;
&lt;P&gt;Thank you for you help.&lt;/P&gt;
&lt;P&gt;Ovidiu&lt;/P&gt;</description>
    <pubDate>Sun, 02 Aug 2015 07:10:34 GMT</pubDate>
    <dc:creator>Ovidiu_Detesan</dc:creator>
    <dc:date>2015-08-02T07:10:34Z</dc:date>
    <item>
      <title>Workflow autoStart</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327121#M14122</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there any way to make a workflow autostart, once a form is filled or a document is uploaded, that will be a serial approval workflow and if all, in this example 3 approvers accept the document gets moved to a separate folder ?&lt;/P&gt;
&lt;P&gt;Or something similar, I am looking for a tutorial, as this is the first time I am using nuxeo and am still unfamilliar with it.&lt;/P&gt;
&lt;P&gt;Thank you for you help.&lt;/P&gt;
&lt;P&gt;Ovidiu&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2015 07:10:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327121#M14122</guid>
      <dc:creator>Ovidiu_Detesan</dc:creator>
      <dc:date>2015-08-02T07:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow autoStart</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327122#M14123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;what you are looking for is basically the process described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://doc.nuxeo.com/display/NXDOC/How+to+Set+a+Default+Date+on+a+Field+at+Document+Creation" target="test_blank"&gt;https://doc.nuxeo.com/display/NXDOC/How+to+Set+a+Default+Date+on+a+Field+at+Document+Creation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can use an event handler like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="event-handlers"&amp;gt;
    &amp;lt;handler chainId="ApprovalWorkflowChain"&amp;gt;
      &amp;lt;event&amp;gt;documentCreated&amp;lt;/event&amp;gt;
      &amp;lt;filters&amp;gt;
        &amp;lt;doctype&amp;gt;TestDoc&amp;lt;/doctype&amp;gt;
      &amp;lt;/filters&amp;gt;
    &amp;lt;/handler&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you have the automation chain starting the workflow:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="chains"&amp;gt;
   &amp;lt;chain id="ApprovalWorkflowChain"&amp;gt;
      &amp;lt;operation id="Seam.GetCurrentDocument"/&amp;gt;
      &amp;lt;operation id="Context.StartWorkflow"&amp;gt;
        &amp;lt;param type="string" name="id"&amp;gt;MyApprovalWorkflow&amp;lt;/param&amp;gt;
        &amp;lt;param type="boolean" name="start"&amp;gt;true&amp;lt;/param&amp;gt;
      &amp;lt;/operation&amp;gt;
    &amp;lt;/chain&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the workflow you can also call an automation chain to move documents:&lt;/P&gt;
&lt;P&gt;You can just call your three person approval workflow there. In there you can call automation chains to move documents like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="chains"&amp;gt;
    &amp;lt;chain id="approved"&amp;gt;
      &amp;lt;operation id="Seam.GetCurrentDocument"/&amp;gt;
      &amp;lt;operation id="Document.SetLifeCycle"&amp;gt;
        &amp;lt;param type="string" name="value"&amp;gt;approved&amp;lt;/param&amp;gt;
      &amp;lt;/operation&amp;gt;
      &amp;lt;operation id="Document.Move"&amp;gt;
        &amp;lt;param type="document" name="target"&amp;gt;/asset-library/Approved&amp;lt;/param&amp;gt;
        &amp;lt;param type="string" name="name"&amp;gt;expr:Document.name&amp;lt;/param&amp;gt;
      &amp;lt;/operation&amp;gt;
      &amp;lt;operation id="Seam.NavigateTo"&amp;gt;
        &amp;lt;param type="string" name="view"&amp;gt;expr:Document.id&amp;lt;/param&amp;gt;
      &amp;lt;/operation&amp;gt;
    &amp;lt;/chain&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:01:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327122#M14123</guid>
      <dc:creator>ssze_</dc:creator>
      <dc:date>2015-08-13T07:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow autoStart</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327123#M14124</link>
      <description>&lt;P&gt;Thank you for your answer ssze, I will test it out in the next weeks to come and update here if all is ok.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 07:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/workflow-autostart/m-p/327123#M14124</guid>
      <dc:creator>Ovidiu_Detesan</dc:creator>
      <dc:date>2015-08-13T07:34:57Z</dc:date>
    </item>
  </channel>
</rss>

