<?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: Is there a way to end a workflow without change the lifecycle state of an approved document ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320060#M7061</link>
    <description>&lt;P&gt;The point is StandardVersioningService is fine... Change "approved" state when doc changes satisfies me...&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 07:04:22 GMT</pubDate>
    <dc:creator>ftorchet_</dc:creator>
    <dc:date>2016-02-03T07:04:22Z</dc:date>
    <item>
      <title>Is there a way to end a workflow without change the lifecycle state of an approved document ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320058#M7059</link>
      <description>&lt;P&gt;I want to execute an automatic diffusion workflow on an approved document.
(the workflow uses start diffusion date and end diffusion date wrapped in document)&lt;/P&gt;
&lt;P&gt;The workflow works : it create proxies, delete them, no problem...&lt;/P&gt;
&lt;P&gt;Here is the problem : when the workflow is ending a task (create a proxy or delete a proxy by example), it updates the approved document.... which comes back to project lifecycle state... (because it has been updated)&lt;/P&gt;
&lt;P&gt;How to maintain this approved lifecycle state ?&lt;/P&gt;
&lt;P&gt;If I correctly annalyze what happens, update occurs when workflow is ending task and remove permissions for task actors : it executes then a "session.saveDocument()" (why by the way ? why not a session.setACP() ?).
I'm not able to find a solution to avoid that... In my opinion, force an update of the state with an output chain doesn't seem really optimal especially as there is automatic versioning on updates...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 10:58:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320058#M7059</guid>
      <dc:creator>ftorchet_</dc:creator>
      <dc:date>2016-02-02T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to end a workflow without change the lifecycle state of an approved document ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320059#M7060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is linked to the StandardVersioningService. By default when a document is in approved or obsolete state and it is modified, it is put back to the draft state.&lt;/P&gt;
&lt;P&gt;If you want to change this behaviour you have two possible solutions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a bundle containing:
&lt;UL&gt;
&lt;LI&gt;A class that will extend the StandardVersioningService and change its logic&lt;/LI&gt;
&lt;LI&gt;A component to override the service declaration ; see &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewExtensionPoint/org.nuxeo.ecm.core.versioning.VersioningService--versioningService" target="test_blank"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewExtensionPoint/org.nuxeo.ecm.core.versioning.VersioningService--versioningService&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Or you can use Nuxeo Studio to create your own lifecycle and bind your document types to it. By using custom states, you won't see this happen anymore.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Feb 2016 15:39:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320059#M7060</guid>
      <dc:creator>Bertrand_Chauvi</dc:creator>
      <dc:date>2016-02-02T15:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to end a workflow without change the lifecycle state of an approved document ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320060#M7061</link>
      <description>&lt;P&gt;The point is StandardVersioningService is fine... Change "approved" state when doc changes satisfies me...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 07:04:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/is-there-a-way-to-end-a-workflow-without-change-the-lifecycle/m-p/320060#M7061</guid>
      <dc:creator>ftorchet_</dc:creator>
      <dc:date>2016-02-03T07:04:22Z</dc:date>
    </item>
  </channel>
</rss>

