<?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 Activiti Process Variable value Override by Different Threads in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218542#M171672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When we have started the process, The three task has been created using parallel gateway, lets say A, B, C; Now Two user say U1 and U2, perform operation X on Task A and B respectively. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a part of Operation X, Task A is Completed by User U1, As a result, A service task with expression (named userTimerAction) is executed and after that Task A1 is created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly, As a part of Operation X, Task B is Completed by User U2, As a result, A service task with expression&amp;nbsp; (named userTimerAction) is executed and after that Task B1 is created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method is same in both the cases &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void userTimerAction(DelegateExecution execution) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do some calculation to calculate&amp;nbsp; userUri in method userTimerAction and set a process variable in execution as below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable(WorkflowConstants.USER_URI, userUri);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some times, If both the Users U1 and U2 perform the operation simultaneously, The value of userUri of one task override the value of Other Task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems to me that since they are setting the value at process level, that why this issue is occurring. if we use method setVariableLocal of delegate execution, it will solve the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please suggest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jyoti Yadav&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 09:27:37 GMT</pubDate>
    <dc:creator>jyotibhushan</dc:creator>
    <dc:date>2015-12-07T09:27:37Z</dc:date>
    <item>
      <title>Activiti Process Variable value Override by Different Threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218542#M171672</link>
      <description>When we have started the process, The three task has been created using parallel gateway, lets say A, B, C; Now Two user say U1 and U2, perform operation X on Task A and B respectively. As a part of Operation X, Task A is Completed by User U1, As a result, A service task with expression (named userT</description>
      <pubDate>Mon, 07 Dec 2015 09:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218542#M171672</guid>
      <dc:creator>jyotibhushan</dc:creator>
      <dc:date>2015-12-07T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Process Variable value Override by Different Threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218543#M171673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can pass the variable name WorkflowConstants.USER_URI instead of Constant , define it as a expression in service task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sakumar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:39:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218543#M171673</guid>
      <dc:creator>sakumar1</dc:creator>
      <dc:date>2015-12-07T20:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Process Variable value Override by Different Threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218544#M171674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;setVariableLocal will set the variable on the execution, but at one point you do need to merge them. You could do this later with an execution listener and decide based on the other values you know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 19:55:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218544#M171674</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-12-08T19:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Process Variable value Override by Different Threads</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218545#M171675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have the same problem. Did you solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 18:02:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-variable-value-override-by-different-threads/m-p/218545#M171675</guid>
      <dc:creator>speise</dc:creator>
      <dc:date>2017-07-31T18:02:47Z</dc:date>
    </item>
  </channel>
</rss>

