Search in sources :

Example 6 with MacroProcessor

use of org.mvel2.MacroProcessor in project jbpm by kiegroup.

the class MVELActionBuilder method processMacros.

public static String processMacros(String consequence) {
    MacroProcessor macroProcessor = new MacroProcessor();
    macroProcessor.setMacros(macros);
    return macroProcessor.parse(delimitExpressions(consequence));
}
Also used : MacroProcessor(org.mvel2.MacroProcessor)

Example 7 with MacroProcessor

use of org.mvel2.MacroProcessor in project jbpm by kiegroup.

the class XPATHActionBuilder method processMacros.

public static String processMacros(String consequence) {
    MacroProcessor macroProcessor = new MacroProcessor();
    macroProcessor.setMacros(macros);
    return macroProcessor.parse(delimitExpressions(consequence));
}
Also used : MacroProcessor(org.mvel2.MacroProcessor)

Aggregations

MacroProcessor (org.mvel2.MacroProcessor)7 HashMap (java.util.HashMap)2 Macro (org.mvel2.Macro)2 JavaBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaBlockDescr)1 JavaCatchBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaCatchBlockDescr)1 JavaElseBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaElseBlockDescr)1 JavaFinalBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaFinalBlockDescr)1 JavaForBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaForBlockDescr)1 JavaIfBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaIfBlockDescr)1 JavaThrowBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaThrowBlockDescr)1 JavaTryBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaTryBlockDescr)1 JavaWhileBlockDescr (org.drools.compiler.rule.builder.dialect.java.parser.JavaWhileBlockDescr)1