Package org.apache.airavata.gfac.notification.events

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent


                disposeProvider(provider, jobExecutionContext);
            }

            invokeOutFlowHandlers(jobExecutionContext);
        } catch (GFacException e) {
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        }
    }
View Full Code Here


                disposeProvider(provider, jobExecutionContext);
            }

        } catch (GFacException e) {
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        } finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

                disposeProvider(provider, jobExecutionContext);
            }

        } catch (GFacException e) {
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        } catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e);
        }
        finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

                disposeProvider(provider, jobExecutionContext);
            }

        }catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(),e);
        }
        finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

                disposeProvider(provider, jobExecutionContext);
            }
            invokeOutFlowHandlers(jobExecutionContext);
        }catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(),e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.