<?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: Custom ELResolver in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33552#M17506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I see… (to quick to react originally to prevent getting a dependency on spring in our (my) project ;-))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The order of resolvers my be important though (performace wise i've noticed) , this is currently fixed in the code, but we could make that configurable to this way, and even disable resolvers right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 08:02:48 GMT</pubDate>
    <dc:creator>ronald_van_kuij</dc:creator>
    <dc:date>2011-07-19T08:02:48Z</dc:date>
    <item>
      <title>Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33544#M17498</link>
      <description>Hi!For my current project it would be very helpfull to inject my own, custom ELResolver into the engine. My customer uses a very "flexible" bean structure with configurable classes and properties, there is no way to implement this with simple setter and getters. I would like to reflect this structur</description>
      <pubDate>Thu, 17 Feb 2011 12:26:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33544#M17498</guid>
      <dc:creator>tbe</dc:creator>
      <dc:date>2011-02-17T12:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33545#M17499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tom,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look in the ProcessEngineFactoryBean, this uses a custom SpringExpressionManagers, which adds an ELResolver to handle spring-beans. This way, you can use all your spring-beans. If using spring-beans doesn't cut it, you could write a similar mechanism as done there: creating your own expression-manager, which creates composite EL-resolver containing your custom EL-resolving logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, there is no easier way of plugging in custom ELResolvers…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:33:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33545#M17499</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-17T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33546#M17500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frederik&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your very fast help! I didn't use the spring configuration before, but now I inherited the spring ProcessEngineFactoryBean and was able to inject my own ELResolver. Inside expressions, I am now able to access spring resources and use own resolvers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have a second question: Is it possible to reach spring beans from ScriptTasks (Groovy) and to use custom ELResolvers there, too?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 19:48:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33546#M17500</guid>
      <dc:creator>tbe</dc:creator>
      <dc:date>2011-02-17T19:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33547#M17501</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;Using beans in scripts will be available in activiti 5.3 (&lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-97" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-97&lt;/A&gt;&lt;SPAN&gt;), which will be released beginning of march.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 07:47:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33547#M17501</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-18T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33548#M17502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also the ProcessEngineConfigurationImpl has a configurable property expressionManager (class ExpressionManager);&amp;nbsp; If your configure a specialized version of it, you can overwrite the method createElResolver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 13:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33548#M17502</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2011-02-18T13:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33549#M17503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've extended the base ExpressionManager to allow me to add any number of ELResolvers using spring context. Here's the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class ExtendedExpressionManager extends ExpressionManager&lt;BR /&gt;{&lt;BR /&gt; private List&amp;lt;ELResolver&amp;gt; extendedResolvers;&lt;BR /&gt;&lt;BR /&gt; @Override&lt;BR /&gt; protected ELResolver createElResolver(VariableScope variableScope)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; ELResolver baseResolver = super.createElResolver(variableScope);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; CompositeELResolver result = new CompositeELResolver();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for (ELResolver resolver : extendedResolvers)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; result.add(resolver);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; result.add(baseResolver);&lt;BR /&gt;&amp;nbsp; return result;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; public void setExtendedResolvers(List&amp;lt;ELResolver&amp;gt; extendedResolvers)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; this.extendedResolvers = extendedResolvers;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this code is added to the ExpressionManager itself by the developers, it allows easier addition of ELResolvers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 11:52:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33549#M17503</guid>
      <dc:creator>iravanchi</dc:creator>
      <dc:date>2011-07-18T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33550#M17504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think it should be added to the default expression manager since it would require everyone to use Spring. But making the expressionmanager itself configurable, would allow you to configure a custom expressionmanager and configure the additional resolvers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But these are just my two cents&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:14:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33550#M17504</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-18T14:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33551#M17505</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;This doesn't force everyone to use Spring at all. There's no dependency to Spring here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can set the property directly by calling the setter method and configure the ExpressionManager in pure Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Hamed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 05:58:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33551#M17505</guid>
      <dc:creator>iravanchi</dc:creator>
      <dc:date>2011-07-19T05:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom ELResolver</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33552#M17506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I see… (to quick to react originally to prevent getting a dependency on spring in our (my) project ;-))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The order of resolvers my be important though (performace wise i've noticed) , this is currently fixed in the code, but we could make that configurable to this way, and even disable resolvers right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 08:02:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-elresolver/m-p/33552#M17506</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-19T08:02:48Z</dc:date>
    </item>
  </channel>
</rss>

