<?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 Interfere when Activiti persists variables map in async. Process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140698#M98547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible to interfere at the moment when Activiti persists data before returning from a transaction in an asynchronus process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I like to do is to pass some session related variables (like the user name) to the process. So that these variables are accessible AFTER the jobExecutor has aquired the next task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See 2nd image in chapter "Transactions and Concurrency: Asynchronous Continuations" of the Activiti User Guide: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean to interfere at the point of the 2nd red dotted line in the image. Here I would like to add some data to the variables map BEFORE it is persisted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is something like that possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other side we already have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have overwritten the JobManager so that the additional data can be passed to the process when the JobExecuter resumes the asynchronous task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope, someone understands what I am talking about, my English is not that great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 12:07:35 GMT</pubDate>
    <dc:creator>frauke</dc:creator>
    <dc:date>2013-04-26T12:07:35Z</dc:date>
    <item>
      <title>Interfere when Activiti persists variables map in async. Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140698#M98547</link>
      <description>Hello everybody,is it possible to interfere at the moment when Activiti persists data before returning from a transaction in an asynchronus process?What I like to do is to pass some session related variables (like the user name) to the process. So that these variables are accessible AFTER the jobExe</description>
      <pubDate>Fri, 26 Apr 2013 12:07:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140698#M98547</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-04-26T12:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Interfere when Activiti persists variables map in async. Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140699#M98548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a tricky requirement. I guess you could do it by overriding some of the standard Commands that are used by the job executor. The only problem is that plugging those in is hard and needs changes in the code itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 08:31:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140699#M98548</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-30T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Interfere when Activiti persists variables map in async. Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140700#M98549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what about the send method in JobManager? Is that the point where the job is written into the database for an async. continuation? (It calls a method named hintJobExecutor).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That would be very easy because we already have overwritten the JobManager!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 13:50:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140700#M98549</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-05-02T13:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interfere when Activiti persists variables map in async. Process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140701#M98550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think that's going to work. That method will be called when the job is created. However, the flush only happens at the end of the whole operation (in batch).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another path might be to plug something into the TransactionContext (a transaction listener). However, I did not test this and don't know if it will actually work …&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:02:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/interfere-when-activiti-persists-variables-map-in-async-process/m-p/140701#M98550</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-06T09:02:38Z</dc:date>
    </item>
  </channel>
</rss>

