<?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: Java API - updating and versioning changes document status in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/java-api-updating-and-versioning-changes-document-status/m-p/318173#M5174</link>
    <description>&lt;P&gt;were you able find some solution? am using rest call , i cant change state&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2014 18:43:12 GMT</pubDate>
    <dc:creator>zod_</dc:creator>
    <dc:date>2014-05-02T18:43:12Z</dc:date>
    <item>
      <title>Java API - updating and versioning changes document status</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-api-updating-and-versioning-changes-document-status/m-p/318172#M5173</link>
      <description>&lt;P&gt;Using the default lifecycle and API java, when I make an update to a document in the state "approved", sometimes (seemingly in non-deterministic way), the status of the document changes to "project". Maybe there is a listener that handles these situations (I ignore its existence), but I do not understand the non-deterministic behavior.&lt;/P&gt;
&lt;P&gt;here the code:&lt;/P&gt;
&lt;PRE&gt;
HttpAutomationClient client = new HttpAutomationClient(serverURI,0,0);
session = client.getSession(username, password);

Document asset=null;
DocumentService ds = new DocumentService(session);
//get the asset with state="approved"
asset = ds.getDocument(result,"*");
//... change some property like title ...
ds.update(asset);
Document versionedDocument = ds.createVersion(asset,increment.value());
//versionedDocument sometimes has state="project"
client.shutdown();

&lt;/PRE&gt;
&lt;P&gt;Thanks in advance,
M.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 16:10:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-api-updating-and-versioning-changes-document-status/m-p/318172#M5173</guid>
      <dc:creator>maumig_</dc:creator>
      <dc:date>2014-04-23T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Java API - updating and versioning changes document status</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/java-api-updating-and-versioning-changes-document-status/m-p/318173#M5174</link>
      <description>&lt;P&gt;were you able find some solution? am using rest call , i cant change state&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 18:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/java-api-updating-and-versioning-changes-document-status/m-p/318173#M5174</guid>
      <dc:creator>zod_</dc:creator>
      <dc:date>2014-05-02T18:43:12Z</dc:date>
    </item>
  </channel>
</rss>

