4 Replies Latest reply on Jun 29, 2010 4:04 AM by jochen_mader

    How to add your own EL Resolver

    jochen_mader

      Please forgive me if the question was already answered but right now the search function only produces "Ooops, Internal Server Error".

      I need to add a custom resolver to JUEL in JBPM.

      What would be the correct way to do this?

       

      Thanks,

       

      Jochen

        • 1. Re: How to add your own EL Resolver
          rebody

          Hi Jochen,

           

          Now, there is no extension entry for doing that.  if you want to add an addition elResovler,  you have to re-write  org.jbpm.pvm.internal.script.JuelScriptEngine.  There is a method named makeResovler().

           

           

          private ELResolver makeResolver()
            {
              CompositeELResolver chain = new CompositeELResolver();
          
              chain.add(new ArrayELResolver());
          
              chain.add(new ListELResolver());
          
              chain.add(new MapELResolver());
          
              chain.add(new ResourceBundleELResolver());
          
              chain.add(new BeanELResolver());
          
              return new SimpleResolver(chain);
            }
          

           

          Add whatever you want to.

           

          Good Luck.

          • 2. Re: How to add your own EL Resolver
            jochen_mader

            Thanks for your reply, I will do that.

            I was just hoping there would be a way to avoid that.

             

            cheers

             

            Jochen

            • 3. Re: How to add your own EL Resolver
              rebody

              Hi Jochen,

               

              Do you have any good idea for handle this?  If you have a good plan,  please open an issue on jira for it.  Then we could achieve it in the next version.  Thank you very much.

              • 4. Re: How to add your own EL Resolver
                jochen_mader

                Sorry for the long delay.

                I am starting to look into this right now.

                If I find a good solution I will definitely submit it back.