<?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 configuration refactoring towards spring beans xml in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/configuration-refactoring-towards-spring-beans-xml/m-p/35506#M18647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you can use activiti with and without spring.&amp;nbsp; And that is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But we see a potential problem popping up.&amp;nbsp; There are now 2 styles of configuration: activiti cfg xml and the spring configuration.&amp;nbsp; Up to now there was good reason for this split up.&amp;nbsp; As the things that we have configurable are very different (transaction/datasource stuff) in both scenarios.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now we're starting to work out more configurable aspects and we realize that we'll have a ton of extra configuration items which don't need to be different.&amp;nbsp; Like engine variable types, form types, business calendar etc.&amp;nbsp; And the way we're going now, we'll have to work out parsing for those 2 environments separate and document that separate.&amp;nbsp; That is a bad choice we think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'll be trying out a new strategy.&amp;nbsp; The reasoning is that we'll distinct between a dependency on spring for the configuration and a dependency on spring's transaction management.&amp;nbsp; The idea is that we'll refactor the ProcessEngineBuilder to use the spring bean xml configuration parsing.&amp;nbsp; That way of configuring would not use the spring transaction integration or the other spring integrations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The advantage is that all the non-tx-related configurations would only have to be implemented once and documented once.&amp;nbsp; And that will lead to less confusing documentation and usage of the engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The downside could be that we introduce a dependency from the activiti engine to spring-core for parsing of the configuration file.&amp;nbsp; I'm thinking of making that parsing pluggable in case people would really object against that dependency.&amp;nbsp; In that case, contributors could write a spring-bean-xml-parser in activiti to avoid that dependency.&amp;nbsp; Imo, i can live with a dependency on spring core for parsing the config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to stress that this would not create a full dependency on the spring style of doing things.&amp;nbsp; It's just for parsing the config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone see a problem with this approach?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll be starting to code a prototype now and hopefully later today we'll all be able to review it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 10:12:57 GMT</pubDate>
    <dc:creator>tombaeyens</dc:creator>
    <dc:date>2010-11-22T10:12:57Z</dc:date>
    <item>
      <title>configuration refactoring towards spring beans xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/configuration-refactoring-towards-spring-beans-xml/m-p/35506#M18647</link>
      <description>Hi,Now you can use activiti with and without spring.&amp;nbsp; And that is good.But we see a potential problem popping up.&amp;nbsp; There are now 2 styles of configuration: activiti cfg xml and the spring configuration.&amp;nbsp; Up to now there was good reason for this split up.&amp;nbsp; As the things that we have configurable are</description>
      <pubDate>Mon, 22 Nov 2010 10:12:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/configuration-refactoring-towards-spring-beans-xml/m-p/35506#M18647</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-11-22T10:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: configuration refactoring towards spring beans xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/configuration-refactoring-towards-spring-beans-xml/m-p/35507#M18648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it's not going to be trivial refactoring the and synchronizing the spring beans xml for the standalone case, programmatic case and the spring case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;especially i think in order to simplify the spring bean xml, this could impact the ProcessEngineBuilder api.&amp;nbsp; ideally i would like the api classes to be used in the spring bean configuration.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i think it's going to be too tight to try and squeeze these research and refactorings before ga release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but we can get around it by moving the ProcessEngineBuilder to the internal impl apis.&amp;nbsp; and promote ProcessEngines as the only way you can use the API now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 14:41:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/configuration-refactoring-towards-spring-beans-xml/m-p/35507#M18648</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2010-11-22T14:41:38Z</dc:date>
    </item>
  </channel>
</rss>

