Friday, September 2, 2011

JBPM and JEXL Integration

Following steps need to perform to configure the JEXL as a expression language for the JBPM.

1) Create a jbpm.default.scriptmanager.xml file.
     File contains following tag.

<?xml  version="1.0" encoding="UTF-8" ?>
<script-manager default-expression-language="jexl" default-script-language="jexl">
<script-language name="jexl" 
    factory="org.apache.commons.jexl2.scripting.JexlScriptEngineFactory" />
<script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
<script-language name="bsh" factory="org.jbpm.pvm.internal.script.BshScriptEngineFactory" />
<script-language name="groovy"
   factory="org.jbpm.pvm.internal.script.GroovyScriptEngineFactory" />

2) Import jbpm.default.scriptmanager.xml file into jbpm.default.cfg.xml file.
3) For the decision node specify the condition as follows.

  <decision name="evaluate document">
    <transition to="submit document">
      <condition expr="content=='good'" lang="jexl" />
    <transition to="try again">
      <condition expr="content=='not so good'" lang="jexl"/>
    <transition to="give up" />


  1. It is very useful information about JBPM Integration for all and it is very simple to understand. Thanks for sharing it.

  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai