Annacarla Argenio [
http://community.jboss.org/people/annacarla] created the discussion
"Jbpm4 and existing database"
To view the discussion, visit:
http://community.jboss.org/message/565748#565748
--------------------------------------------------------------
Hi all,
I hope someone can help me.
I had to move my Jbpm4 to a Jboss 5.0.1 (before it was running on Jboss 5.0.0).
I followed all the process to install the Jbpm on Jboss. I didn't need to install the
JBPM schema because I already have it and it's already filled in with data.
Now, if I start a brand new process in my app, everything works fine but if I try to
execute the next step of the business process for an existing record I get this error:
10:32:24,041 INFO [DefaultCommandService] exception while executing command
org.jbpm.pvm.internal.cmd.CompleteTaskCmd@63ab94
org.jbpm.api.JbpmException: execution is not in a activity or in a transition
at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:402)
at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at
org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_53.signal(ExecutionImpl_$$_javassist_53.java)
at org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:194)
at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:49)
at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:31)
at
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at
org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.executeInExistingTx(JtaTransactionInterceptor.java:65)
at
org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:51)
at
org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithoutRetry(JtaRetryInterceptor.java:56)
at
org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:48)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at
org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:91)
I couldn't find any valuable help in internet.
It's like the JBPM is not able to "hook" itself to an existing database.
Do I have to execute some other step to synchronize the JBPM with the database?
Any help is highly appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/565748#565748]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]