Package org.apache.ode.bpel.rtrep.v2.xquery10.runtime

Examples of org.apache.ode.bpel.rtrep.v2.xquery10.runtime.XQuery10BpelFunctions


            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

        String sheetBody = loadXsltSheet(_processURI.resolve(docUri));
        if (sheetBody == null) {
            throw new CompilationException(__cmsgs.errCantFindXslt(docStrUri));
        }

        OXslSheet oXslSheet = new OXslSheet(_oprocess);
        oXslSheet.uri = docUri;
        oXslSheet.sheetBody = sheetBody;

        _oprocess.xslSheets.put(oXslSheet.uri, oXslSheet);
        return oXslSheet;
View Full Code Here

    _cc = cc;
    _expr = expr;
  }

  public Source resolve(String href, String base) throws TransformerException {
    OXslSheet xslSheet = _cc.compileXslt(href);
    _expr.xslSheets.put(xslSheet.uri, xslSheet);
    return new StreamSource(new StringReader(xslSheet.sheetBody));
  }
View Full Code Here

                }

                public void completed(FaultData faultData, Set<CompensationHandler> compensations) {
                  if (faultData != null) {
                        if (!isScopeRetryable()) {
                          FaultData fault = createFault(getConstants().qnScopeRollback, faultData.getFaultMessage(), null, SCOPEACT.this._self.o);
                            _parent.completed(fault, CompensationHandler.emptySet());
                            _linkStatusInterceptor.val(false);
                            unlockAll(false);
                        } else {
                          unlockAll(true);
                        }
                  } else {
                        _parent.completed(faultData, compensations);
                        _linkStatusInterceptor.val(faultData == null);
                        unlockAll(false);
                        // no more listening
                  }
                  getBpelRuntime().setRetriedOnce();
                }

                public void failure(String reason, Element data) {
                  unlockAll(true);
                    if (!isScopeRetryable()) {
                      FaultData fault = createFault(getConstants().qnScopeRollback, data, null, SCOPEACT.this._self.o);
                        _parent.completed(fault, CompensationHandler.emptySet());
                        _linkStatusInterceptor.val(false);
                    }
                }
View Full Code Here

        @Override
        public void run() {

            __log.debug("running UNLOCKER");
            object(new ParentScopeChannelListener(_self) {

                public void cancelled() {
                    _parent.cancelled();
                    _linkStatusInterceptor.val(false);
                    unlockAll(false);
View Full Code Here

          // this is not the first time we're trying this scope
          if (getBpelRuntime().isRetryable()) {
            // we need to retry after injecting a certain amount of delay
                    Date future = new Date(new Date().getTime() +
                            getBpelRuntime().getRetryDelay() * 1000);
                    final TimerResponseChannel timerChannel = newChannel(TimerResponseChannel.class);
                    getBpelRuntime().registerTimer(timerChannel, future);
                    object(false, new TimerResponseChannelListener(timerChannel) {
                        private static final long serialVersionUID = -261911108068231376L;
                            public void onTimeout() {
                                getBpelRuntime().setRetriedOnce();
View Full Code Here

    /**
     * @see org.apache.ode.bpel.compiler.api.ExpressionCompiler#compile(java.lang.Object)
     */
    private OExpression _compile(org.apache.ode.bpel.compiler.bom.Expression xquery, boolean isJoinCondition)
            throws CompilationException {
      OXQuery10ExpressionBPEL20 oexp = new OXQuery10ExpressionBPEL20(_compilerContext.getOProcess(), _qnVarData,
                _qnVarProp, _qnLinkStatus, _qnXslTransform, isJoinCondition);
        oexp.namespaceCtx = xquery.getNamespaceContext();
        doJaxpCompile(oexp, xquery);
        return oexp;
    }
View Full Code Here

     * @throws FaultException FaultException
     */
    private Object evaluate(OExpression cexp, EvaluationContext ctx, QName type)
        throws FaultException {
        try {
            OXQuery10ExpressionBPEL20 oxquery10 = ((OXQuery10ExpressionBPEL20) cexp);

            XQDataSource xqds = new SaxonXQDataSource();
            XQConnection xqconn = xqds.getConnection();

            Configuration configuration = ((SaxonXQConnection) xqconn).getConfiguration();
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.rtrep.v2.xquery10.runtime.XQuery10BpelFunctions

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.