<?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 setVariable makes the variable local to a task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setvariable-makes-the-variable-local-to-a-task/m-p/162514#M116391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a process with two task (A and B) in sequence. When task B completes, there are two possible routes based on value of a process variable (X). If X has a certain value, then the process continue, else it goes into a signal catching event which will loop back the process into task A again when the signal is raised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task B sometimes sets a value of another variable (Y). The subsequent execution of task A always find the value of variable Y unchanged.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that the expected behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To set the value of variable Y, in Task B (a ServiceTask) I call setVariable(String, Object) on the DelegateExecution context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I instead use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DelegateExecution.getEngineServices().getRuntimeService().setVariable(executionId, variableName, value)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Activiti 5.14&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 13:51:24 GMT</pubDate>
    <dc:creator>lmollea</dc:creator>
    <dc:date>2014-02-20T13:51:24Z</dc:date>
    <item>
      <title>setVariable makes the variable local to a task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setvariable-makes-the-variable-local-to-a-task/m-p/162514#M116391</link>
      <description>Hi all,I have a process with two task (A and B) in sequence. When task B completes, there are two possible routes based on value of a process variable (X). If X has a certain value, then the process continue, else it goes into a signal catching event which will loop back the process into task A agai</description>
      <pubDate>Thu, 20 Feb 2014 13:51:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setvariable-makes-the-variable-local-to-a-task/m-p/162514#M116391</guid>
      <dc:creator>lmollea</dc:creator>
      <dc:date>2014-02-20T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: setVariable makes the variable local to a task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setvariable-makes-the-variable-local-to-a-task/m-p/162515#M116392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Forget this, it was a well hidden typo between the two tasks…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 14:23:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setvariable-makes-the-variable-local-to-a-task/m-p/162515#M116392</guid>
      <dc:creator>lmollea</dc:creator>
      <dc:date>2014-02-20T14:23:54Z</dc:date>
    </item>
  </channel>
</rss>

