Hello Team,
I am using jbpm 7.5 and mysql and created data object nasscom and software(i.e list type inside nasscom) with type persistent ,so totally 3 tables were created in mysql DB with the mentioned columns
1.nasscom --> id,location
2.software, -->id,softwarename,softwareversion
3.nasscom_software-->nasscom_id,softwares_id
so now how can i filter the records from nasscom and software tables based on the process instance id/task related id. Looks like no process and task information associated with this tables.
Please do let me know what is the relation ship with this external tables with default database tables.
if i look into the variableinstance table it contains the values as like this "com.myteam.xerox.nascom@79df1070"
taskvariableimp table also contains the same kind of value only. 'com.myteam.xerox.nascom@79df1070'
please find my persistence.xml and deployment descriptor here:
deployment descriptor:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence-unit>org.jbpm.domain</persistence-unit>
<audit-persistence-unit>org.jbpm.domain</audit-persistence-unit>
<audit-mode>JPA</audit-mode>
<persistence-mode>JPA</persistence-mode>
<runtime-strategy>SINGLETON</runtime-strategy>
<marshalling-strategies>
<marshalling-strategy>
<resolver>mvel</resolver>
<identifier>new org.drools.persistence.jpa.marshaller.JPAPlaceholderResolverStrategy("com.myteam:xerox:1.0.0", classLoader)</identifier>
<parameters/>
</marshalling-strategy>
</marshalling-strategies>
<event-listeners/>
<task-event-listeners/>
<globals/>
<work-item-handlers/>
<environment-entries/>
<configurations/>
<required-roles/>
<remoteable-classes/>
<limit-serialization-classes>true</limit-serialization-classes>
</deployment-descriptor>
persistent.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence-unit name="com.myteam:xerox:1.0.0" transaction-type="JTA">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<jta-data-source>java:jboss/datasources/jbpmDS</jta-data-source>
<class>com.myteam.xerox.nascom</class>
<class>com.myteam.xerox.software</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.id.new_generator_mappings" value="false"/>
<property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform"/>
</properties>
</persistence-unit>
</persistence>
Thanks in Advance
Regards,
Vivek Rajagopal