Package org.apache.ode.bpel.runtime.channels

Examples of org.apache.ode.bpel.runtime.channels.TimerResponse


        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = -7767141033611036745L;

            public void run() {
                TimerResponse responseChannel = importChannel(timerResponseChannel, TimerResponse.class);
                responseChannel.onTimeout();
            }
        });
        execute();
    }
View Full Code Here


        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 6157913683737696396L;

            public void run() {
                TimerResponse timerResponse = importChannel(id, TimerResponse.class);
                timerResponse.onCancel();
            }
        });
    }
View Full Code Here

            return;
        }


        if(dueDate.getTime() > getBpelRuntimeContext().getCurrentEventDateTime().getTime()) {
            final TimerResponse timerChannel = newChannel(TimerResponse.class);
            getBpelRuntimeContext().registerTimer(timerChannel, dueDate);

            object(false, compose(new ReceiveProcess() {
                private static final long serialVersionUID = 3120518305645437327L;
            }.setChannel(timerChannel).setReceiver(new TimerResponse() {
                public void onTimeout() {
                    _self.parent.completed(null, CompensationHandler.emptySet());
                }

                public void onCancel() {
                    _self.parent.completed(null, CompensationHandler.emptySet());
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = -2791243270691333946L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    _self.parent.completed(null, CompensationHandler.emptySet());
                    object(new ReceiveProcess() {
                        private static final long serialVersionUID = 677746737897792929L;
                    }.setChannel(timerChannel).setReceiver(new TimerResponse() {
                        public void onTimeout() {
                            //ignore
                        }

                        public void onCancel() {
View Full Code Here

            }));

            if (_alarm == null) {
                object(false, listeners);
            } else if (now.before(_alarm)) {
                TimerResponse trc = newChannel(TimerResponse.class);
                getBpelRuntimeContext().registerTimer(trc,_alarm.getTime());

                listeners.or(new ReceiveProcess() {
                    private static final long serialVersionUID = 1110683632756756017L;
                }.setChannel(trc).setReceiver(new TimerResponse(){
                    public void onTimeout() {
                        // This is what we are waiting for, fire the activity
                        instance(new FIRE());
                    }
View Full Code Here

                    if (__log.isDebugEnabled())
                        __log.debug("ActivityRecovery: Retrying activity " + _self.aId);
                    Date future = new Date(new Date().getTime() +
                        (failureHandling == null ? 0L : failureHandling.retryDelay * 1000));
                    final TimerResponse timerChannel = newChannel(TimerResponse.class);
                    getBpelRuntimeContext().registerTimer(timerChannel, future);
                    object(false, new ReceiveProcess() {
                        private static final long serialVersionUID = -261911108068231376L;
                    }.setChannel(timerChannel).setReceiver(new TimerResponse() {
                        public void onTimeout() {
                            ++_failure.retryCount;
                            startGuardedActivity();
                        }
                        public void onCancel() {
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.runtime.channels.TimerResponse

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.