[jboss-user] [jBPM] - [JBPM 4] Process variable

HuiSheng Xu do-not-reply at jboss.com
Fri May 14 22:10:13 EDT 2010

HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"[JBPM 4] Process variable"

To view the discussion, visit: http://community.jboss.org/message/543210#543210

Hi Dan,

If you want to add a new persistence class to hibernate.  you have to add it to the jbpm.execution.hbm.xml.  Like this:

<subclass name="org.jbpm.pvm.internal.type.variable.BlobVariable" extends="org.jbpm.pvm.internal.type.Variable" discriminator-value="blob">
    <many-to-one name="lob"
                 index="IDX_VAR_LOB" />

Then hibernate could know to deal with your custom class type.

Then jbpm.variable.types.xml is used to convert different variable value to the related class type. and the jbpm.execution.hbm.xml is used to tell hibernate how to store these instances.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100514/4cefc3b8/attachment-0001.html 

More information about the jboss-user mailing list