<?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 How to get the value of the life cycle state in an automation chain ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323022#M10023</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to set a field of a document with the current value of its life cycle state.&lt;/P&gt;
&lt;P&gt;In the studio I use a context variable in an automation chain and these three operations :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Fetch &amp;gt; Context Document(s)&lt;/LI&gt;
&lt;LI&gt;Execution Context &amp;gt;Set Context Variable&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Update Property&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The value I want could be "ecm:currentLifeCycleState", but it does not work.&lt;/P&gt;
&lt;P&gt;Maybe I can use this fonction : "getCurrentLifeCycleState()", but I do not know the synthaxe...&lt;/P&gt;
&lt;P&gt;Can somebody help me ?&lt;/P&gt;
&lt;P&gt;PS : I work in 5.6&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2014 14:22:31 GMT</pubDate>
    <dc:creator>jour_</dc:creator>
    <dc:date>2014-03-26T14:22:31Z</dc:date>
    <item>
      <title>How to get the value of the life cycle state in an automation chain ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323022#M10023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to set a field of a document with the current value of its life cycle state.&lt;/P&gt;
&lt;P&gt;In the studio I use a context variable in an automation chain and these three operations :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Fetch &amp;gt; Context Document(s)&lt;/LI&gt;
&lt;LI&gt;Execution Context &amp;gt;Set Context Variable&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Update Property&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The value I want could be "ecm:currentLifeCycleState", but it does not work.&lt;/P&gt;
&lt;P&gt;Maybe I can use this fonction : "getCurrentLifeCycleState()", but I do not know the synthaxe...&lt;/P&gt;
&lt;P&gt;Can somebody help me ?&lt;/P&gt;
&lt;P&gt;PS : I work in 5.6&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:22:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323022#M10023</guid>
      <dc:creator>jour_</dc:creator>
      <dc:date>2014-03-26T14:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the value of the life cycle state in an automation chain ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323023#M10024</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;the value to specify should be &lt;CODE&gt;@{Document.lifeCycle}&lt;/CODE&gt;. You can click on the icon next to &lt;CODE&gt;value&lt;/CODE&gt;'s input to open the &lt;CODE&gt;Expression Editor&lt;/CODE&gt; than can help you build expressions. See also Nuxeo documentation &lt;A href="http://doc.nuxeo.com/display/NXDOC/Use+of+MVEL+in+Automation+Chains"&gt;Use of MVEL in Automation Chains&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2014 20:35:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323023#M10024</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2014-03-28T20:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the value of the life cycle state in an automation chain ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323024#M10025</link>
      <description>&lt;P&gt;OK, thank you !&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 19:02:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-get-the-value-of-the-life-cycle-state-in-an-automation/m-p/323024#M10025</guid>
      <dc:creator>jour_</dc:creator>
      <dc:date>2014-03-31T19:02:36Z</dc:date>
    </item>
  </channel>
</rss>

