Examples of OLink


Examples of org.apache.ode.bpel.rtrep.v1.OLink

        alias.debugInfo = createDebugInfo(_processDef, src.getMessageType() + " --> " + src.getPropertyName());
        return alias;
    }

    private void compileLinkTarget(LinkTarget target) {
        OLink ol = resolveLink(target.getLinkName());
        assert ol != null;
        ol.debugInfo = createDebugInfo(target, target.toString());
        if (ol.target != null)
            throw new CompilationException(__cmsgs.errDuplicateLinkTarget(target.getLinkName()).setSource(target));
        ol.target = _structureStack.topActivity();
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.OLink

        _structureStack.topActivity().targetLinks.add(ol);
    }

    private void compileLinkSource(LinkSource linksrc) {
        OLink ol = resolveLink(linksrc.getLinkName());
        assert ol != null;
        ol.debugInfo = createDebugInfo(linksrc, linksrc.toString());
        if (ol.source != null)
            throw new CompilationException(__cmsgs.errDuplicateLinkSource(linksrc.getLinkName()).setSource(linksrc));
        ol.source = _structureStack.topActivity();
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v1.OLink

    return new OFlow(_context.getOProcess(),_context.getCurrent());
  }

  private void compileLinkDecls(OFlow oflow, FlowActivity flowAct) {
    for (Link link : flowAct.getLinks()) {
      OLink olink = new OLink(_context.getOProcess());
      olink.name = link.getLinkName();
      declareLink(oflow, olink);
    }
  }
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

            if (params.size() != 1) {
                throw new CompilationException(__msgs
                    .errInvalidNumberOfArguments(Constants.EXT_FUNCTION_GETLINKSTATUS));
            }
            String linkName = (String) params.get(0);
            OLink olink = _cctx.resolveLink(linkName);
            _out.links.put(linkName, olink);

            return "";
        }
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

        try {
            String name = variableName.getLocalPart();
            if (_oxpath instanceof OXPath10ExpressionBPEL20
                && ((OXPath10ExpressionBPEL20) _oxpath).isJoinExpression) {
                // these resolve to links
                OLink olink = _cctx.resolveLink(name);
                _oxpath.links.put(name, olink);
                return Boolean.TRUE;
            } else {
                int dot = name.indexOf('.');
                if (dot != -1)
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

            throw new CompilationException(__cmsgs.errUndeclaredPortType(portTypeName));
        return portType;
    }

    public OLink resolveLink(String linkName) {
        OLink ret = null;

        // Fist find where the link is declared.
        for (Iterator<OActivity> i = _structureStack.iterator(); i.hasNext();) {
            OActivity oact = i.next();
            if (oact instanceof OFlow)
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

        alias.debugInfo = createDebugInfo(_processDef, src.getMessageType() + " --> " + src.getPropertyName());
        return alias;
    }

    private void compileLinkTarget(LinkTarget target) {
        OLink ol = resolveLink(target.getLinkName());
        assert ol != null;
        ol.debugInfo = createDebugInfo(target, target.toString());
        if (ol.target != null)
            throw new CompilationException(__cmsgs.errDuplicateLinkTarget(target.getLinkName()).setSource(target));
        ol.target = _structureStack.topActivity();
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

        _structureStack.topActivity().targetLinks.add(ol);
    }

    private void compileLinkSource(LinkSource linksrc) {
        OLink ol = resolveLink(linksrc.getLinkName());
        assert ol != null;
        ol.debugInfo = createDebugInfo(linksrc, linksrc.toString());
        if (ol.source != null)
            throw new CompilationException(__cmsgs.errDuplicateLinkSource(linksrc.getLinkName()).setSource(linksrc));
        ol.source = _structureStack.topActivity();
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

        try {
            String name = variableName.getLocalPart();
            if(_oxpath.isJoinExpression) {
                // these resolve to links
                OLink olink = _cctx.resolveLink(name);
                _oxpath.links.put(name, olink);
                return Boolean.TRUE;
            } else {
                int dot = name.indexOf('.');
                if (dot != -1)
View Full Code Here

Examples of org.apache.ode.bpel.rtrep.v2.OLink

        OFlow oflow = (OFlow) output;
        compileLinkDecls(oflow, flowAct);
        compileChildren(oflow, flowAct);

        for (Iterator<OLink> i = oflow.localLinks.iterator(); i.hasNext(); ) {
            OLink olink = i.next();
            try {
                if (olink.source == null)
                    throw new CompilationException(__cmsgs.errLinkMissingSourceActivity(olink.name).setSource(flowAct));
            } catch (CompilationException ce) {
                _context.recoveredFromError(src, ce);
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.