[rules-users] Drools Flow 5.1.0.M1 - Persistence - WorkItemInfo Entity

Kris Verlaenen Kris.Verlaenen at cs.kuleuven.be
Sun Nov 22 21:10:06 EST 2009


It is correct that the WorkItemInfo object embeds the values of its
parameters.  We coudl extend that the same way we do for process
instances and variables, to make sure you can use pluggable persistence
for work item parameters as well.  I opened a JIRA for this:
https://jira.jboss.org/jira/browse/JBRULES-2345

Kris

Quoting Vijay K Pandey <VPandey at mdes.ms.gov>:

> If "a" is correct - may be I can customize the "JPAWorkItemManager"
> for my usage? Am I on the right path or I am missing something.
> 
> Thanks
> Vijay
> ________________________________
> From: rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Vijay K
> Pandey
> Sent: Wednesday, November 18, 2009 4:15 PM
> To: Rules Users List
> Subject: [rules-users] Drools Flow 5.1.0.M1 - Persistence -
> WorkItemInfo Entity
> 
> I have a question related to the (Drools Flow 5.1.0.M1 - Persistence)
> on the data that gets stored as part of the
> org.drools.persistence.processinstance.WorkItemInfo.
> 
> a)       If I am using variable persistence strategy - and I pass a
> JPA Entity(stored in its own table) to a session.startProcess("",
> map) and map this entity variable to a parameter in the work item
> node - then this entity will get stored in the WorkItemInfo table as
> a part of the serialized form in the column (workItemByteArray). So
> if that is true we have got the same data stored twice? Is this
> correct?
> b)       If "a" is true how can we avoid storing in the WorkItemInfo
> - is there somehow we can map the JPA entity to the WorkItemInfo - so
> that it doesn't gets stored twice?
> 
> 
> Thanks
> Vijay
> 




Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the rules-users mailing list