Topiltzin Dominguez [
http://community.jboss.org/people/topiltzin] replied to the
discussion
"jBPM 4.3, Spring 2.5, Oracle, start process, process instance have a null id"
To view the discussion, visit:
http://community.jboss.org/message/543134#543134
--------------------------------------------------------------
Excellent, I was trying to solve this 2 days ago, thanks!!!
As you said, I just add: *<object
class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager"
/>*
to my *jbpm.cfg.xml* file
Here is the configuration:
<?xml version="1.0"
encoding="UTF-8"?><jbpm-configuration> <import
resource="jbpm.jpdl.cfg.xml" /> <import
resource="jbpm.identity.cfg.xml" /> <process-engine-context>
<repository-service /> <repository-cache />
<execution-service /> <history-service /> <management-service
/> <identity-service /> <task-service />
<object
class="org.jbpm.pvm.internal.id.DatabaseIdComposer"
init="eager" /> <command-service
name="txRequiredCommandService"> <retry-interceptor
/> <environment-interceptor />
<spring-transaction-interceptor /> </command-service>
<script-manager default-expression-language="juel"
default-script-language="juel" read-contexts="execution,
environment, process-engine, spring"
write-context=""> <script-language
name="juel"
factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
</script-manager> <authentication /> <id-generator
/> <types resource="jbpm.variable.types.xml" />
<address-resolver /> <business-calendar> <monday
hours="9:00-12:00 and 12:30-17:00" /> <tuesday
hours="9:00-12:00 and 12:30-17:00" /> <wednesday
hours="9:00-12:00 and 12:30-17:00" /> <thursday
hours="9:00-12:00 and 12:30-17:00" /> <friday
hours="9:00-12:00 and 12:30-17:00" /> <holiday
period="01/07/2008 - 31/08/2008" /> </business-calendar>
</process-engine-context> <transaction-context>
<repository-session /> <db-session /> <message-session
/> <timer-session /> <history-session />
<hibernate-session current="true" /> <transaction
type="spring" /> </transaction-context></jbpm-configuration>
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/543134#543134]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]