Jun 16th, 2006, 05:43 AM
how to integrate JBPM3.1 with custom business logic?
I have to build an application which uses a non-standard DAO/ORM-Template mechanism. This is a simple CRUD application. What I have to achieve is to build e.g. an update process which uses a workflow in the background. For a workflow-engine I'd like to use JBpm3.1 integrated with Spring.
My problem is, I don't know where I can add my custom object update? If I build the jbpm schema, it uses hibernate, and has its own hibernate-transaction proxy.
What I have to achieve is that when the jbpm loads a POJO it should read POJO attribute's values from my custom dao's read method, and when the update is done it should call my custom update, then jbpm should go to the workflow's next node - update itself, all these things in the same transaction, so commits will be consistent.
I don't know where to start the integration. Should I use another proxy bean, or should I expose this 1) save jbpm, 2) save custom dao in a Manager - transaction is the question? Or should I use AOP?
Thanks for any hint.