<?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: Issues with creating user inside Java task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189086#M142216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will try your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 10:24:14 GMT</pubDate>
    <dc:creator>butik</dc:creator>
    <dc:date>2014-07-22T10:24:14Z</dc:date>
    <item>
      <title>Issues with creating user inside Java task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189084#M142214</link>
      <description>Hello,I'm implementing "Create user process" - at first step initiator enters some user details and at second stet Java service task is called: &amp;lt;java&amp;gt;public class CreateUser implements ActivityBehavior {&amp;nbsp; private static final long serialVersionUID = -7993850756520475229L;&amp;nbsp; @Override&amp;nbsp; public vo</description>
      <pubDate>Thu, 10 Jul 2014 14:03:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189084#M142214</guid>
      <dc:creator>butik</dc:creator>
      <dc:date>2014-07-10T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with creating user inside Java task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189085#M142215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm interesting problem. The issue here is that, since the call is part of the&amp;nbsp; java delegate all database calls are executed during the flush (at the end of the command).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you actually want, is that the call is executed in its own transaction…. What you could do is create your own process engine configuration, however this will make all the service calls being executed in a new transaction:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is ok, you can set the default command config on the process engine configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected void initDefaultCommandConfig() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (defaultCommandConfig == null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defaultCommandConfig = new CommandConfig().setContextReusePossible(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 06:57:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189085#M142215</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-07-22T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with creating user inside Java task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189086#M142216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will try your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 10:24:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issues-with-creating-user-inside-java-task/m-p/189086#M142216</guid>
      <dc:creator>butik</dc:creator>
      <dc:date>2014-07-22T10:24:14Z</dc:date>
    </item>
  </channel>
</rss>

