Package org.apache.ode.bpel.rtrep.v2.channels

Examples of org.apache.ode.bpel.rtrep.v2.channels.TerminationChannelListener


/**
* Generates code for <code>&lt;while&gt;</code> activities.
*/
class WhileGenerator extends DefaultActivityGenerator {
    public OActivity newInstance(Activity src) {
        return new OWhile(_context.getOProcess(), _context.getCurrent());
    }
View Full Code Here


    public OActivity newInstance(Activity src) {
        return new OWhile(_context.getOProcess(), _context.getCurrent());
    }

    public void compile(OActivity output, Activity srcx)  {
        OWhile owhile = (OWhile) output;
        WhileActivity src = (WhileActivity)srcx;
        owhile.whileCondition = _context.compileExpr(src.getCondition());
        owhile.activity = _context.compile(src.getActivity());
    }
View Full Code Here

                throw new CompilationException(__msgs
                    .errInvalidNumberOfArguments(Constants.EXT_FUNCTION_DOXSLTRANSFORM));
            }

            String xslUri = (String) params.get(0);
            OXslSheet xslSheet = _cctx.compileXslt(xslUri);
            try {
                XslTransformHandler.getInstance().parseXSLSheet(_cctx.getBaseResourceURI(), xslSheet.uri,
                    xslSheet.sheetBody, new XslCompileUriResolver(_cctx, _out));
            } catch (Exception e) {
                throw new CompilationException(__msgs.errXslCompilation(xslUri, e.toString()));
View Full Code Here

            uri = new URI(FileUtils.encodePath(href));
        } catch (URISyntaxException e) {
            return null;
        }

        OXslSheet sheet = _expr.xslSheets.get(uri);
        if( sheet != null) {
            result = sheet.sheetBody;
        } else {
            result = getResourceAsString(uri);
        }
View Full Code Here

          uri = new URI(FileUtils.encodePath(href));
      } catch (URISyntaxException e) {
          return null;
      }

      OXslSheet sheet = _expr.xslSheets.get(uri);
      if( sheet != null) {
          result = sheet.sheetBody;
      } else {
          result = getResourceAsString(uri);
      }
View Full Code Here

                throw new CompilationException(
                        __msgs.errInvalidNumberOfArguments(Constants.EXT_FUNCTION_DOXSLTRANSFORM));
            }

            String xslUri = (String) params.get(0);
            OXslSheet xslSheet = _cctx.compileXslt(xslUri);
            try {
                XslTransformHandler.getInstance().parseXSLSheet(_cctx.getBaseResourceURI(), xslSheet.uri, xslSheet.sheetBody,
                        new XslCompileUriResolver(_cctx, _out));
            } catch (Exception e) {
                throw new CompilationException(__msgs.errXslCompilation(xslUri, e.toString()));
View Full Code Here

                        // admin to resume the process.
                        _self.parent.failure(getBpelRuntime().getPartnerFaultExplanation(mexId), null);
                        getBpelRuntime().releasePartnerMex(mexId);
                    }

                }.or(new TerminationChannelListener(_self.self) {
                    private static final long serialVersionUID = 4219496341785922396L;

                    public void terminate() {
                        _self.parent.completed(null, CompensationHandler.emptySet());
                        object(new InvokeResponseChannelListener(invokeResponseChannel) {
View Full Code Here

                instance(INVOKE.this);
            }
            public void onCancel() {
                INVOKE.this.requireRecovery();
            }
        }.or(new TerminationChannelListener(_self.self) {
            private static final long serialVersionUID = -4416795170896911290L;

            public void terminate() {
                _self.parent.completed(null, CompensationHandler.emptySet());
                object(new TimerResponseChannelListener(timerChannel) {
View Full Code Here

                getBpelRuntime().unregisterActivityForRecovery(recoveryChannel);
                if (faultData == null)
                  faultData = createFault(OFailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason);
                _self.parent.completed(faultData, CompensationHandler.emptySet());
            }
        }.or(new TerminationChannelListener(_self.self) {
            private static final long serialVersionUID = 2148587381204858397L;

            public void terminate() {
                if (__log.isDebugEnabled())
                    __log.debug("ActivityRecovery: Cancelling invoke activity " + _self.aId + " (terminated by scope)");
View Full Code Here

        WAITER(ActivityInfo child) {
            _child = child;
        }

        public void run() {
            object(false, new TerminationChannelListener(_self.self) {
                private static final long serialVersionUID = -5471984635653784051L;

                public void terminate() {
                    _terminated = true;
                    replication(_child.self).terminate();
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.rtrep.v2.channels.TerminationChannelListener

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.