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 Emsbach
Messages: 121
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.

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

Previous Topic:FileNotFoundException for carnot.properties 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: Wed Oct 22 08:17:33 GMT 2014

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

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