<?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: Execution Level variables in a boundryEvent (timer); Workflows in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166909#M120469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi frederikheremans&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your questions: the variable is being set on process/execution level using "setVariable()" method. The variable is accessible in the timer, however as you can see I tried to update it in the script task; it does not update the variable process wide. I am not using any subprocess in this workflow. I read somewhere that a boundryevent creates its own "process instance" hence I mentioned it in the initial post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="limpopoPremierWorkflow" name="Limpopo Premier Workflow" isExecutable="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reminderRequired = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable('reminderRequired', reminderRequired);&amp;lt;/activiti:string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:executionListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above code shows how I am setting my global variable, there is no other place were I alter it other than in the scriptTask of the timerEvent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this shed more light into your further response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dark-RedD&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 11:06:09 GMT</pubDate>
    <dc:creator>darkredd1</dc:creator>
    <dc:date>2013-12-05T11:06:09Z</dc:date>
    <item>
      <title>Execution Level variables in a boundryEvent (timer); Workflows</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166907#M120467</link>
      <description>Good day,I understand an activiti timer creates a separate process from the main process instance, though I can still access main process variables; it however cannot change their status. I have a boolean variable on the main process instance execution level which I call inside the timer, after the</description>
      <pubDate>Wed, 27 Nov 2013 06:58:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166907#M120467</guid>
      <dc:creator>darkredd1</dc:creator>
      <dc:date>2013-11-27T06:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Level variables in a boundryEvent (timer); Workflows</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166908#M120468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to set variables on the process/execution with setVariable(). As long as you do not use "setVariableLocal()", the variable will be set on the first execution in the parent-chain where that variable is already present. If not present, it will be set on the top-most execution, effectively being the process-instance. Are you using subprocesses? Are you setting that at another place in the process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 09:21:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166908#M120468</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-05T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Level variables in a boundryEvent (timer); Workflows</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166909#M120469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi frederikheremans&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your questions: the variable is being set on process/execution level using "setVariable()" method. The variable is accessible in the timer, however as you can see I tried to update it in the script task; it does not update the variable process wide. I am not using any subprocess in this workflow. I read somewhere that a boundryevent creates its own "process instance" hence I mentioned it in the initial post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;process id="limpopoPremierWorkflow" name="Limpopo Premier Workflow" isExecutable="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reminderRequired = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable('reminderRequired', reminderRequired);&amp;lt;/activiti:string&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:executionListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/javascript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above code shows how I am setting my global variable, there is no other place were I alter it other than in the scriptTask of the timerEvent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this shed more light into your further response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dark-RedD&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 11:06:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166909#M120469</guid>
      <dc:creator>darkredd1</dc:creator>
      <dc:date>2013-12-05T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Level variables in a boundryEvent (timer); Workflows</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166910#M120470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A timer does not create it's own process-instance, but rather creates an execution. All variables set on this execution (using setVariable) will be stored on the process-instance. At least, that's how it's supposed to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try adding an additional logger-statement, with execution.getVariableLocal('reminderRequired') and see what the output is? In the mean while, I'll check if we have unit-tests that verify the case you're making. We have tests for sub executions for sure, but not 100% sure if we have one for timer-executions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:00:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/execution-level-variables-in-a-boundryevent-timer-workflows/m-p/166910#M120470</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-06T10:00:26Z</dc:date>
    </item>
  </channel>
</rss>

