Package org.apache.ode.bpel.compiler.bom

Examples of org.apache.ode.bpel.compiler.bom.WaitActivity


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

    public void compile(OActivity output, Activity src) {
        WaitActivity waitDef = (WaitActivity)src;
        OWait owait = (OWait)output;
        if (waitDef.getFor() != null && waitDef.getUntil() == null) {
            owait.forExpression = _context.compileExpr(waitDef.getFor());
        }
        else if (waitDef.getFor() == null && waitDef.getUntil() != null) {
            owait.untilExpression = _context.compileExpr(waitDef.getUntil());
        }
        else {
            throw new CompilationException(_msgs.errWaitMustDefineForOrUntilDuration().setSource(waitDef));
        }
    }
View Full Code Here


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

    public void compile(OActivity output, Activity src) {
        WaitActivity waitDef = (WaitActivity)src;
        OWait owait = (OWait)output;
        if (waitDef.getFor() != null && waitDef.getUntil() == null) {
            owait.forExpression = _context.compileExpr(waitDef.getFor());
        }
        else if (waitDef.getFor() == null && waitDef.getUntil() != null) {
            owait.untilExpression = _context.compileExpr(waitDef.getUntil());
        }
        else {
            throw new CompilationException(_msgs.errWaitMustDefineForOrUntilDuration().setSource(waitDef));
        }
    }
View Full Code Here

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

    public void compile(OActivity output, Activity src) {
        WaitActivity waitDef = (WaitActivity)src;
        OWait owait = (OWait)output;
        if (waitDef.getFor() != null && waitDef.getUntil() == null) {
            owait.forExpression = _context.compileExpr(waitDef.getFor());
        }
        else if (waitDef.getFor() == null && waitDef.getUntil() != null) {
            owait.untilExpression = _context.compileExpr(waitDef.getUntil());
        }
        else {
            throw new CompilationException(_msgs.errWaitMustDefineForOrUntilDuration().setSource(waitDef));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.compiler.bom.WaitActivity

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.