Package org.apache.ode.bpel.o

Examples of org.apache.ode.bpel.o.OWait


    }


    protected Date getDueDate() throws FaultException, EvaluationException {

        OWait wait = (OWait)_self.o;

        // Assume the data was well formed (we have a deadline or a duration)
        assert wait.hasFor() || wait.hasUntil();

        EvaluationContext evalCtx = getEvaluationContext();

        Date dueDate = null;
        if (wait.hasFor()) {
            Calendar cal = Calendar.getInstance();
            Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
            duration.addTo(cal);
            dueDate = cal.getTime();
        } else if (wait.hasUntil()) {
            Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
            dueDate = cal.getTime();
        } else {
            throw new AssertionError("Static checks failed to find bad WaitActivity!");
        }
View Full Code Here


  }


  protected Date getDueDate() throws FaultException, EvaluationException {

    OWait wait = (OWait)_self.o;

    // Assume the data was well formed (we have a deadline or a duration)
    assert wait.hasFor() || wait.hasUntil();

    EvaluationContext evalCtx = getEvaluationContext();

    Date dueDate = null;
    if (wait.hasFor()) {
      Calendar cal = Calendar.getInstance();
      Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
      duration.addTo(cal);
      dueDate = cal.getTime();
    } else if (wait.hasUntil()) {
      Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
      dueDate = cal.getTime();
    } else {
      throw new AssertionError("Static checks failed to find bad WaitActivity!");
    }
View Full Code Here

    }


    protected Date getDueDate() throws FaultException, EvaluationException {

        OWait wait = (OWait)_self.o;

        // Assume the data was well formed (we have a deadline or a duration)
        assert wait.hasFor() || wait.hasUntil();

        EvaluationContext evalCtx = getEvaluationContext();

        Date dueDate = null;
        if (wait.hasFor()) {
            Calendar cal = Calendar.getInstance();
            Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
            duration.addTo(cal);
            dueDate = cal.getTime();
        } else if (wait.hasUntil()) {
            Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
            dueDate = cal.getTime();
        } else {
            throw new AssertionError("Static checks failed to find bad WaitActivity!");
        }
View Full Code Here

class WaitGenerator extends DefaultActivityGenerator {

    private WaitGeneratorMessages _msgs = MessageBundle.getMessages(WaitGeneratorMessages.class);

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

        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());
View Full Code Here

    }


    protected Date getDueDate() throws FaultException, EvaluationException {

        OWait wait = (OWait)_self.o;

        // Assume the data was well formed (we have a deadline or a duration)
        assert wait.hasFor() || wait.hasUntil();

        EvaluationContext evalCtx = getEvaluationContext();

        Date dueDate = null;
        if (wait.hasFor()) {
            Calendar cal = Calendar.getInstance();
            Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
            duration.addTo(cal);
            dueDate = cal.getTime();
        } else if (wait.hasUntil()) {
            Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
            dueDate = cal.getTime();
        } else {
            throw new AssertionError("Static checks failed to find bad WaitActivity!");
        }
View Full Code Here

    }


    protected Date getDueDate() throws FaultException, EvaluationException {

        OWait wait = (OWait)_self.o;

        // Assume the data was well formed (we have a deadline or a duration)
        assert wait.hasFor() || wait.hasUntil();

        EvaluationContext evalCtx = getEvaluationContext();

        Date dueDate = null;
        if (wait.hasFor()) {
            Calendar cal = Calendar.getInstance();
            Duration duration = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDuration(wait.forExpression, evalCtx);
            duration.addTo(cal);
            dueDate = cal.getTime();
        } else if (wait.hasUntil()) {
            Calendar cal = getBpelRuntimeContext().getExpLangRuntime().evaluateAsDate(wait.untilExpression, evalCtx);
            dueDate = cal.getTime();
        } else {
            throw new AssertionError("Static checks failed to find bad WaitActivity!");
        }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.o.OWait

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.