[jBPM] - how to use ProcessInstanceEventInfo table?
by Pedram Farzaneh
Pedram Farzaneh [http://community.jboss.org/people/pedram.frce] created the discussion
"how to use ProcessInstanceEventInfo table?"
To view the discussion, visit: http://community.jboss.org/message/642609#642609
--------------------------------------------------------------
Hi everybody,
I am using jbpm 5.2 and my persistence.xml is set with classes like :
....
| | <class>org.drools.persistence.info.SessionInfo</class> |
| | <class>org.drools.persistence.info.WorkItemInfo</class> |
| | <class>org.jboss.seam.mock.MockSecureEntity</class> |
| | <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class> |
| | <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class> |
| | <class>org.jbpm.process.audit.NodeInstanceLog</class> |
| | <class>org.jbpm.process.audit.ProcessInstanceLog</class> |
| | <class>org.jbpm.process.audit.VariableInstanceLog</class> |
.....
all the log tables are filled in the flow of processes.
but the *ProcessInstanceEventInfo* table is empty and I don't know where and when this table is
usable, and under what conditions this table will be filled with data.
any help would be appreciated.
Thanks,
Pedram.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642609#642609]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - JBPM and WebLogic - someone with success?
by Thomas Nakken
Thomas Nakken [http://community.jboss.org/people/thomastn] created the discussion
"JBPM and WebLogic - someone with success?"
To view the discussion, visit: http://community.jboss.org/message/642337#642337
--------------------------------------------------------------
Hi
We have trouble with Jpbm5.1 on Weblogic 10.3.4 and Oracle database. The problem is with HumanTask and persistent. For the moment we are able to create HumanTasks, but not able to "fetch" them and complete them. Does someone have a workling sample of jbpm5.1 (or 5.2) for Weblogic. Interestet in looking at at persistence.xml file and the code to setup the HumanTask server. Adding our files here, so if some smart jbpm people can se what we are doing wrong, we wold have a happy X-mas..
Config from persistance.xml
<property name=+"hibernate.connection.datasource"+ value=+"jdbc/jbpm"+ />
<property name=+"hibernate.max_fetch_depth"+ value=+"3"+ />
<property name=+"hibernate.hbm2ddl.auto"+ value=+"create-drop"+ />
<property name=+"hibernate.show_sql"+ value=+"true"+ />
<property name=+"hibernate.transaction.manager_lookup_class"+ value=+"org.hibernate.transaction.WeblogicTransactionManagerLookup"+ />
<property name=+"hibernate.dialect"+ value=+"org.hibernate.dialect.OracleDialect"+ />
<property name=+"hibernate.connection.autocommit"+ value=+"false"+ />
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642337#642337]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[Beginner's Corner] - JBoss:EJB is not creating table in MySQL DB
by Gurubg G
Gurubg G [http://community.jboss.org/people/gurubg] created the discussion
"JBoss:EJB is not creating table in MySQL DB"
To view the discussion, visit: http://community.jboss.org/message/580992#580992
--------------------------------------------------------------
Hello Folks,
I have a strange problem, I am not receiving any error when I deploy my http://www.coderanch.com/forums/f-11/EJB-JEE EJB project to http://www.coderanch.com/forums/f-63/JBoss JBoss . I have a single entity bean defined and expecting it to be created in MySQL DB. But strangely I do not see any table created . Has anyone faced the same problem before ?
I am using Eclipse IDE, MySQL server 51.1 and JBoss 5.0.1 server..
Please find the log attached ..
And I am posting the configuration files I have used.
|| *Peristence.xml* ||
| <?xml version="1.0" encoding="UTF-8" ?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="LessonDS-PU" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/lessonds</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>
</properties>
</persistence-unit>
</persistence> |
|| *mysql-ds.xml* ||
| <?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml 41017 2006-02-07 14:26:14Z acoliver $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->
<datasources>
<local-tx-datasource>
<jndi-name>lessonds</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/lessonds</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>guru</password>
<!-- <connection-property name="autoReconnect">true</connection-property> -->
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources> |
I have placed the DB conenctor file mysql-connector-java-5.1.14-bin.jar in \server\default\lib folder ..
This is my code for Entity which I am trying to create
|| *Entity bean* ||
|
package com.lessonejb.entities;
import java.io.Serializable;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import javax.persistence.OneToMany;
//@SuppressWarnings("serial")
@Entity
@Table(name="lessonuser")
public class User implements Serializable {
private static final CascadeType[] ALL = null;
private String email;
private String password;
private String name;
private String surname;
private int role;
private long userID;
private Set <Course> coursesCreated;
private Set <Course> coursesEnrolled;
private Set <Test> testsCreated;
private Set <Test> testsTaken;
/**
* Gets the analysis unique identifier.
* This field is used as primary key for persistence.
* @return analysis unique identifier
*/
@Id
public String getEmail()
{
return email;
}
/**
* Sets the analysis unique identifier
* @param id unique identifier to set
*/
public void setEmail(String email)
{
this.email = email;
}
/** Password */
public String getPassword()
{
return password;
}
public void setPassword(String email)
{
this.password = password;
}
/** Name of the user */
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
/** Surname of the user */
public String getSurname()
{
return surname;
}
public void setSurname(String surname)
{
this.surname = surname;
}
/** Role of the user 1-Trainer, 2-Trainee, 3-Assistant*/
public int getRole()
{
return role;
}
public void setRole(int role)
{
this.role = role;
}
/** Role of the user 1-Trainer, 2-Trainee, 3-Assistant*/
public long getUserID()
{
return userID;
}
public void setUserID(long userID)
{
this.userID = userID;
}} |
But I do not see any table named "lessonuser" created in the "lessonds" database.
Can someone point out if I am going wrong somewhere ?
Thanks in advance ..
Guru
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580992#580992]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[EJB3] - JBOSS EJB Timers, delete multiple copies.
by David Steel
David Steel [http://community.jboss.org/people/dsteel100] created the discussion
"JBOSS EJB Timers, delete multiple copies."
To view the discussion, visit: http://community.jboss.org/message/639526#639526
--------------------------------------------------------------
I have moved from GlassFish in the past couple of days and I am using JBoss 6 and JBoss Developer Studio (30 day trail) to see if this is the way to go.
I have created a Session Bean that is as follows:
@Stateless
@LocalBean
public class FileMonitorTimer {
@Schedule(second = "*/15", minute = "*", hour = "*", dayOfMonth = "*", month = "*", year = "*")
public void ProcessFiles() {
//do bits here
}
Every time I run the project from the IDE I get another timer instance created, so my questions are:
How do I remove multiple timer copies?
How do I ensure only one timer exists?
I didn't have this issue with GlassFish, but the code is the same.
Dave
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/639526#639526]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - Problem displaying process instance in the ProcessTest example
by Michael Wagner
Michael Wagner [http://community.jboss.org/people/michael.wagner] created the discussion
"Problem displaying process instance in the ProcessTest example"
To view the discussion, visit: http://community.jboss.org/message/614863#614863
--------------------------------------------------------------
http://community.jboss.org/servlet/JiveServlet/showImage/2-614863-16712/s... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-614863-167...
Yesterday it worked. But now it does not work any more. Everything (bpmn- und java-file) is unchanged and from the example in the sample folder.
!ENTRY org.eclipse.jface 4 2 2011-07-13 12:47:44.263
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.IllegalArgumentException: Could not find process with id com.sample.evaluation
at org.drools.eclipse.debug.ProcessInstanceViewer$ProcessInstanceTabItem.<init>(ProcessInstanceViewer.java:96)
at org.drools.eclipse.debug.ProcessInstanceViewer.showProcessInstance(ProcessInstanceViewer.java:163)
at org.drools.eclipse.debug.ProcessInstancesView$DoubleClickAction.openProcessInstance(ProcessInstancesView.java:120)
at org.drools.eclipse.debug.ProcessInstancesView$DoubleClickAction.run(ProcessInstancesView.java:68)
at org.eclipse.debug.ui.AbstractDebugView.doubleClick(AbstractDebugView.java:731)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:824)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:822)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1421)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1225)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Please help me to get it running again.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614863#614863]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months