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

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


        public void run() {
            Iterator<ChildInfo> active = active();
            if (active.hasNext()) {
                CompositeProcess mlSet = ProcessUtil.compose(new ReceiveProcess() {
                    private static final long serialVersionUID = 2554750258974084466L;
                }.setChannel(_self.self).setReceiver(new Termination() {
                    public void terminate() {
                        for (Iterator<ChildInfo> i = active(); i.hasNext(); )
                            replication(i.next().activity.self).terminate();
                        instance(ACTIVE.this);
                    }
View Full Code Here


        }

        public void run() {
            object(false, compose(new ReceiveProcess() {
                private static final long serialVersionUID = -5471984635653784051L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    _terminated = true;
                    replication(_child.self).terminate();
                    instance(WAITER.this);
                }
View Full Code Here

                    _self.parent.completed(null, CompensationHandler.emptySet());
                }

            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = 4399496341785922396L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    getBpelRuntimeContext().cancel(_pickResponseChannel);
                    instance(WAITING.this);
                }
            })));
View Full Code Here

                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() {
View Full Code Here

        }

        public void run() {
            object(false, compose(new ReceiveProcess() {
                private static final long serialVersionUID = -2680515407515637639L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    replication(_child.self).terminate();

                    // Don't do any of the remaining activiites, DPE instead.
                    ArrayList<OActivity> remaining = new ArrayList<OActivity>(_remaining);
View Full Code Here

                        getBpelRuntimeContext().releasePartnerMex(mexId, false);
                    }

                })).or(new ReceiveProcess() {
                    private static final long serialVersionUID = 4219496341785922396L;
                }.setChannel(_self.self).setReceiver(new Termination() {
                    public void terminate() {
                        _self.parent.completed(null, CompensationHandler.emptySet());
                    }
                })));
            }
View Full Code Here

                public void stop() {
                    _psc.completed(null, _comps);
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = 6100105997983514609L;
            }.setChannel(_tc).setReceiver(new Termination() {
                public void terminate() {
                    _psc.completed(null, _comps);
                }
            }));
View Full Code Here

                    _stopped = true;
                    instance(ACTIVE.this);
                }
            })).or(new ReceiveProcess() {
                private static final long serialVersionUID = -4566956567870652885L;
            }.setChannel(_tc).setReceiver(new Termination() {
                public void terminate() {
                    replication(_activity.self).terminate();
                    _stopped = true;
                    instance(ACTIVE.this);
                }
View Full Code Here

            Iterator<ChildInfo> active = active();
            // Continuing as long as a child is active
            if (active().hasNext()) {
                CompositeProcess mlSet = ProcessUtil.compose(new ReceiveProcess() {
                    private static final long serialVersionUID = 2554750257484084466L;
                }.setChannel(_self.self).setReceiver(new Termination() {
                    public void terminate() {
                        // Terminating all children before sepuku
                        for (Iterator<ChildInfo> i = active(); i.hasNext(); )
                            replication(i.next().activity.self).terminate();
                        _terminateRequested = true;
View Full Code Here

                dpe(_oactivity);
            }
        } else /* don't know all our links statuses */ {
            CompositeProcess mlset = compose(new ReceiveProcess() {
                private static final long serialVersionUID = 5094153128476008961L;
            }.setChannel(_self.self).setReceiver(new Termination() {
                public void terminate() {
                    // Complete immediately, without faulting or registering any comps.
                    _self.parent.completed(null, CompensationHandler.emptySet());
                    // Dead-path activity
                    dpe(_oactivity);
View Full Code Here

TOP

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

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.