[jBPM Users] - Support needed to install and use jBPM
by -Silver-
Hi!
I opened another topic because I really really need support.
I'm trying to install jbpm4.2 and use it but I'm unable.
I'm in very hurry, please anyone could help me?
I tried to follow many tutorials to install it under jboss but nothing, I tried to learn how to use activity as described in PVM documentation but nothing, I don't know if my computer have some problem, if the documentation that I follow is referred to an old version or if is there some bug that prevent me to use jBPM.
I can delete all version of jpbm jboss javajdk eclipse etc from my pc to restart with a "clean" installation, could you guide me step by step on how I can install and use jbpm?
I would like to use the latest version of the programs, but if you are expert of an old version is ok, i'll download the versions of the programs that you suggest me.
Please help me, they are two weeks that I try to use it!!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269062#4269062
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269062
16 years, 4 months
[jBPM Users] - Entity variable
by juanignaciosl
I'm developing a Seam/jBPM4 web application. I can already hot deploy processes through the web interface, start and signal processes, storing String and Integer variables within them...
My problem arises when I try to attach and store an entity variable. My application and jBPM share the same datasource, but I know mine uses JPA and jBPM uses Hibernate, so there's sort of mismatch. I tried the no-brainer: adding my entity as a variable and saving, but it obviously won't work:
org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable
I've debugged jBPM code and I've reached org.jbpm.pvm.internal.type.matcher.HibernateIdMatcher. The line where my variable will become "UnpersistableVariable" is sessionFactory.getClassMetadata(value.getClass()), which will return null.
How should I configure class metadata?
Can I share the entity between jBPM and Seam?
Can I somehow hot deploy classes and metadata? (maybe in a .bar file)
I've searched through the documentation and examples, but there's not much information on hibernate entities as variables.
Thank you in advance!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269015#4269015
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269015
16 years, 4 months
[jBPM Users] - Re: Problem to run jBPM under jBoss and searching for PVM do
by -Silver-
Hi kukeltje, first of all thanks for the reply :)
1) I tried a clean jboss 5.1.0 AS and it starts without problems, then I installed jbpm and there are a lot of exception.
This is the first one:
| 11:40:08,195 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Class not found for XADataSource com.mysql.jdbc.jdbc2.optional.MysqlXADataSource; - nested throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource from BaseClassLoader@17704b7{VFSClassLoaderPolicy@d6c6a0{name=vfsfile:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/ domain=ClassLoaderDomain@eb67e8{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@867e89} roots=[MemoryContextHandler@9068528[path= context=vfsmemory://5c4o03-4x3cun-g2stpfuk-1-g2stpzvd-17 real=vfsmemory://5c4o03-4x3cun-g2stpfuk-1-g2stpzvd-17], FileHandler(a)10536304[path=jbpm/jbpm-service.sar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/], DelegatingHandler(a)16936351[path=jbpm/jbpm-service.sar/freemarker.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler(a)7016550[path=jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], DelegatingHandler(a)16898138[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler(a)2304605[path=jbpm/jbpm-service.sar/jbpm-console-integration.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar], DelegatingHandler(a)11682775[path=jbpm/jbpm-service.sar/juel-engine.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel-engine.jar], DelegatingHandler(a)25425762[path=jbpm/jbpm-service.sar/juel-impl.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel-impl.jar], DelegatingHandler(a)15102430[path=jbpm/jbpm-service.sar/juel.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/juel.jar], DelegatingHandler(a)20824308[path=jbpm/jbpm-service.sar/livetribe-jsr223.jar context=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jbpm-4.2/jboss-5.1.0.GA/server/default/deploy/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.odysseus.el.tree.impl, freemarker, org.jbpm.integration.console.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org.jbpm.integration.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr223, freemarker.ext.jython, javax.script, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console-integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.odysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, javax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.util, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el, freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarker.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMPTY}}))
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:465)
| ....
|
I think that there's some problem with the mysql connection.
Mysql is correctly running on port 3306, what could cause this excepiton? Does JBoss search for connection libraries in a wrong path?
Doesn't JBoss have the correct privileges to access the database?
Anything else?
What could I do to solve?
2) I saw the documentation that you suggested, but I need documentation about the internal pvm's operation. For example, does it work like a state machine or like an Artificial Neural Network? etc.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268966#4268966
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268966
16 years, 4 months
[jBPM Users] - Re: Problem moving from 4.1 to 4.2 using Spring configuratio
by suganda
Hi all,
Just want to share the solution
After searching and testing , i think i have found the root cause of that weird exception. its because i let hibernate manage my transaction instead of spring. so its better to have spring manage transaction.
The concept of current="true" in spring transaction interceptor also correct. I already enable current="true" and it works perfectly with current="true" in hibernate session if we let spring manage transaction because if we initialize spring context with required transaction at first time, we always have transaction. So by right mandatory attributes is better then required attributes. So we will make sure every thread has active transaction otherwise it will throw exception.
Note that if we set current="false" in hibernate session configuration, we still can run it. However if you rollback using spring transaction, it will not rollback. I have tested it by putting exception after deploy process to JBPM. and its not rollback at all.
I will try whether this behavior same if we use data source (JNDI), JTA, as well as oracle dialect. Hopefully everything don't have same problem :)
Thanks in advance,
Best Regards,
Suganda
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268946#4268946
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268946
16 years, 4 months
[jBPM Users] - task & timers
by jbosspnet
Hi.
I am using Jbpm 3.2.3 on Jboss 4.2.3.GA.
I have many processes where I have to check a condition in a manually or in a automatic way and the check have to be completed into a time range.
For this target, I use the following task-node:
| <task-node name="check" create-tasks="false" end-tasks="true">
| <event type="node-enter">
| <action class="org.process.StartCheck"></action>
| </event>
| <event type="node-leave">
| <action class="org.process.DefaultEnd"></action>
| </event>
|
| <timer name="check" duedate="2 seconds" repeat="4 seconds">
| <action class="org.process.CheckTimer"></action>
| </timer>
|
| <task name="check-manual">
| <event type="task-start">
| <action class="org.process.DefaultStart"></action>
| </event>
| <event type="task-end">
| <action class="org.process.DefaultEnd"></action>
| </event>
| </task>
|
| <task name="check-automatic">
| <event type="task-start">
| <action class="org.process.DefaultStart"></action>
| </event>
| <event type="task-end">
| <action class="org.process.DefaultEnd"></action>
| </event>
|
| <timer name="check-automatic" duedate="2 seconds" repeat="2 seconds">
| <action class="org.process.AutomaticCheck"></action>
| </timer>
| </task>
|
| <transition to="notify success" name="OK"></transition>
| <transition to="notify failure" name="KO"></transition>
| </task-node>
|
The manual check (first task) uses a form where the user manually clicks on OK/KO buttons.
Automatic check (second task) is performed with a class in the timer action that executes a query on a database and signal to the corret OK/KO transition.
To the events node-leave, node-enter, task-start and task-end are associated classes (DefaultStart and DefaultEnd) to trace the execution.
StartCheck creates the correct task (from a configuration parameter):
| public abstract class StartCheck implements ActionHandler {
| @Override
| public void execute(ExecutionContext executionContext) throws Exception {
| // get check type (manual or automatic)
| // checkType = ...
|
| // get the task-name from the check type (check-manual or check-automatic)
| // taskName = ...
|
| // create task instance
| TaskNode taskNode = (TaskNode) executionContext.getNode();
|
| Task task = taskNode.getTask(taskName);
|
| Token token = executionContext.getToken();
|
| TaskMgmtInstance tmi = executionContext.getTaskMgmtInstance();
|
| TaskInstance taskInstance = tmi.createTaskInstance(task, token);
|
| taskInstance.start();
| }
| }
|
CheckTimer notifies if the check is over:
| public abstract class CheckTimer implements ActionHandler {
| @Override
| public void execute(ExecutionContext executionContext) throws Exception {
| // get time range (startDate and endDate) from configuration parameters
|
| // checks that new Date() is in the range (startDate, endDate)
|
| // notify user
| }
| }
|
AutomaticCheck executes the automatic check:
| public abstract class AutomaticCheckAction implements ActionHandler {
| @Override
| public void execute(ExecutionContext executionContext) throws Exception {
| // isOK is setted after a query on a database
| boolean isOK = ...
|
| Token token = executionContext.getToken();
| token.signal(isOK ? "OK" : "KO");
| }
| }
|
When the execution enters in this node, the task creation is correct and also the task-node timer is created.
If the check type is manual then the execution stops in the check-manual task and with the form we can select the OK/KO transition.
But if the check type is automatic, the timer associated with the check-automatic task is never created (in the JBPM_JOB table I find only the row that refers to the task-node timer) and the execution stops in this task forever due to the non-execution of the AutomaticCheck action.
Why the "check-automatic" task timer is not created?
Regards.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268939#4268939
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268939
16 years, 4 months