[
http://jira.jboss.com/jira/browse/JBPM-982?page=comments#action_12364844 ]
Adrian Dimulescu commented on JBPM-982:
---------------------------------------
Sorry, made a mistake. The phrase that starts with "That means that successive
values..." should read like this :
"That means that successive values for, say, the JBPM_TASK table ID can be as far
away from each other as 1 from 1500 (given that the same sequence generator is used for
the lines in the JBPM_LOG table too). "
(the phrase used initially JBPM_PROCESSINSTANCE as an example but I find that JBPM_TASK
illustrates better the point as it is typically a user-related table).
oracle : one single sequence for all jbpm tables
------------------------------------------------
Key: JBPM-982
URL:
http://jira.jboss.com/jira/browse/JBPM-982
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2
Environment: jBPM persisted in Oracle database
Reporter: Adrian Dimulescu
Assigned To: Tom Baeyens
Fix For: jBPM jPDL 3.2.1
In order to generate table ids on Oracle, the hibernate-generated DDL specifies one
single sequence :
create sequence hibernate_sequence;
That means that successive values for, say, deployed processes JBPM_TASK can be as far
away from each other as 1 from 15000 (given that the same sequence generator is used for
the lines in the JBPM_LOG table too).
The IDs do have business meaning, at least as far as the JBPM console is concerned : the
ID's are shown there in order to identify processes, tasks etc. That may be confusing
for users as they may wonder whatever happened to the tasks between 19 (last he solved)
and 57 (the next one).
Ronald van Kuijk says: jbpm 3.2.1 (don't know about 3.2) has a real business key.
That could/should be used in the next console.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira