Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Rollback after ActivityInstanceQuery (ObjectNotFoundException thrown by ActivityInstanceQuery causes rollback)
Rollback after ActivityInstanceQuery [message #785661] Sun, 29 January 2012 09:03
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 182
Registered: October 2011
Location: Singapore
Senior Member

If the ActvityInstanceQuery does not return a result, then
ActivityInstance ai = qs.findFirstActivityInstance(aiq);

throws an ObjectNotFoundException which causes the transaction to rollback.

ActivityInstances ais = qs.getAllActivityInstances(aiq);
if (ais.getSize() > 0) ActivityInstance ai = ais.get(0);

Previous Topic:FileNotFoundException for during server startup on Tomcat
Next Topic:How to configure Data Source for Stardust pre-defined reports in Tomcat and MySQL environment
Goto Forum:

Current Time: Thu Oct 27 14:59:43 GMT 2016

Powered by FUDForum. Page generated in 0.19852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software