<?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: Access to dbconnection to execute arbritrary query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123666#M87065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try using the Context.getCommandContext() to obtain a org.activiti.engine.impl.interceptor.CommandContext. This allows you to get hold of the DBSqlSession and getSQLSession() on this. The SQLSession exposes a getConnection() method which returns the current session used in the process that is executing the script/service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 07:51:37 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-05-13T07:51:37Z</dc:date>
    <item>
      <title>Access to dbconnection to execute arbritrary query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123665#M87064</link>
      <description>Is there a way to either access the internal db connection object in a script task or Java task, so that I can run an arbitrary query?&amp;nbsp; I am embedding Activiti using plain java&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.createStandaloneP</description>
      <pubDate>Wed, 08 May 2013 15:46:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123665#M87064</guid>
      <dc:creator>tcheekva</dc:creator>
      <dc:date>2013-05-08T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access to dbconnection to execute arbritrary query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123666#M87065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try using the Context.getCommandContext() to obtain a org.activiti.engine.impl.interceptor.CommandContext. This allows you to get hold of the DBSqlSession and getSQLSession() on this. The SQLSession exposes a getConnection() method which returns the current session used in the process that is executing the script/service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 07:51:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123666#M87065</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-13T07:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access to dbconnection to execute arbritrary query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123667#M87066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is working fine in a task, thanks.&amp;nbsp; I also need access from within a new form type (AbstractFormType).&amp;nbsp; creating a dynamic selection from a database table.&amp;nbsp; The Context above is returning null.&amp;nbsp; Is there a way to do this from a FormType? I was also trying thru a processEngine but how do I know which engine I am running in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 18:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123667#M87066</guid>
      <dc:creator>tcheekva</dc:creator>
      <dc:date>2013-05-20T18:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access to dbconnection to execute arbritrary query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123668#M87067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When getting form-properties, there is no process context active YET. You'll have to make you're type smart enough (e.g.. wire reference to processEngine in Spring) to know what engine to use to get hold of a SQLConnection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:25:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123668#M87067</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-22T05:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access to dbconnection to execute arbritrary query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123669#M87068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When getting form-properties, there is no process context active YET. You'll have to make you're type smart enough (e.g.. wire reference to processEngine in Spring) to know what engine to use to get hold of a SQLConnection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:25:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-to-dbconnection-to-execute-arbritrary-query/m-p/123669#M87068</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-22T05:25:47Z</dc:date>
    </item>
  </channel>
</rss>

