Author: objectiser
Date: 2009-11-18 10:06:15 -0500 (Wed, 18 Nov 2009)
New Revision: 280
Modified:
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java
Log:
RIFTSAW-83 - silently ignore ProcessNotFound exception, resulting from the fact that a
request to terminate a process instance that has already been terminated due to its
process definition being undeployed. Otherwise a stack trace is displayed on the admin
console.
Modified:
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java
===================================================================
---
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java 2009-11-18
15:03:43 UTC (rev 279)
+++
trunk/console/integration/src/main/java/org/jboss/soa/bpel/console/ProcessMgmtImpl.java 2009-11-18
15:06:15 UTC (rev 280)
@@ -136,8 +136,12 @@
public void endInstance(String instanceId, ProcessInstanceRef.RESULT result)
{
- String iid = ModelAdaptor.decodeId(instanceId);
- getMgmtFacade().terminate(Long.valueOf(iid));
+ try {
+ String iid = ModelAdaptor.decodeId(instanceId);
+ getMgmtFacade().terminate(Long.valueOf(iid));
+ } catch(org.apache.ode.bpel.pmapi.ProcessNotFoundException ex) {
+ // Silently ignore
+ }
}
public void deleteInstance(String instanceId)
Show replies by date