Examples of ExecutionError


Examples of at.ipsquare.commons.core.interfaces.ExecutionError

                return work.execute();
            }
            catch(Exception e)
            {
                log.warn(exceptionLogMessage(work), e);
                throw new ExecutionError(e);
            }
        }
       
        log.info("Executing " + work + ".");
        Session session = session();
        currentSession.set(session);
        currentUnitOfWork.set(work);
       
        session.beginTransaction();
        try
        {
            T result = null;
            try
            {
                result = work.execute();
            }
            catch(Exception e)
            {
                log.warn(exceptionLogMessage(work), e);
               
                Transaction tx = getActiveTransaction(session);
                if(tx != null)
                    tx.rollback();
                throw new ExecutionError(e);
            }
           
            Transaction tx = getActiveTransaction(session);
            if(tx != null)
                tx.commit();
View Full Code Here

Examples of at.ipsquare.commons.core.interfaces.ExecutionError

                ok = true;
                return null;
            }
            catch(Exception e)
            {
                throw new ExecutionError(e);
            }
            finally
            {
                (ok ? unitsProcessedOk : unitsProcessedError).incrementAndGet();
            }
View Full Code Here

Examples of at.ipsquare.commons.core.interfaces.ExecutionError

                return work.execute();
            }
            catch(Exception e)
            {
                log.warn(exceptionLogMessage(work), e);
                throw new ExecutionError(e);
            }
        }
       
        log.info("Executing " + work + ".");
        Session session = session();
        currentSession.set(session);
        currentUnitOfWork.set(work);
       
        session.beginTransaction();
        try
        {
            T result = null;
            try
            {
                result = work.execute();
            }
            catch(Exception e)
            {
                log.warn(exceptionLogMessage(work), e);
               
                Transaction tx = getActiveTransaction(session);
                if(tx != null)
                    tx.rollback();
                throw new ExecutionError(e);
            }
           
            Transaction tx = getActiveTransaction(session);
            if(tx != null)
                tx.commit();
View Full Code Here

Examples of at.ipsquare.commons.core.interfaces.ExecutionError

                ok = true;
                return null;
            }
            catch(Exception e)
            {
                throw new ExecutionError(e);
            }
            finally
            {
                (ok ? unitsProcessedOk : unitsProcessedError).incrementAndGet();
            }
View Full Code Here

Examples of at.ipsquare.hibernate.ExecutionError

                ok = true;
                return null;
            }
            catch(Exception e)
            {
                throw new ExecutionError(e);
            }
            finally
            {
                (ok ? unitsProcessedOk : unitsProcessedError).incrementAndGet();
            }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

            if (isFinal) {
                runner.callOnFinalState(State.this, context);
            }
        } catch (Exception e) {
            runner.callOnError(new ExecutionError(State.this, null, e,
                    "Execution Error in [State.whenEnter] handler", context));
        }
  }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

                onLeaveHandler.call(State.this, context);

                if (runner.isTrace())
                    log.debug("when leave {} for {} >>>", State.this, context);
            } catch (Exception e) {
                runner.callOnError(new ExecutionError(State.this, null, e,
                        "Execution Error in [State.whenEnter] handler", context));
            }
    }
    runner.callOnStateLeave(this, context);
  }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

                onEventTriggeredHandler.call(event, from, to, context);

                if (isTrace())
                    log.debug("when triggered {} in {} for {} >>>", event, from, context);
            } catch (Exception e) {
                callOnError(new ExecutionError(from, event, e,
                    "Execution Error in [EasyFlow.whenEventTriggered] handler", context));
            }
        }
    }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

                onStateEnterHandler.call(state, context);

                if (isTrace())
                    log.debug("when enter state {} for {} >>>", state, context);
            } catch (Exception e) {
                callOnError(new ExecutionError(state, null, e,
                    "Execution Error in [EasyFlow.whenStateEnter] handler", context));
            }
        }
    }
View Full Code Here

Examples of au.com.ds.ef.err.ExecutionError

                onStateLeaveHandler.call(state, context);

                if (isTrace())
                    log.debug("when leave state {} for {} >>>", state, context);
            } catch (Exception e) {
                callOnError(new ExecutionError(state, null, e,
                    "Execution Error in [EasyFlow.whenStateLeave] handler", context));
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.