The AS7 book!

JBoss Tuning

JBoss 5 book

No Registration required. Use your FB account to add comments to articles.

Twitter Button

Poll

Which is your favourite JSF library?
 
Top Programming Sites
Home JBoss howto JBPM How do you embed Java code in your JPDL ?

How do you embed Java code in your JPDL ?

  
JBoss recipe of the day
You can use a BeanShell expression to add a Java script in your JPDL process definition, you can use the <script> tag

ex:
<process-definition>
  <event type="node-enter">
    <script>
      System.out.println("Entered node"+node);
    </script>

  </event>
  ...
</process-definition> 
You can use in your script all process variables created plus the following process variables :
  • executionContext
  • token
  • node
  • task
  • taskInstance