Bytearrays....nothing odd, by design. The processdefinition and all accompanying data is stored that way in blocks of configurable size. The other rows are always related to a 'first row'. There are kind of sequencenumbers in there (cannot tell you the details now since I do not have access to any code)
Just look a little better, you'll see the relation
oh, and btw. the bytearrays are afaik related to a process definition, not process instance
I've examined the sql code that creates the tables and all the relationships when the jbpm database is created. The only relationships I see for bytearray, based on foreign keys are:
jbpm_bytearray's filedefinition_ has a foreign key relationship to jbpm_moduledefinition (but filedefinition_ is empty in the rows in question)
jbpm_variableinstance's bytearrayvalue_ has a foreign key relationship to jbpm_bytearray
jbpm_byteblock's processfile_ has a foreign key relationship to jbpm_bytearray
(Ok, there are also some relationships from the log, but that's not important right now).
jbpm_variableinstance has a relationship to a jbpm_processinstance but not to jbpm_processdefiniton, exept indirectly.
What am I missing? I've looked at the hbm.xml files and found the same relationships and nothing else. Did something change with Jbpm 3.1?