[jBPM] - Re: jBPM processes started from Java code dont show up in jBPM process console
by Maïté Braud
Maïté Braud [https://community.jboss.org/people/mbraud] created the discussion
"Re: jBPM processes started from Java code dont show up in jBPM process console"
To view the discussion, visit: https://community.jboss.org/message/646856#646856
--------------------------------------------------------------
Hi
I've got a similar issue except that in my case, processes started from java simply reset entries in my database.
I have only one process available. The first step in this process is a human task.
If I start 2 process instances from the jBPM console, both process instances appear in the "Process Overview" tab and they also appear in the database (I'm persisting PROCESSINSTANCEINFO, PROCESSINSTANCELOG, SESSIONINFO, VARIABLEINSTANCELOG, WORKITEMINFO and NODEINSTANCELOG in a H2 DB).
If I start the same process from the java code, my 2 previous process instances disappear (both from the console and the database which is consistent) and get replaced by the new process instance.
If I start another process instance from the java code, it replaces the previous one so that I can never have more than 2 process instances started from my java code.
Here is my java code:
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
env.set( EnvironmentName.GLOBALS, new MapGlobalResolver() );
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource(ACCESS_WORKFLOW_FILE), ResourceType.BPMN2 );
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
JPAWorkingMemoryDbLogger dbLogger = new JPAWorkingMemoryDbLogger(ksession);
KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new CommandBasedWSHumanTaskHandler(ksession));
ksession.startProcess(ACCESS_WORKFLOW_ID, new HashMap());
dbLogger.dispose();
logger.close();
Also I forgot to mention it but I'm deploying jBPM 5.1 on Tomcat 6 and I'm not using Guvnor but simply a directory specified in "-Djbpm.console.directory".
I've also noted some strange behaviour where my process instances also seem to be reset everytime I restart tomcat. The entries remain in the DB after I shutdown Tomcat and they also remain in it once I've restarted Tomcat and logged in the jBPM console again but the moment I go to the "Process Overview" tab and jBPM reloads the process definition, all process instances disappear from my DB.
I think that I'm missing something important here but I don't know what.
Any help would be greatly appreciated
Maïté
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646856#646856]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM] - JBPM 5.2 final : Designer loading problem in drools-guvnor
by linna shan
linna shan [https://community.jboss.org/people/shanlinna] created the discussion
"JBPM 5.2 final : Designer loading problem in drools-guvnor"
To view the discussion, visit: https://community.jboss.org/message/717098#717098
--------------------------------------------------------------
I'm sorry to repost the same question :
I have the designer loading problem after the manual installation JBPM 5.2 final.
When I open a process, the console stops at "Please wait while loading..."
These traces in ther server.log make me think this problem is caused by classpath entry of the designer :
11:39:06,577 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "designer.war"
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry avalon-framework-4.2.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry batik-all-1.7.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-io-1.3.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-logging-1.0.4.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry serializer-2.7.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry servlet-2.2.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xalan-2.7.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xercesImpl-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,311 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-1.3.04.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-ext-1.3.04.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xmlgraphics-commons-1.3.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry fop-hyph.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_codec.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_core.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jai_imageio.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jimi-1.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xmlunit1.0.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/fop-0.95.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-api.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jsr173_1.0_api.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb1-impl.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jaxb-impl-2.2.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xalan-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry serializer-2.7.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xercesImpl-2.9.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis-1.0.b2.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-lang-2.6.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry commons-io-2.1.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry log4j-1.2.16.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/jbpmmigration-0.10-SNAPSHOT.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,327 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/shanl/jbpm-installer/content/designer.war/WEB-INF/lib/mail-1.4.1.jar" does not point to a valid jar for a Class-Path reference.
11:39:48,842 INFO [org.jboss.web] (MSC service thread 1-4) registering web context: /designer
11:39:48,983 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "designer.war"
11:49:18,941 INFO [stdout] (http-localhost-127.0.0.1-8089-1) (null: -1, -1): Premature end of file.
11:49:19,863 INFO [org.oryxeditor.server.EditorHandler] (http-localhost-127.0.0.1-8089-1) The diagram editor is running in development mode. Javascript will be served uncompressed
11:49:19,894 INFO [org.oryxeditor.server.EditorHandler] (http-localhost-127.0.0.1-8089-1) Performing diagram information pre-processing steps.
11:49:19,988 GRAVE [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) http://localhost:8080/drools-guvnor/rest/packages/ http://localhost:8080/drools-guvnor/rest/packages/
11:49:19,988 INFO [stdout] (http-localhost-127.0.0.1-8089-1) Setting up default workitem configuration
11:49:19,988 INFO [stdout] (http-localhost-127.0.0.1-8089-1) End setting up default workitem configuration
11:49:20,441 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) Successfully deleted file :D:\shanl\jbpm-installer\jboss-as-7.0.2.Final\standalone\tmp\vfs\temp776ee7cbf186088e\designer.war-85f1fb0623260c57\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
11:49:20,503 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8089-1) Created file:D:\shanl\jbpm-installer\jboss-as-7.0.2.Final\standalone\tmp\vfs\temp776ee7cbf186088e\designer.war-85f1fb0623260c57\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
11:49:42,862 INFO [stdout] (http-localhost-127.0.0.1-8089-2) INFO 16-02 11:49:42,862 (NilAuthenticator.java:authenticate:35) All users are guests.
Somebody could show me in which file these classpath is defined? Put me right if I'm falling in the wrong piste
Thank you for your response.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717098#717098]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM] - GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated
by S Jegan
S Jegan [https://community.jboss.org/people/jegan] created the discussion
"GetTasksOwned API is not returning the claimed tasks as Task.createdBy_Id column is not updated"
To view the discussion, visit: https://community.jboss.org/message/716523#716523
--------------------------------------------------------------
Hi All,
Request you all to please help me on this. I am using jbpm 5.2. I use getTasksOwned API to get the tasks assigned to an user. It works fine in all scenarios except for the tasks that are claimed.
What happens is, as part of the claim operation the "createdBy_id" column of Task is not getting updated. Because of this the query "TaskOwned" which is defined in TaskOrm.xml does not return the results. The "actualOwner_id" column is updated, but for some reason "createdBy_id" column is not.
I tried going through the code and found that in commands method of TaskServiceSession.class, only actual owner is set. Is this an issue? If I manually update this column in db, it works.
Is this an issue? If yes, is there any work-around for this? I am right now thinking of using the query API to get the tasks assigned. Will there be any other issue if I do that?
Please provide your suggestions. Let me know if I need to provide any more information. Thanks for your time.
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/716523#716523]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM] - New Installation of jBPM 5 using Existing Installation of JBoss 7 and Eclipse Indigo
by Patty Eilers
Patty Eilers [https://community.jboss.org/people/peilers64] created the discussion
"New Installation of jBPM 5 using Existing Installation of JBoss 7 and Eclipse Indigo"
To view the discussion, visit: https://community.jboss.org/message/649774#649774
--------------------------------------------------------------
I am trying to install jBPM 5 using my existing installations for JBoss7 and Eclipse Indigo. I have modified the build.properties file to point at my existing Eclipse installation and removed all mention of JBoss5.
In the installation documentation for jBPM the following instructions are presented:
h3. Installing
In the install dir, run installation script:
+ant install.guvnor.into.jboss+
+ant install.designer.into.jboss+
+ant install.jBPM-gwt-console.into.jboss+
+ant install.jBPM-eclipse.into.eclipse+
+ant install.drools-eclipse.into.eclipse+
The problem is that the last two tasks do not exist in the build.xml file. I have found a task called +install.droolsjbpm-eclipse.into.eclipse+ and another called +install.jBPM.runtime.+ I have run them both, as well as +install.demo.eclipse,+ but still neither the Guvnor or Console are accessible.
It would be great if someone could update the jBPM5 installer documentation. It seems that most people would already have both JBoss and Eclipse installed independently before they choose to install jBPM5. I have tried every flavor of JBPM5 installation--full/comprehensive and pieces parts--but I remain unsuccessful in getting access to the Guvnor and Console.
Ready to give up entirely on jBPM and head over to take a look at Intalio....
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649774#649774]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[JBoss Tools] - Runtime Environment 7.1 Default Config 3.3M5
by Mark Rosenthal
Mark Rosenthal [https://community.jboss.org/people/mwr0707] created the discussion
"Runtime Environment 7.1 Default Config 3.3M5"
To view the discussion, visit: https://community.jboss.org/message/647007#647007
--------------------------------------------------------------
On 3.3M5, I've created a 7.1 runtime env and set the JRE to a Java 1.6 installation.
When creating a new Dynamic Web Project, the project configuration "Default JBoss 7.1 runtime configuration" insists on configuring a non-existent (in my case) 1.7 JRE by default.
The symptoms are deployable class files built at 1.7 which fail at deployment when a 1.7 JRE is not present.
This can be worked around by modifying the default configuration during project creation. After project creation, this can be worked around by changing the project Java Facet and Compiler Compliance Level.
The desired behavior is for the "Default JBoss 7.1 runtime configuration" during project creation to utilize the setting in the configured JBoss 7.1 Server runtime by default.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647007#647007]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM] - createProcessInstance + startProcessInstance does not update processinstanceinfo state
by Affan Dar
Affan Dar [https://community.jboss.org/people/affandar] created the discussion
"createProcessInstance + startProcessInstance does not update processinstanceinfo state"
To view the discussion, visit: https://community.jboss.org/message/718535#718535
--------------------------------------------------------------
I am seeing a strange issue in my jbpm 5 + hibernate + mysql configuration.
A test process 'com.sample.bpmn' consists of the following: start -> myactivityhandler -> somescript -> end
myactivityhandler is an async activity handler and hence 'execute' returns without calling completeWorkItem.
Now after execution of the following snippet:
..
ksession.startProcess("com.sample.bpmn");
..
I look at the ProcessInstanceInfo for the process and I see that the instance state is rightful set to ACTIVE since the process is actually active and just hit its first savepoint after the myactivityhandler.
However if I break the startprocess down to the following:
..
ProcessInstance pi = ksession.createProcessInstance("com.sample.bpmn", null);
ksession.startProcessInstance(pi.getId());
..
After execution of the above two, I expect the state would be the same as the previous snippet i.e. process instance state == ACTIVE but in reality it is set to PENDING. Also when I trace the SQL that hibernate is sending to MySQL I don't see any UPDATE going to the ProcessInstanceInfo table. This is a problem since now I can't complete the myactivityhandler workitem to continue the process.. and it needs to be started again.
Any clue why the above two scenarios are behaving differently?
Fwiw, if I configure the system to use the in-memory H2 then everything works fine and dandy.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/718535#718535]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months