Skip to content

Commit

Permalink
refactored use of mvel ExpressionCompiler to avoid deprecated/removed…
Browse files Browse the repository at this point in the history
… method usage
  • Loading branch information
mswiderski committed Oct 21, 2015
1 parent dffa03a commit 792514a
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -322,12 +322,12 @@ else if (node instanceof SubProcessNode) {
errors.add(new ProcessValidationErrorImpl(process,
"Action node '" + node.getName() + "' [" + node.getId() + "] has empty action."));
} else if( "mvel".equals( droolsAction.getDialect() ) ) {
try {
ExpressionCompiler compiler = new ExpressionCompiler(actionString);
compiler.setVerifying(true);
try {
ParserContext parserContext = new ParserContext();
//parserContext.setStrictTypeEnforcement(true);
compiler.compile(parserContext);
ExpressionCompiler compiler = new ExpressionCompiler(actionString, parserContext);
compiler.setVerifying(true);
compiler.compile();
List<ErrorDetail> mvelErrors = parserContext.getErrorList();
if (mvelErrors != null) {
for (Iterator<ErrorDetail> iterator = mvelErrors.iterator(); iterator.hasNext(); ) {
Expand Down

0 comments on commit 792514a

Please sign in to comment.