[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
16 years, 6 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
16 years, 6 months
[jBPM Users] - Re: Using JBPM for document workflow in a Java/Flex CMS soft
by mesa
i have done few things till now and will need bit help from kukeltje :)
i have integrated jcrTemplate using spring and now i am able to play with repository,able to add node and all.
according to jbpm document i can add jcrnode as process variable.
now issue will come up once i try to retrieve store jcrNode from process variable ---
getObject() method is jcrNodeInstance.class says that jbpm will try to get configured services in its context and will try to find a jcrService and once service instance is found then few matching things will be performed and object can be retrieved.
Main problem left down is configuring a JCR Service is JBPMContext :
1) i tried extending jbpmContext and tried to add my service (Extending JcrService)
@Override
protected JbpmContext getContext() {
JbpmContext context = super.getContext();
context.getServices().getPersistenceService();
context.getServices().setAuthenticationService(authenticationService);
return context;
}
here i do not see anyway to attach a jcrService instance.
2) i then went to figure out a way in jbpm.cfg.xml . i checked that JackRabbitServiceFactory requires a configuration ----i think it is repository.xml and directory---may be home dir to create a service.
i am unable to configure service in jbpm.cfg.xml.
i added the service like this :::
<jbpm-context>
classpath:repository.xml
/home/mayank/jackrabbit
</jbpm-context>
i get :: unable to Parse jbpm.cfg.xml
Code of service factory says ::
protected synchronized Repository getRepository() {
if (repository==null) {
try {
InputStream stream = ClassLoaderUtil.getStream(configuration);
RepositoryConfig config = RepositoryConfig.create(stream, directory);
repository = RepositoryImpl.create(config);
} catch (Exception e) {
// NOTE that Error's are not caught because that might halt the JVM and mask the original Error.
throw new JbpmException("couldn't create new jackrabbit repository with configResource '"+configuration+"' and directory '"+directory+"'", e);
}
}
return repository;
}
can someone help on this .....
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259522#4259522
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259522
16 years, 6 months
[jBPM Users] - Weird schema generation in 3.3.1.GA version
by freak182
Hello,
I just recently updated from jbpm 3.2.x to 3.3.1.GA. Now when i try to copy paste the hibernate.cfg.mysql.xml to my own hibernate config i get this error:
13:55:58,687 ERROR - SchemaExport - Unsuccessful: create table JBPM_ACTION (ID_ bigint generated by default as identity (start with 1), class char(1) not null, NAME_ varchar(255), ISPROPAGATIONALLOWED_ bit, ACTIONEXPRESSION_ varchar(255), ISASYNC_ bit, REFERENCEDACTION_ bigint, ACTIONDELEGATION_ bigint, EVENT_ bigint, PROCESSDEFINITION_ bigint, EXPRESSION_ longvarchar, TIMERNAME_ varchar(255), DUEDATE_ varchar(255), REPEAT_ varchar(255), TRANSITIONNAME_ varchar(255), TIMERACTION_ bigint, EVENTINDEX_ integer, EXCEPTIONHANDLER_ bigint, EXCEPTIONHANDLERINDEX_ integer, primary key (ID_))
13:55:58,687 ERROR - SchemaExport - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generated by default as identity (start with 1), class char(1) not null, NAME_ v' at line 1
13:55:58,688 ERROR - SchemaExport - Unsuccessful: create table JBPM_BYTEARRAY (ID_ bigint generated by default as identity (start with 1), NAME_ varchar(255), FILEDEFINITION_ bigint, primary key (ID_))
13:55:58,688 ERROR - SchemaExport - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generated by default as identity (start with 1), NAME_ varchar(255), FILEDEFINIT' at line 1
13:55:58,744 ERROR - SchemaExport - Unsuccessful: create table JBPM_COMMENT (ID_ bigint generated by default as identity (start with 1), VERSION_ integer not null, ACTORID_ varchar(255), TIME_ timestamp, MESSAGE_ longvarchar, TOKEN_ bigint, TASKINSTANCE_ bigint, TOKENINDEX_ integer, TASKINSTANCEINDEX_ integer, primary key (ID_))
13:55:58,744 ERROR - SchemaExport - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generated by default as identity (start with 1), VERSION_ integer not null, ACTO' at line 1
13:55:58,797 ERROR - SchemaExport - Unsuccessful: create table JBPM_DELEGATION (ID_ bigint generated by default as identity (start with 1), CLASSNAME_ longvarchar, CONFIGURATION_ longvarchar, CONFIGTYPE_ varchar(255), PROCESSDEFINITION_ bigint, primary key (ID_))
13:55:58,797 ERROR - SchemaExport - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'generated by default as identity (start with 1), CLASSNAME_ longvarchar, CONFIGU' at line 1
13:55:58,798 ERROR - S
..........................................................
some table are not created. of course the user is (root). but when i point the configlocation the one in jbpm-jpdl.config.jar it work fine.
my worry is that every time i stop/start my server i will create always the tables becuase of this:
create
...
how can solve this?
thanks a lot.
cheers.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259518#4259518
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259518
16 years, 6 months