<?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: CommandContext reuse with REQUIRES_NEW propagation inside service task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149082#M104100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Let me know if you have any questions and such.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 07:55:20 GMT</pubDate>
    <dc:creator>marcus1</dc:creator>
    <dc:date>2013-08-19T07:55:20Z</dc:date>
    <item>
      <title>CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149073#M104091</link>
      <description>Hi,We have an interesting problem which seems to be related to the introduction of command context reuse in newer versions of Activiti.I understand the reason this was done, and have read the discussions/blog posts and they make complete sense.To give some context, we have an existing "retry" busine</description>
      <pubDate>Wed, 31 Jul 2013 21:54:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149073#M104091</guid>
      <dc:creator>stuartchalmers</dc:creator>
      <dc:date>2013-07-31T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149074#M104092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realised this morning I may be able to work around this by disabling CommandContext reuse in the ProcessEngineConfiguration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be good to hear if anyone has any thoughts on this, and whether it can be considered a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to try and reproduce this with a simpler test case in the meantime so that I can verify if disabling the reuse works in the way I expect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 08:14:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149074#M104092</guid>
      <dc:creator>stuartchalmers</dc:creator>
      <dc:date>2013-08-01T08:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149075#M104093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The CommandContextInterceptor &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/interceptor/CommandContextInterceptor.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/interceptor/CommandContextInterceptor.java&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; does have a property which you can use to disable this behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't let the comment there fool you. The ProcessEngineConfiguration does set it to true. So to fix your problem: subclass the relevant ProcessEngineConfiguration and pass false to that property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 14:01:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149075#M104093</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-08-01T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149076#M104094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've made this change to workaround the issue and are in the process of testing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if the CommandContextInterceptor could be more intelligent in some way around this as the behaviour had us pretty confused for a while so might impact others, although I guess our use case is rare.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I get a chance I will look at the source again to see if I can think of any cleaner solution, as we could have other scenarios where the reuse does make sense in the same engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 15:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149076#M104094</guid>
      <dc:creator>stuartchalmers</dc:creator>
      <dc:date>2013-08-01T15:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149077#M104095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, keep us posted on your progress…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 07:48:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149077#M104095</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-05T07:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149078#M104096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may be related to what I'm working on for &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1758" rel="nofollow noopener noreferrer"&gt;ACT-1758&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="https://github.com/marcusk24/Activiti/tree/CmdTC" rel="nofollow noopener noreferrer"&gt;GitHub&lt;/A&gt;&lt;SPAN&gt; and specifically &lt;/SPAN&gt;&lt;A href="https://github.com/marcusk24/Activiti/commit/cddfd39505edc76c84502edb96bfad4fdb1dbcb3" rel="nofollow noopener noreferrer"&gt;this commit (WIP)&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea is that the &lt;/SPAN&gt;&lt;A href="https://github.com/marcusk24/Activiti/commit/cddfd39505edc76c84502edb96bfad4fdb1dbcb3#diff-8" rel="nofollow noopener noreferrer"&gt;CommandConfig&lt;/A&gt;&lt;SPAN&gt; allows fine-grained control over de CommandInterceptors per command execution (or use the default config). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment the transaction propagation and context reuse can be configured. I think the RetryInterceptor settings are another good candidate for inclusion. This way there is no more need for having multiple interceptor chains per propagation kind. Being able to set whether context reuse is possible should be useful for the issue described in this thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 20:40:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149078#M104096</guid>
      <dc:creator>marcus1</dc:creator>
      <dc:date>2013-08-06T20:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149079#M104097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks like an interesting improvement, what's the advantage of splitting the config up? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 08:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149079#M104097</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-08-08T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149080#M104098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For ACT-1758 the schema commands need to run outside of a transaction. There is already the commandExecutorTxRequired and commandExecutorTxRequiresNew, so we could just add another one: commandExecutorTxNotSupported, and use that one for all the schema commands. However, this approach is not very scalable: it is conceivable that other commands need different interceptor combinations and configurations. For example, maybe we want to use the RetryInterceptor only (or except) for certain commands. So do we then add a retryingCommandExecutorTxRequired and a retryingCommandExecutorTxRequiresNew? This would very quickly lead to a unmanagement number or executors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By decoupling the interceptor configuration from the interceptor stack this problem is avoided. Exactly one executor is sufficient. When passing a command to the executor, the exact configuration can be specified if desired. This allows for very fine grained configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ofcourse if one does not pass a CommandConfig the default one is used. Therefore most calls to execute can stay the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:44:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149080#M104098</guid>
      <dc:creator>marcus1</dc:creator>
      <dc:date>2013-08-08T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149081#M104099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay - sounds good. We'll check the pull request!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 09:36:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149081#M104099</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-08-14T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149082#M104100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Let me know if you have any questions and such.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:55:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149082#M104100</guid>
      <dc:creator>marcus1</dc:creator>
      <dc:date>2013-08-19T07:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: CommandContext reuse with REQUIRES_NEW propagation inside service task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149083#M104101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt; Sorry for the delayed response on this. I work for a fast moving business and got pulled into something else!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marcus, thanks so much for your contribution and reply to my original post. I've just come across a scenario where I do indeed want the context reuse, after having disabled it in the config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've reviewed your change and it looks like just what I need!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roll on 5.14&amp;nbsp; so I can get my hands on this &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 20:49:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/commandcontext-reuse-with-requires-new-propagation-inside/m-p/149083#M104101</guid>
      <dc:creator>stuartchalmers</dc:creator>
      <dc:date>2013-10-10T20:49:32Z</dc:date>
    </item>
  </channel>
</rss>

