Hi,
I just spend a few houres to figure how to use Hibernate Annotaiton with jBPM.
Here is the receipt (can probably be improved):
1-- Create an implementation of the db persistence service:
-
package com.btc.fwk.jbpm;
After looking on the signal() source code, it looks that the default transition
is mandatory for a node in order to be able to call signal(String).
I'd like to use only named transitions and events.
Is there is any reason?
View the original post :
You can use WebServices to access remotely to your servers.
Just call your web services from your jbp ActionHandler.
my 2 cts
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3929308#3929308
Reply to the post :
jBPM is just a Java API. You can use it in a J2SE Java application, in a J2EE
Web application or inside of an EJB Container.
I'm not sure to understand your question, but if you just want to try some
application code in Eclipse, you don't need a server. You the JBoss IDE and
create jBPM
This problem occurs for signal(String name), but not for signal(Trnasition t).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3929313#3929313
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929313
Hi,
Is it possible to develop the applicaiton code with EJB3 entities annotations
and using jBPM ?
EntityManager and jBPM must share the same Hibernate Session and cache.
Should I hack the EntityManagerImpl to use the SessionFactory build by jBPM ?
Thibault
View the original post :
I run a trivial example.
The token is located on a TaskNode. I checked.
1 Token token = processInstance.getRootToken();
2 Node node = token.getNode();
3 TaskNode taskNode = (TaskNode)node;
The node is not a TaskNode, but an hibernate proxy, and I get the following
exception on line 3:
Strange,
If of write:
1 Token token = processInstance.getRootToken();
2 Node node = processDefinition.getNode(token.getNode().getName());
3 TaskNode taskNode = (TaskNode)node;
It works !
It looks that the Node returned by the token is not correctly instanciated.
Something I didn't get or a bug
Fixed by writing:
1 Token token = processInstance.getRootToken();
2 TaskNode taskNode = (TaskNode)jbpmContext.
getSession().
load(TaskNode.class,
token.getNode().getId());
See:
Hi,
I run a j2se application with jax.persistence, but I cannot get the
EntityManagerFactory declared in the persistence.xml file.
My code:
factory = Persistence.createEntityManagerFactory(em);
I get: No Persistence provider for EntityManager named em
The persistence.xml file is located in
Hi,
I run a j2se application with jax.persistence, but I cannot get the
EntityManagerFactory declared in the persistence.xml file.
My code:
factory = Persistence.createEntityManagerFactory(em);
I get: No Persistence provider for EntityManager named em
The persistence.xml file is located in
11 matches
Mail list logo