Peter Brewer [
https://community.jboss.org/people/pbrewer_uk] created the discussion
"Re: jBPM 5.2 setup on Jboss7.1b"
To view the discussion, visit:
https://community.jboss.org/message/646517#646517
--------------------------------------------------------------
I had this same issue and solved it by updating the orm.xml file with the following:
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd">
<named-native-query name="ProcessInstancesWaitingForEvent"
result-set-mapping="ProcessInstancesWaitingForEvent.mapping">
<query>
select distinct
p.InstanceId
from
ProcessInstanceInfo p
join
EventTypes e on p.InstanceId=e.InstanceId
and
:type = e.eventTypes
</query>
</named-native-query>
<sql-result-set-mapping name="ProcessInstancesWaitingForEvent.mapping">
<column-result name="InstanceId" />
</sql-result-set-mapping>
<entity class="org.jbpm.persistence.processinstance.ProcessInstanceInfo">
<attributes>
<element-collection name="eventTypes">
<collection-table name="EventTypes">
<join-column name="InstanceId" />
</collection-table>
</element-collection>
</attributes>
</entity>
</entity-mappings>
What I'm not sure about is how to restore state once its been saved.
HTH
Pete
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/646517#646517]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]