Wow !!!!

I found a strange thing ! Take a look on this selects resuls!!!



  | select PROCESSDEFINITION_ from JBPM_ACTION;
  | 
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | NULL
  | NULL
  | NULL
  | NULL
  | NULL
  | NULL
  | NULL
  | NULL
  | 
  | (8 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_DELEGATION;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 150
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 
  | (8 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_EVENT;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | NULL
  | NULL
  | NULL
  | NULL
  | 
  | (4 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_MODULEDEFINITION;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 150
  | 150
  | 151
  | 151
  | 151
  | 
  | (6 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_NODE;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 150
  | 150
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 
  | (12 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_PROCESSINSTANCE;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 150
  | 150
  | 150
  | 150
  | 150
  | 150
  | 150
  | 
  | (8 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_TASK;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 151
  | 151
  | 151
  | 151
  | 
  | (5 row(s) affected)
  | 
  | select PROCESSDEFINITION_ from JBPM_TRANSITION;
  | 
  | PROCESSDEFINITION_    
  | --------------------- 
  | 150
  | 150
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 151
  | 

And the log !!!!!


  | 2005-12-15 12:12:01,545 DEBUG [org.hibernate.SQL] select 
events0_.PROCESSDEFINITION_ as PROCESSD5_1_, events0_.ID_ as ID1_1_, 
events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_3_0_, 
events0_.EVENTTYPE_ as EVENTTYPE2_3_0_, events0_.TYPE_ as TYPE3_3_0_, 
events0_.GRAPHELEMENT_ as GRAPHELE4_3_0_ from POPULIS.JBPM_EVENT events0_ where 
events0_.PROCESSDEFINITION_=?
  | 2005-12-15 12:12:01,545 DEBUG [org.hibernate.jdbc.AbstractBatcher] 
preparing statement
  | 2005-12-15 12:12:01,545 DEBUG [org.hibernate.type.LongType] binding '150' 
to parameter: 1
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open ResultSet (open ResultSets: 0, globally: 0)
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.loader.Loader] result set 
contains (possibly empty) collection: 
[org.jbpm.graph.def.ProcessDefinition.events#150]
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.engine.CollectionLoadContext] 
uninitialized collection: initializing
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.loader.Loader] processing 
result set
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.loader.Loader] done processing 
result set (0 rows)
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close ResultSet (open ResultSets: 1, globally: 1)
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.AbstractBatcher] closing 
statement
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
  | 2005-12-15 12:12:01,670 DEBUG [org.hibernate.jdbc.ConnectionManager] 
closing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open 
ResultSets: 0, globally: 0)]
  | 

This means, that when a instance of the process is created, an reach the task 
instance, it will look for the events associated with the process definitions, 
and it will never find it couse processdefinition is null.

What to do with this ???




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

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


-------------------------------------------------------
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