[
https://jira.jboss.org/jira/browse/JBPM-2403?page=com.atlassian.jira.plug...
]
Mark Kedzierski commented on JBPM-2403:
---------------------------------------
my process looks like this:
<fork g="670,397,48,48" name="fork1">
<transition name="fork_upgrade" to="Add Upgrade Work
Item"/>
<transition name="fork_conversion" to="Conversion
Scheduled"/>
</fork>
...
<join name="join1" g="817,123,48,48"
multiplicity="2">
<transition to="Set Status Completed"/>
</join>
I am running in JBoss 5.1.0.GA. Using Microsoft SQL Server (by the way I have db schema
scripts for mssql). A recent commit to DefaultIdGenerator added a call to session.save to
save the new child process. But the save call was happening before the id was set on the
execution. This resulted in a UniqueConstraint exception when saving the child process.
all i did set the child execution's id before the save occurs. I also fixed a
separate fork/join issue which shouldn't work in your tests. i'll make a separate
JIRA issue.
Fork Activity FIX. PVM trunk.
------------------------------
Key: JBPM-2403
URL:
https://jira.jboss.org/jira/browse/JBPM-2403
Project: JBoss jBPM
Issue Type: Patch
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.x
Environment: Windows, JBoss 5.1.0.GA
Reporter: Mark Kedzierski
Fix For: jBPM 4.x
Attachments: DefaultIdGenerator.java, ForkFix.patch
Time Spent: 30 minutes
Remaining Estimate: 0 minutes
Fork activity is broken in the jbpm4 pvm module under the svn trunk. This is caused by a
recent commit to org.jbpm.pvm.internal.model.DefaultIdGenerator. My patch is included.
The hibernate save happens before the execution.id is set, resulting in a
UniqueConstraintException on the commit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira