[jboss-user] [jBPM Users] - Variable extension

eideri do-not-reply at jboss.com
Tue Oct 27 05:17:47 EDT 2009


Hello,

I'm developing an application using jBPM (version 4.1) that needs to persist binary variables, not only byte array value but the mime-type and the name values also.

I've seen that JBPM uses org.jbpm.pvm.internal.lob.Lob class to persist variables of type byte array. On the other side, JBPM also uses Lob class to persist resources while deploying, but here it uses Lob's more fields like name and deployment. But then Lob class doesn't have these fields mapped.

In short, my questions are the following ones: To persist the type of variables that my application needs (byte array, mime-type and name), should I reuse Lob table and extend Lob class to have more fields? Or perhaps, is it better to create a new table and map this to a new class to persist the types of variables I need? 

Any idea will be very welcome. Thank you very much in advance,

eider


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

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



More information about the jboss-user mailing list