<?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: Using an environment property as a value for a call to CurrentDate.seconds() in a automation create task due date field?! in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314610#M1611</link>
    <description>&lt;P&gt;Can you think to validate your answers, like that this easier for the community to answer and know which question are not answered.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2012 11:21:34 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2012-03-14T11:21:34Z</dc:date>
    <item>
      <title>Using an environment property as a value for a call to CurrentDate.seconds() in a automation create task due date field?!</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314607#M1608</link>
      <description>&lt;P&gt;I have the following code to create a value in the due date field of a create task automation element.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@{CurrentDate.seconds(expr:@{Timeout}).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Timeout is a context variable initialized, with an environment property, in the line above the create task.&lt;/P&gt;
&lt;P&gt;I get the following error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Caused by: [Error: [Error: reference to undefined interceptor: {Timeout}]
[Near : {... at("yyyy-MM-dd'T'kk:mm:ss'Z'" ....}]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I've also tried:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@{CurrentDate.seconds(@{Timeout}).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@{CurrentDate.seconds(@{Env["my.environment.property"]).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;using no context variable and obtain the same result.&lt;/P&gt;
&lt;P&gt;If I use:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@{CurrentDate.seconds(600).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;it works and if I place&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@{Env["my.environment.property"]}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;in the comment field of the create task I get my timeout value from the nuxeo.conf file in the task listing.&lt;/P&gt;
&lt;P&gt;Are my problems syntax? Something else?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 00:23:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314607#M1608</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-03-09T00:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using an environment property as a value for a call to CurrentDate.seconds() in a automation create task due date field?!</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314608#M1609</link>
      <description>&lt;P&gt;Can you try this ?&lt;/P&gt;
&lt;P&gt;@{CurrentDate.seconds(new java.lang.Integer(Env["my.environment.property"])).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}&lt;/P&gt;
&lt;P&gt;I'm not sure but I think this is your problem.&lt;/P&gt;
&lt;P&gt;You give a string and the seconds methods waiting an integer. But sorry if doesn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 18:48:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314608#M1609</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-03-12T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using an environment property as a value for a call to CurrentDate.seconds() in a automation create task due date field?!</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314609#M1610</link>
      <description>&lt;P&gt;It works!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 20:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314609#M1610</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-03-12T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using an environment property as a value for a call to CurrentDate.seconds() in a automation create task due date field?!</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314610#M1611</link>
      <description>&lt;P&gt;Can you think to validate your answers, like that this easier for the community to answer and know which question are not answered.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:21:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-an-environment-property-as-a-value-for-a-call-to/m-p/314610#M1611</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-03-14T11:21:34Z</dc:date>
    </item>
  </channel>
</rss>

