<?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 EL: Invoking methods using parameters and el version clashes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29171#M14886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A very powerful feature of the EL 2.1.2 spec (part of Java EE6) is the possibility of invoking method calls with parameters. No doubt, this would be a great feature to have for developers to use in their process definitions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, take assignment listeners (soon to be implemented by Joram). It would allow developers to use a method as assignment Listener. This way, he/she can pass execution variables into methods on existing (spring)beans, instead of forcing the developer to implement a one-liner Listener class that does the except same thing. This way, no hard link is explicitly needed to activity from the existing spring-beans, since we can just pass simple native java types (more loosely coupled).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JUEL 2.2.1 provides an implementation for the 2.1.2 spec. Unfortunately, we can't just use JUEL since the EL-version clashes with older 1.0. Therefore I suggest the following solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Since JUEL is apache-licensed, we can modify and extend the source-code, of course complying to the &lt;/SPAN&gt;&lt;A href="http://www.apache.org/licenses/LICENSE-2.0" rel="nofollow noopener noreferrer"&gt;http://www.apache.org/licenses/LICENSE-2.0&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Refactoring the juel-api classes and rename all javax.el to another package-name so it doesn't collide with the javax.el. The juel-impl classes will now be detached from javax.el and would work in any environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Since we use ActivitiExpression in activiti, a layer between the engine and the expression implementation, the switch from javax.el.ValueExpressions to our own will be transparent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* We can add a mechanism that can, when running in EL 2.1.2 environment, eg. Tomcat 7 or glassfish EE6, switch to the default EL-strategy (using javax.el.ExpressionManagerFactory)&amp;nbsp; and use the environement/container provided 2.1.2 EL-implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* We will build the modified JUEL as separate project (eg. activiti-juel or activiti-el) and add this as a dependency to activiti-engine, replacing JUEL-impl&amp;nbsp; dependency. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts, remarks or suggestions are welcome!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 10:12:30 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2010-10-01T10:12:30Z</dc:date>
    <item>
      <title>EL: Invoking methods using parameters and el version clashes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29171#M14886</link>
      <description>A very powerful feature of the EL 2.1.2 spec (part of Java EE6) is the possibility of invoking method calls with parameters. No doubt, this would be a great feature to have for developers to use in their process definitions. For example, take assignment listeners (soon to be implemented by Joram). I</description>
      <pubDate>Fri, 01 Oct 2010 10:12:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29171#M14886</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-10-01T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: EL: Invoking methods using parameters and el version clashes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29172#M14887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way you mentioned seems easy to do, and it also solves one of my issues too - the JAR issue in Tomcat 6. (EL jar file needs to be replaced in Tomcat's lib in order for Activiti to work)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how are you going to keep-up with the updates on JUEL? This way, you need to re-do the above importing-renaming thing every time a new JUEL comes out, or forget about the updates / bugfixes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 07:52:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29172#M14887</guid>
      <dc:creator>iravanchi</dc:creator>
      <dc:date>2010-10-07T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: EL: Invoking methods using parameters and el version clashes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29173#M14888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now we are using the source-code in JUEL 2.2.1 tag, which is exactly the same codebase as found in the official release of JUEL 2.2.1 found in maven. In case there is a new version of JUEL and we absolutely need it, the importing and refactoring should be performed again. This is indeed a bit more hassle than just updating the version in the pom, but it's a choice we are willing to take in order to get the parameterised method-expressions in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, JUEL's codebase is very stable and is build upon EL-spec that won't likely change again in the next couple of years.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 08:14:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29173#M14888</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-10-07T08:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: EL: Invoking methods using parameters and el version clashes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29174#M14889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's totally convincing for me, specially the "JUEL being stable" point. Thanks for the reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 08:21:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/el-invoking-methods-using-parameters-and-el-version-clashes/m-p/29174#M14889</guid>
      <dc:creator>iravanchi</dc:creator>
      <dc:date>2010-10-07T08:21:20Z</dc:date>
    </item>
  </channel>
</rss>

