Re: [jboss-user] [jBPM] - Why I can't run jbpm4.3 examples on oracle server?
by Michael Wohlfart
Michael Wohlfart [http://community.jboss.org/people/mwohlf] replied to the discussion
"Why I can't run jbpm4.3 examples on oracle server?"
To view the discussion, visit: http://community.jboss.org/message/554325#554325
--------------------------------------------------------------
Hi zhang
> I removed the property in hibernate config file:
> <property name="hibernate.hbm2ddl.auto">create-drop</property>
>
> Then, the oracle server didn't drop and create new tables. However, some script (when I debuged the statement :
> deploymentId = repositoryService.createDeployment()
> .addResourceFromClasspath("org/jbpm/examples/java/process.jpdl.xml")
> .deploy();
> )still tried to update the table in oracle.
>
>
I am not sure what exactly you mean be "update the table"
* "updater the content of a table" (update) is perfectly normal in this case since this statement is supposed to put a workflow definition into the database
* "update the structure of a database table" (alter table) shouldn't happen here, are you seeing this?
> Oracle error still took place.
can you show us the stacktrace please?
> Another question, I run the examples on hsqldb-server. The statement below:*ProcessInstance processInstance = executionService.startProcessInstanceByKey("Java", variables);*
> **
>
this should start a workflow with the name "Java" if you previously deployed such a workflow
> **
> I could *not find out how the processInstance executed by key "java".*
> **
> I wrote a console with the same statement. Came out an exception "no instance with key named 'java'".
>
make sure you deployed a workflow with the name "java", or is it "Java"?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554325#554325]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months
Re: [jboss-user] [jBPM] - Can't start jbpm3 process
by Vladimir Kiryakov
Vladimir Kiryakov [http://community.jboss.org/people/vladimir_kiryakov] replied to the discussion
"Can't start jbpm3 process"
To view the discussion, visit: http://community.jboss.org/message/554321#554321
--------------------------------------------------------------
I'm using MySQL 5.1 and jbpm 3-2-6 data source. In Eclipse Galileo I create a jbpm3 project. For example this similar process
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="sdf">
<start-state name="start-state1">
<transition to="state1"></transition>
</start-state>
<state name="state1">
<event type="node-enter">
<action class="com.app.HANDLERS.State1Handler"></action>
</event>
<transition to="end-state1"></transition>
</state>
<end-state name="end-state1"></end-state>
</process-definition>
Then a similar State1Handler code:
if i do like this, all excelets works
package com.app.HANDLERS;
import org.jbpm.graph.def.ActionHandler;
import org.jbpm.graph.exe.ExecutionContext;
public class State1Handler implements ActionHandler {
@Override
public void execute(ExecutionContext arg0) throws Exception {
sysout("hello world");
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554321#554321]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months