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

"Re: Serialization and declared types"

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

--------------------------------------------------------------
Sorry for formatting. One more time:

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/616829#616829]

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

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to