Thanks for confirming the DB tests work. Regarding your question, each BPEL 
activity is a subclass of the jBPM Node. We mapped this class with the 
table-per-class-hierarchy strategy. Hence the BPEL extension creates more 
fields in the JBPM_NODE table than the plain jBPM.

The WHILE_ field points from a node introduced behind the scenes to control 
looping back to the while activity. This is an unidirectional one-to-one 
association on a foreign key. In adherance to the Hibernate reference, the 
foreign key column specifies a unique constraint. 

The mapping document for all structured activities resides in 
src/bpel/org/jbpm/bpel/def/StructuredActivity.hbm.xml. It contains the mapping 
for the loop node:
  <!--Loop Node-->
  |   <subclass
  |     name="org.jbpm.bpel.def.While$LoopNode"
  |     extends="org.jbpm.bpel.def.Activity"
  |     discriminator-value="L"
  |     lazy="false">
  |     <many-to-one
  |       name="whileActivity"
  |       column="WHILE_"
  |       foreign-key="FK_LOOP_WHILE"
  |       unique="true" />
  |   </subclass>
MySQL, PostreSQL, Oracle and Hypersonic behave "as expected". They don't 
consider that the appearance of a null value in more than one row violates the 
unique constraint. If Sybase doesn't think so, just delete the unique attribute 
from the mapping document. Also remember to delete that attribute from the 
StructureStart and StructureEnd mappings. Other occurences are 
ScopeHandler.scope (ScopeHandler.hbm.xml) and Assign$Copy.from / to 
(Activity.hbm.xml).

Let me know if this works.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915232#3915232

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915232


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to