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

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


        alias.debugInfo = createDebugInfo(_processDef, "PropertyAlias " + src.getPropertyName() + " for " + src.getMessageType());
        if (src.getMessageType() == null) {
            throw new CompilationException(__cmsgs.errAliasUndeclaredMessage(src.getPropertyName(), src.getQuery().getPath()));
        }

        OMessageVarType messageType = resolveMessageType(src.getMessageType());
        alias.varType = messageType;
        // bpel 2.0 excludes declaration of part;
        // bpel 1.1 requires it
        if (src.getPart() != null) {
            alias.part = messageType.parts.get(src.getPart());
View Full Code Here


        if (type instanceof OConstantVarType) {
          typeQName = new QName(Namespaces.XML_SCHEMA, "string", "xs");
        } else if (type instanceof OElementVarType) {
          typeQName = ((OElementVarType) type).elementType;
        } else if (type instanceof OMessageVarType) {
          Part part = ((OMessageVarType) type).parts.get(getVariablePartName(variableName));
          if (part != null) {
              typeQName = getTypeQName(variableName, part.type);
          }
        } else if (type instanceof OXsdTypeVarType) {
          typeQName = ((OXsdTypeVarType) type).xsdType;
View Full Code Here

        return plinkType;
    }

    public OPartnerLink resolvePartnerLink(String name) {
        for (Iterator<OScope> i = _structureStack.oscopeIterator(); i.hasNext();) {
            OPartnerLink oplink = i.next().getLocalPartnerLink(name);
            if (oplink != null)
                return oplink;
        }

        throw new CompilationException(__cmsgs.errUndeclaredPartnerLink(name));
View Full Code Here

        _structureStack.topActivity().sourceLinks.add(ol);
        _structureStack.topActivity().outgoingLinks.add(ol);
    }

    private void compile(final PartnerLink plink) {
        OPartnerLink oplink = new OPartnerLink(_oprocess);
        oplink.debugInfo = createDebugInfo(plink, plink.toString());
        try {
            PartnerLinkType plinkType = resolvePartnerLinkType(plink.getPartnerLinkType());

            oplink.partnerLinkType = plinkType.getName();
View Full Code Here

* Generates code for <code>&lt;pick&gt;</code> activities.
*/
class PickGenerator extends PickReceiveGenerator {

    public OActivity newInstance(Activity src) {
        return new OPickReceive(_context.getOProcess(), _context.getCurrent());
    }
View Full Code Here

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

    public void compile(OActivity output, Activity src) {
        OPickReceive opick = (OPickReceive) output;
        PickActivity pickDef = (PickActivity) src;

        opick.createInstanceFlag = pickDef.isCreateInstance();
        for (OnMessage sOnMessage : pickDef.getOnMessages()) {
            OPickReceive.OnMessage oOnMessage = compileOnMessage(sOnMessage.getVariable(),
View Full Code Here

            .getMessages(CommonCompilationMessages.class);

    protected static final PickGeneratorMessages __cmsgs = MessageBundle.getMessages(PickGeneratorMessages.class);

    public OActivity newInstance(Activity src) {
        return new OPickReceive(_context.getOProcess(), _context.getCurrent());
    }
View Full Code Here

            break;
        default:
            throw new IllegalStateException("Bad bpel version: " + process.getBpelVersion());
        }

        _oprocess = new OProcess(bpelVersionUri);
        _oprocess.guid = new GUID().toString();
        _oprocess.constants = makeConstants();
        _oprocess.debugInfo = createDebugInfo(process, "process");

        if (process.getTargetNamespace() == null) {
View Full Code Here

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

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

    public void compile(OActivity output, Activity srcx)  {
        ORepeatUntil oru = (ORepeatUntil) output;
        RepeatUntilActivity src = (RepeatUntilActivity)srcx;
        oru.untilCondition = _context.compileExpr(src.getCondition());
        oru.activity = _context.compile(src.getActivity());
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.rtrep.v2.OScope

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.