Skip to content


Spring jBPM4 CR1 Demo

Last Friday, the jBPM Team has released jBPM 4.0.CR1. I’ve updated the demo, not much has changed.
You can find the source code here .
Most notable changes to the demo:

Resolving Spring Beans

As I mentioned briefly, it is now possible to call Spring beans from a process. Using the scripting, any bean with any parameter can be called from the process.

Testing using AbstractTransactionJbpmTestCase

As we are used in spring-test, we test our processes in a transactional way. Using this class, we can accomplish the same.

The only thing missing now is timer support, which I’ll add before the final release!

Any feedback is welcome,

KR, Andries

Posted in jbpm.


3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. sridhar says

    test class rocks..

  2. rescue says

    How do you declare an arg which is a class object?

  3. Juan Carlos Vergara says

    Hi André, I am using your demo to run the examples included in the JBPM4 Distribution.
    Almost all the examples run Ok with your configuration,

    But I have the following exception running the AsyncActivityTest:

    java.lang.NullPointerException at org.jbpm.pvm.internal.jobexecutor.JobExecutorMessageSession.send(JobExecutorMessageSession.java:59)

    The file process.jpdl.xml marks the process as asynchronous:
    <java name="generate pdf" continue="async"

    In the class JobExecutorMessageSession.java seems that the transaction managed by Spring is not propagating to the Job Session:
    public void send(Message message) {
    log.debug("sending message "+ReflectUtil.getUnqualifiedClassName(message.getClass()));
    …
    transaction .registerSynchronization(new JobAddedNotification(jobExecutor));
    }
    }
    If I remove the continue="async" attribute the test runs ok.
    Any comment about this issue will be very appreciate,
    Thanks



Some HTML is OK

or, reply to this post via trackback.