Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 186
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: Mon Jun 25 19:57:52 GMT 2018

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

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

Back to the top