-
1. Re: TaskInstance Problem
kukeltje Jan 2, 2008 11:52 AM (in response to gutierrez.ge)not very easy as far as I know. You'd have to dig into the sourcecode and see how .class files are stored in the DB and then create something yourself. Or.... deploy in a test server and see what db record is used and copy that over.
-
2. Re: TaskInstance Problem
gutierrez.ge Jan 2, 2008 12:05 PM (in response to gutierrez.ge)damm...
thanks, -
3. Re: TaskInstance Problem
gutierrez.ge Jan 2, 2008 6:39 PM (in response to gutierrez.ge)I did some research and i figured (not sure..) that jbpm uses the FileDefinition object to load the class byte array from the a database, and then with a specialize class, subclass of ClassLoader, loads the class from the byte array.
But i still don't know where the binary class data is stored, i checked out the jbpm database and there is nothing stored besides the jbpm_byte_block table that is used to stored some object variables or something like that.
Also i cheked the size of jbpm/server folder and when i do the deploy the size doesn't change, so i guess it's not using some embeded database.
Any suggestion / comment / whatever... ??
Thanks, -
4. Re: TaskInstance Problem
koen.aers Jan 7, 2008 6:10 AM (in response to gutierrez.ge)Binary data are effectively stored in the table jbpm_byte_block.
Regards,
Koen -
5. Re: TaskInstance Problem
gutierrez.ge Jan 7, 2008 10:27 AM (in response to gutierrez.ge)but when i extracted it just have 1024 bytes and my node class is larger than that, but well i'm gonna try again.
Thanks, -
6. Re: TaskInstance Problem
anuragpaliwal Jan 8, 2008 4:56 AM (in response to gutierrez.ge)For some reason, jBPM stores bytes in block of 1024. Hence if your class file size is greater than 1024 bytes than it will break it in to multiple of 1024 and save it.
It seems you have just extracted 1 block only.
To fetch all the blocks of particular class file(if size is greater than 1024) you have to first fetch the ID_ of your class from the BYTEARRAY table and then use following query to get all the byte blocks of your class by putting the value of ID_ fetched earlier
select * from jbpm_byteblock where processfile_ = ?
I am just wondering tha there is another way to load class by using JBPM classloader(parent of process class loader) i.e by putting class file in WEB-INF/classes folder. I am not sure if it can do trick for you.
CHEERS!!!!! -
7. Re: TaskInstance Problem
kukeltje Jan 8, 2008 5:40 AM (in response to gutierrez.ge)You can put the classes in WEB-INF/classes, but they are not versioned then.
-
8. Re: TaskInstance Problem
gutierrez.ge Jan 8, 2008 9:23 AM (in response to gutierrez.ge)Thanks you guys,