[jBPM] - OSGi: Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl
by Mariusz Cwikla
Mariusz Cwikla [https://community.jboss.org/people/mariuszcwikla] created the discussion
"OSGi: Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl"
To view the discussion, visit: https://community.jboss.org/message/780506#780506
--------------------------------------------------------------
Hello,
I'm trying to run JBPM 5.4 inside an OSGi container. I've encountered a problem when using JPAKnowledgeService.newStatefulKnowledgeSession.
I get following error:
java.lang.RuntimeException: Provider org.drools.persistence.jpa.KnowledgeStoreServiceImpl could not be set.
at org.drools.persistence.jpa.JPAKnowledgeService.loadProvider(JPAKnowledgeService.java:155)
at org.drools.persistence.jpa.JPAKnowledgeService.getJPAKnowledgeServiceProvider(JPAKnowledgeService.java:143)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
....
Caused by: java.lang.ClassNotFoundException: org.drools.persistence.jpa.KnowledgeStoreServiceImpl
I found out that JPAKnowledgeService uses reflection to instantiate KnowledgeStoreServiceImpl class. Both classes are in org.drools.persistence.jpa package, but one is knowledge-api-5.5.0.Final.jar and second is in drools-persistence-jpa-5.5.0.Final.jar.
I'm not an OSGi expert, but I think that both classes should be in one .jar file (currently it's "split packages" problem).
Currently I have a workaround to use KnowledgetStoreServiceImpl directly and not use JPAKnowledgeService.
Or is there another workaround?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780506#780506]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[jBPM] - Human task escalation understanding
by javajbpmuser
javajbpmuser [https://community.jboss.org/people/javajbpmuser] created the discussion
"Human task escalation understanding"
To view the discussion, visit: https://community.jboss.org/message/796361#796361
--------------------------------------------------------------
Hi community,
I have some questions about Human Task node in jbpm v5.4. Actually I am designing a sample process that contains two human tasks ,in the second one I had defined Escalation mechanism ( when task is not-started , set expires at to 60s and set user Id).
When process reaches the second node of my process I see that after 60s , that Task status ( in jbpm database table Task) changed from "Reserved" to "Ready", but no user is assigned on that task (actualOwner_id had been changed to NULL) . I was wondering what could be the cause of that ?
I tried to see the java API but I did not find how I can catch the escalation event for Human Task , May I have any idea or help about how I can do that ? because actually what I am trying to do is when "Human Task" had been reassigned to another user , I should call a Java method to update some data on my application.
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796361#796361]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months