cancel
Showing results for 
Search instead for 
Did you mean: 

Replacement for JbpmExpressionEvaluator

sebastian_s
Champ in-the-making
Champ in-the-making
Hello everybody,

I am looking for the right replacement for JbpmExpressionEvaluator to generate specific task names. In jBPM 3.2 it was possible to write something like the following:


String taskExpression = "Work on project #{projectname} for customer #{customername}
String taskName = JbpmExpressionEvaluator.evaluate(taskExpression, executionContext);

with projectname and customername being process variables.

This would then evaluate to "Work on project Important Project XYZ for customer ABC" depending on the process variables.

Any hints?

Thanks in advance
Sebastian
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
I hope you're looking for the Activiti counterpart of the JbpmExpressionResolver Smiley Wink ?

Take a look at the class "org.activiti.engine.impl.el.ExpressionManager". You can subclass this (and add custom ELResolvers to resolve variables in expressions the way you want). The custom ExpressionManager can be set on the ProcessEngineConfiguration.

A good example is the org.activiti.spring.ProcessEngineFactoryBean we ship, it set's a custom expression manager as well (org.activiti.spring.SpringExpressionManager.SpringExpressionManager(ApplicationContext, Map<Object, Object>).

sebastian_s
Champ in-the-making
Champ in-the-making
Hello Frederik,

thanks a lot for your hint. Yes, I was looking for the Activiti counterpart.

Have a nice christmas!

SEbastian
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.