[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
15 years, 3 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
15 years, 3 months