[jBPM] - Re: Business Process has a Task Form attached?
by Tihomir Surdilovic
Tihomir Surdilovic [https://community.jboss.org/people/tsurdilovic] created the discussion
"Re: Business Process has a Task Form attached?"
To view the discussion, visit: https://community.jboss.org/message/793512#793512
--------------------------------------------------------------
You have the process form (shown for example when your process execution starts) and human task forms. Currently the processid attribute you set in the process properties and the taskName attributes you set on tasks control the name of the forms that should exist either in your Guvnor repostiroy (if you are using Guvnor) or in your classpath. Those are not "attached" to your process definition (do not become part of the BPMN2) so in order to see if your process has a task form defined and/or if your human tasks have their task forms defined you would have to determine the file name first with the above mentioned rules, and then check either in your repository or on classpath if it exists or not.
If you generate your forms in Designer, yes, as you mentioned the form files will be created and uploaded into Guvnor for you.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/793512#793512]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - OSGi issues: How to deploy jBPM 5.4.0 in Fuse ESB 4.4.1?
by patrice godard
patrice godard [https://community.jboss.org/people/loik] created the discussion
"OSGi issues: How to deploy jBPM 5.4.0 in Fuse ESB 4.4.1?"
To view the discussion, visit: https://community.jboss.org/message/793422#793422
--------------------------------------------------------------
Hi,
I'm trying to deploy jBPM 5.4.0 in Apache-ServiceMix-4.4.1-Fuse-07-11 and I get the following dependency issues:
I dropped these bundles in $FUSE_HOME/deploy:
+drools-compiler-5.5.0.Final.jar+
+drools-core-5.5.0.Final.jar+
+jaxb-xjc-2.1.9-osgi.jar+
+jbpm-bpmn2-5.4.0.Final.jar+
+jbpm-flow-5.4.0.Final.jar+
+jbpm-flow-builder-5.4.0.Final.jar+
+jbpm-persistence-jpa-5.4.0.Final.jar+
+knowledge-api-5.5.0.Final.jar+
+knowledge-internal-api-5.5.0.Final.jar+
+mvel2-2.1.1.Final.jar+
+protobuf-java-2.4.1.jar+
These bundles deploy successfully.
Then I deploy my jBPM client bundle, that makes use of the jBPM API and I get the following error:
+Error executing command: Unable to resolve module jbpm-workflowmanager [249.24] because it is exposed to package 'org.drools' from+
+org.drools.core [284.0] and org.drools.api [279.0] via two dependency chains.+
+Chain 1:+
+ jbpm-workflowmanager [249.24]+
+ import: (&(package=org.drools)(version>=5.5.0))+
+ |+
+ export: package=org.drools+
+ org.drools.core [284.0]+
+Chain 2:+
+ jbpm-workflowmanager [249.24]+
+ import: (&(package=org.drools.runtime)(version>=5.5.0))+
+ |+
+ export: package=org.drools.runtime; uses:=org.drools+
+ export: package=org.drools+
+ org.drools.api [279.0]+
I'm wondering why both the Drools Core (bundle #284) and Knowledge API (bundle #279) both export the org.drools package?
This is what seems to be causing the issue.
The jBPM 5.4.0 jars are supposed to be OSGi-ready so I'm wondering what's wrong (I'm no OSGi dependency management expert).
Any help is very welcome!
Pat.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/793422#793422]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - JDBC Driver class not found
by Jonathan Albornoz
Jonathan Albornoz [https://community.jboss.org/people/betoflint] created the discussion
"JDBC Driver class not found"
To view the discussion, visit: https://community.jboss.org/message/788572#788572
--------------------------------------------------------------
Hi, i have a problem, i have jbpm 5.4 with oracle and jboss 7.1.1.
When i want run my project (example with persistence) i have the next error.
I put the ojdbc6.jar in db folder, and lib folder.
I was made all the test that i imagine...any help please...thanks!!!
*console log.*
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.fefefefefe.main(fefefefefe.java:26)
Caused by: org.hibernate.HibernateException: JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:89)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
... 4 more
Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:84)
... 12 more
0 06/01 19:48:39,121[main] ERROR hibernate.connection.DriverManagerConnectionProvider.configure - JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:84)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.fefefefefe.main(fefefefefe.java:26)
*My java code:*
package com.sample;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.io.ResourceFactory;
import org.drools.persistence.jpa.JPAKnowledgeService;
import org.drools.runtime.Environment;
import org.drools.runtime.EnvironmentName;
import org.drools.runtime.StatefulKnowledgeSession;
public class fefefefefe {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
KnowledgeBase kbase = readKnowledgeBase();
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
// create a new knowledge session that uses JPA to store the runtime state
StatefulKnowledgeSession ksession =JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );
int sessionId = ksession.getId();
// invoke methods on your method here
ksession.startProcess( "com.sample.bpmn.hello" );
ksession.dispose();
}
private static KnowledgeBase readKnowledgeBase() {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);
return kbuilder.newKnowledgeBase();
}
}
*My persistence file inside my project. Resource/Meta-Inf*
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="1.0" xsi:schemaLocation=
" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
xmlns:orm=" http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence">
<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<mapping-file>META-INF/JBPMorm.xml</mapping-file>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver"/>
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@192.168.20.200:1521:orcl2" />
<property name="hibernate.connection.username" value="jbpm5"/>
<property name="hibernate.connection.password" value="ryc"/>
<property name="hibernate.connection.autocommit" value="false" />
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.show_sql" value="false" />
<property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
</properties>
</persistence-unit>
</persistence>
//********************************************************************************************
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788572#788572]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months