[jboss-user] [jBPM] - Persistent processes and workItems

Miljenko Norsic do-not-reply at jboss.com
Wed Oct 5 12:22:40 EDT 2011


Miljenko Norsic [http://community.jboss.org/people/mnorsic] created the discussion

"Persistent processes and workItems"

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

--------------------------------------------------------------
Hi,

I'm implementing a process that uses custom work item handlers that respond to external events (that is, they do not terminate upon calling executeWorkItem() method), they are persisted and completed when external system responds (then I call manager.completeWorkItem() method).

So, work items are persisted into a database (into a table WORKITEMINFO), where I see a LOB called workItemByteArray.

My question is: are all process variables stored into a workItemByteArray?

I'm asking this because I have implemented a variable persistence process strategy (by using script tasks to add variables into a process and persist it), but it seems that workItemInfo doesn't understand I have persisted objects already, and it serializes those objects into a LOB.

And this is a problem because I have an object stored into a database twice: once as a entity, and once as a serialized object in a byteArray in work item.

Can someone from jBPM team confirm/deny this (I might be wrong, I did not read sources throughly, and I'm judging according to my sample app)?

Thanks in advance,
Miljenko
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/630274#630274]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111005/fff13223/attachment.html 


More information about the jboss-user mailing list