Skip to content


jBPM4 demo’s

Nils Preusker, Joram Barrez and I have uploaded some demo’s on jBPM4. If you like to start fast and use demo’s which integrates different technologies, this is a good place to start.

You can find the demo’s at the jbpm svn.

Regards!
Andries

Posted in Uncategorized.


4 Responses

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

  1. Bjorn Harvold says

    Great example guys. Thank you so much!!

    I am running into a problem and I can’t figure out what to do. Here’s the interesting part of the code:

    org.hibernate.dialect.PostgreSQLDialect
    false
    org.hibernate.cache.EhCacheProvider

    true
    true
    org.hibernate.transaction.JDBCTransactionFactory
    thread

    classpath:hibernate.cfg.xml

    classpath:jbpm.execution.hbm.xml
    classpath:jbpm.repository.hbm.xml
    classpath:jbpm.task.hbm.xml
    classpath:jbpm.history.hbm.xml

    When I start it up it works fine. However, hibernate throws an error:
    opening jbpm-springPvmEnvironment[147460152]
    2009-09-03 00:49:53,805 TRACE Log4jLog.trace():72 – creating transaction
    2009-09-03 00:49:53,805 TRACE Log4jLog.trace():72 – org.jbpm.pvm.internal.tx.StandardTransaction not found in transaction 1423542371
    2009-09-03 00:49:53,805 TRACE Log4jLog.trace():72 – org.jbpm.pvm.internal.tx.StandardTransaction not found in process-engine 1126371646
    2009-09-03 00:49:53,807 TRACE Log4jLog.trace():72 – org.springframework.transaction.PlatformTransactionManager not found in transaction 1423542371
    2009-09-03 00:49:53,807 TRACE Log4jLog.trace():72 – org.springframework.transaction.PlatformTransactionManager not found in process-engine 1126371646
    2009-09-03 00:49:53,808 TRACE Log4jLog.trace():72 – found org.jbpm.pvm.internal.session.DbSession in transaction
    2009-09-03 00:49:53,809 TRACE Log4jLog.trace():72 – constructing org.jbpm.pvm.internal.hibernate.DbSessionImpl
    2009-09-03 00:49:53,810 TRACE Log4jLog.trace():72 – initializing org.jbpm.pvm.internal.hibernate.DbSessionImpl
    2009-09-03 00:49:53,810 TRACE Log4jLog.trace():72 – found org.hibernate.Session in transaction
    2009-09-03 00:49:53,810 TRACE Log4jLog.trace():72 – constructing org.hibernate.impl.SessionImpl
    2009-09-03 00:49:53,810 TRACE Log4jLog.trace():72 – org.hibernate.SessionFactory not found in transaction 1423542371
    2009-09-03 00:49:53,810 TRACE Log4jLog.trace():72 – org.hibernate.SessionFactory not found in process-engine 1126371646
    2009-09-03 00:49:53,812 TRACE Log4jLog.trace():72 – getting current hibernate session
    2009-09-03 00:49:53,812 TRACE Log4jLog.trace():72 – org.jbpm.pvm.internal.tx.StandardTransaction not found in transaction 1423542371
    2009-09-03 00:49:53,812 TRACE Log4jLog.trace():72 – org.jbpm.pvm.internal.tx.StandardTransaction not found in process-engine 1126371646
    2009-09-03 00:49:53,813 TRACE Log4jLog.trace():72 – initializing org.hibernate.impl.SessionImpl
    2009-09-03 00:49:53,813 DEBUG Log4jLog.debug():60 – start querying first acquirable job…
    2009-09-03 00:49:53,813 INFO Log4jLog.info():52 – exception while executing command org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd@74dd9f68
    org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
    at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297)
    at $Proxy37.getNamedQuery(Unknown Source)
    at org.jbpm.pvm.internal.hibernate.DbSessionImpl.findFirstAcquirableJob(DbSessionImpl.java:387)
    at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(AcquireJobsCmd.java:63)
    at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(AcquireJobsCmd.java:41)
    at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
    at org.jbpm.pvm.internal.spring.CommandTransactionCallback.doInTransaction(CommandTransactionCallback.java:50)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
    at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:77)
    at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
    at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
    at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJobs(DispatcherThread.java:126)
    at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:67)
    2009-09-03 00:49:53,814 TRACE Log4jLog.trace():72 – closing transaction…
    2009-09-03 00:49:53,814 TRACE Log4jLog.trace():72 – closing PvmEnvironment[147460152]
    2009-09-03 00:49:53,814 TRACE Log4jLog.trace():72 – closed PvmEnvironment[147460152]

    Any ideas why it’s not getting my transactionManager? Your setup and mine are almost identical.

  2. Bjorn Harvold says

    My spring beans didn’t display properly :(

  3. RG says

    HI, i would like to ask if I can create a state inside a process which called as sub-process? thanks

  4. Larry H says

    Andre:

    I have a question @ http://www.inze.be/andries/?p=122 that you could answer for me. But basically, I am running into many problems when building your jBPM4 example from source, in that the maven dependencies are broken or missing, especially the 4.0.0-SNAPSHOT ones. Appreciate in advance your answers.



Some HTML is OK

or, reply to this post via trackback.

 



Improve Your Life, Go The myEASY Way™