[jBPM Users] - Re: Unit test succeeds but process does not properly run whe
by sebastian.s
Thanks for the hint. Right now I was trying it again and it shows up like that I also get into trouble if I use the API directly. I have a webservice invoking methods on the jBPM API. By the use of the API I can start a new process instance and I can grab the assigned process instance id. I can even query for the active activities and they show up right. But as soon as I want to access the task list of one of the users having the tasks in their list an exception is thrown:
| Caused by: org.hibernate.LazyInitializationException: could not initialize proxy
| - no Session
| at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyIn
| itializer.java:86)
| at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(Abstrac
| tLazyInitializer.java:140)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(Ja
| vassistLazyInitializer.java:190)
| at org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_4.getId(Execut
| ionImpl_$$_javassist_4.java)
|
When retrieving the task list of a user who does not participate in the process no exception is thrown.
To me this now looks a bit like the different resolved or rejected issues related to problems with fork and join. Since I got the problems although without using the console it can't be because or just because of the console.
Confused regards
Sebastian
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259541#4259541
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259541
15 years, 3 months
[JCA] - Re: Basic understanding of JCA-Workflow
by vickyk
"LeoLo" wrote :
| Or when repository.login(...) in the service-method is called?
|
The connection should be taken when login() is called, you can verify this by looking at the implementation.
"LeoLo" wrote :
| When is the connection released and returned to the pool? (When session-logout is called or when the transaction is committed or ... ?)
|
It should be when session.logou() is called, I would recommend to check the RA implementation from JackRabbit.
"LeoLo" wrote :
| Is it possible, that during a service-method more than one connection may be used?
|
| Any hints and references are really appreciated.
|
I can't make out from the methods calls that multiple connections are being used in the application flow.
You can also look at the ManagedConnectionPool MBean from the jmx-console to see the evolution of the connections in the pool.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259536#4259536
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259536
15 years, 3 months
[jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h
by newcomer1
Have you found a solution for this? We are have the same use case were we have a process with a lot of subprocesses that create several tasks and we need a simple way to query for all the tasks for the process including tasks generated by its subprocesses. The interfaces have some limitations and we have seen the need to create our own custom repositories that works over the jbpm tables for some of these queries using oracle specific features to do queries over tree structures.
jBPM seems very configurable and I think many projects will need to extend the basic service interfaces and the out of box query support using their own commands and extensions. The service interfaces cover the basic and most used features and I can understand that the jBPM development team wants to keep them slim.
You could create a custom command, but for me it seems like you will not come away from a downcast if you for example need to create custom queries using the hibernate critereia api.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259533#4259533
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259533
15 years, 3 months