Beispiel #1
0
        private ELResolver createElResolver()
        {
            CompositeELResolver compositeResolver = new CompositeELResolver();

            compositeResolver.add(new ArrayELResolver());
            compositeResolver.add(new ListELResolver());
            compositeResolver.add(new MapELResolver());
            compositeResolver.add(new ResourceBundleELResolver());
            compositeResolver.add(new BeanELResolver());
            return(new SimpleResolver(compositeResolver));
        }
Beispiel #2
0
        protected internal override ELResolver createElResolver()
        {
            CompositeELResolver compositeElResolver = new CompositeELResolver();

            compositeElResolver.add(new VariableScopeElResolver());
            compositeElResolver.add(new VariableContextElResolver());

            if (beans != null)
            {
                // Only expose limited set of beans in expressions
                compositeElResolver.add(new ReadOnlyMapELResolver(beans));
            }
            else
            {
                // Expose full application-context in expressions
                compositeElResolver.add(new ApplicationContextElResolver(applicationContext));
            }

            compositeElResolver.add(new ArrayELResolver());
            compositeElResolver.add(new ListELResolver());
            compositeElResolver.add(new MapELResolver());
            compositeElResolver.add(new BeanELResolver());

            return(compositeElResolver);
        }
        private ELResolver createElResolver()
        {
            CompositeELResolver compositeResolver = new CompositeELResolver();

            compositeResolver.add(new ArrayELResolver());
            compositeResolver.add(new ListELResolver());
            compositeResolver.add(new MapELResolver());
            compositeResolver.add(new JsonNodeELResolver());
            compositeResolver.add(new ResourceBundleELResolver());
            compositeResolver.add(new DynamicBeanPropertyELResolver(typeof(ItemInstance), "getFieldValue", "setFieldValue"));
            compositeResolver.add(new BeanELResolver());
            return(new SimpleResolver(compositeResolver));
        }
Beispiel #4
0
        public static ELResolver lookupResolver(AbstractProcessApplication processApplication)
        {
            ServiceLoader <ProcessApplicationElResolver> providers       = ServiceLoader.load(typeof(ProcessApplicationElResolver));
            IList <ProcessApplicationElResolver>         sortedProviders = new List <ProcessApplicationElResolver>();

            foreach (ProcessApplicationElResolver provider in providers)
            {
                sortedProviders.Add(provider);
            }

            if (sortedProviders.Count == 0)
            {
                return(null);
            }
            else
            {
                // sort providers first
                sortedProviders.Sort(new org.camunda.bpm.application.ProcessApplicationElResolver_ProcessApplicationElResolverSorter());

                // add all providers to a composite resolver
                CompositeELResolver compositeResolver = new CompositeELResolver();
                StringBuilder       summary           = new StringBuilder();
                summary.Append(string.Format("ElResolvers found for Process Application {0}", processApplication.Name));

                foreach (ProcessApplicationElResolver processApplicationElResolver in sortedProviders)
                {
                    ELResolver elResolver = processApplicationElResolver.getElResolver(processApplication);

                    if (elResolver != null)
                    {
                        compositeResolver.add(elResolver);
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method:
                        summary.Append(string.Format("Class {0}", processApplicationElResolver.GetType().FullName));
                    }
                    else
                    {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.getName method:
                        LOG.noElResolverProvided(processApplication.Name, processApplicationElResolver.GetType().FullName);
                    }
                }

                LOG.paElResolversDiscovered(summary.ToString());

                return(compositeResolver);
            }
        }
Beispiel #5
0
        protected internal virtual ELResolver createElResolver()
        {
            CompositeELResolver elResolver = new CompositeELResolver();

            elResolver.add(new VariableScopeElResolver());
            elResolver.add(new VariableContextElResolver());
            elResolver.add(new MockElResolver());

            if (beans != null)
            {
                // ACT-1102: Also expose all beans in configuration when using standalone engine, not
                // in spring-context
                elResolver.add(new ReadOnlyMapELResolver(beans));
            }

            elResolver.add(new ProcessApplicationElResolverDelegate());

            elResolver.add(new ArrayELResolver());
            elResolver.add(new ListELResolver());
            elResolver.add(new MapELResolver());
            elResolver.add(new ProcessApplicationBeanElResolverDelegate());

            return(elResolver);
        }