<?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 processInstance variable in boundary timer in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230233#M183363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create a boundary timer on one of my userTask. and want to set the value of &amp;lt;timeDate&amp;gt; to a process variable that i created in my task listener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDate&amp;gt;${execution.getVariable('time_duration')}&amp;lt;/timeDate&amp;gt;&lt;BR /&gt; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the in the Task listener (which is on create) i set the processVariable&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ……&amp;nbsp; //somecode &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delegateTask.getExecution().setVariable ("time_duration", df.format(c.getTime()));&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;i can see that the the variable is set and the date format format is correct from the listener. but the timer is not getting the value at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here are some of the things i tried &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. ${time_duration} on the timer - returns Unknown property used in expression error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. i use the RuntimeService to set the variable still the timer did not get the variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. i test the timer with any other value (by a duration, and also date ) to make sure it is working. and it does work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so my issue is only when i try to use a processvariable that i set on the Listener. Any help? Thank you in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 13:51:01 GMT</pubDate>
    <dc:creator>tgebeyehu</dc:creator>
    <dc:date>2016-03-15T13:51:01Z</dc:date>
    <item>
      <title>processInstance variable in boundary timer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230233#M183363</link>
      <description>Hello everyone,I create a boundary timer on one of my userTask. and want to set the value of &amp;lt;timeDate&amp;gt; to a process variable that i created in my task listener. &amp;lt;timerEventDefinition&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDate&amp;gt;${execution.getVariable('time_duration')}&amp;lt;/timeDate&amp;gt; &amp;lt;/timerEventDefini</description>
      <pubDate>Tue, 15 Mar 2016 13:51:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230233#M183363</guid>
      <dc:creator>tgebeyehu</dc:creator>
      <dc:date>2016-03-15T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: processInstance variable in boundary timer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230234#M183364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try setting the variable before the task is created, for example in a script task before the task or in an execution listener on the sequence flow coming into the task?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 13:20:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230234#M183364</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-18T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: processInstance variable in boundary timer</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230235#M183365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i set the variables in an execution listener instead of task listener and it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:22:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-variable-in-boundary-timer/m-p/230235#M183365</guid>
      <dc:creator>tgebeyehu</dc:creator>
      <dc:date>2016-03-18T16:22:00Z</dc:date>
    </item>
  </channel>
</rss>

