[jboss-user] [jBPM] - Serialization and declared types

Lukasz Kozerski do-not-reply at jboss.com
Thu Jul 21 16:06:47 EDT 2011


Lukasz Kozerski [http://community.jboss.org/people/lukasz.kozerski] created the discussion

"Serialization and declared types"

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

--------------------------------------------------------------
Hi,  I have problem with (I suppose) session serialization and declared types. Process looks like this:  Start -> Script: Stuff.status="X" -> WorkItem -> Script: Stuff.status="Y" -> End  And the test:  ksession = newSession(); ksession.startProcess("process", parameters); ksession.fireAllRules(); objects = ksession.getObjects(); assertThat(objects).hasSize(1); o = objects.iterator().next(); assertEquals("X", type.get(o, "status")); // test ok ksession.dispose();  ksession = loadSession(sessionId); ksession.getWorkItemManager().completeWorkItem(workItemId, null); objects = ksession.getObjects(); assertThat(objects).hasSize(1); o = objects.iterator().next(); assertEquals("Y", type.get(o, "status")); // test fail, status=="X" ksession.dispose();                                                        My question is: why this test fails?  Full maven project attached.  Thanks, Lukasz
--------------------------------------------------------------

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

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/20110721/8bc05c52/attachment.html 


More information about the jboss-user mailing list