• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
MtiTekFlow | About jBPM
  1. References
  2. Using jBPM plugins in Eclipse
  3. jBPM unit testing
  4. jBPM DDL scripts

  1. References
    The documentation of jBPM can be found in:
    jBPM Documentation 7.28.0.Final
    jBPM JavaDocs 7.28.0.Final
  2. Using jBPM plugins in Eclipse
    You can install the jBPM plugins in Eclipse using the folowing URL: http://downloads.jboss.org/jbpm/release/latestFinal/updatesite/

    Among the available plugins, you will use the Eclipse editor for creating BPMN2 processes.

    process editor

    Also you may be interested to create a jBPM project using the assistant plugin that can create an empty project, a sample project, or even download existing projects from jBPM online repository.
  3. jBPM unit testing
    You can add the jBPM-test module to your maven project:


    Here's a sample unit test code, generated by the jBPM plugin:


    You can look at the jbpm-test source code (jbpm-test-7.28.0.Final-sources) where you will find some sample codes that will help you understand how jBPM works.
    The main class you may be interested to look at is: org.jbpm.test.JbpmJUnitBaseTestCase

    For example if you are interested to see an example of how to create an instance of the org.kie.api.runtime.manager.RuntimeEnvironmentBuilder:


    If you are interested to see an example of how to create an instance of the org.kie.api.runtime.manager.RuntimeManager:


    You can also use the following methods to assert some conditions related to your unit testing:
    - void assertProcessInstanceState(long processInstanceId, Integer expectedState, String message)
    - void assertNodeActive(long processInstanceId, KieSession ksession, String... name)
    - void assertNodeTriggered(long processInstanceId, String... nodeNames)
    - ...
  4. jBPM DDL scripts
    You can download the jBPM DDL scripts from github:
    ► https://github.com/droolsjbpm/jbpm/tree/master/jbpm-installer/src/main/resources/db/ddl-scripts

    Here are the paths where you can find the jBPM DDL scripts for each supported database:

    • db2

    • derby

    • h2

    • hsqldb

    • mysql5

    • mysqlinnodb

    • oracle

    • postgresql

    • sqlserver

    • sqlserver2008

    • sybase
© 2025  mtitek