Package com.microworkflow.execution

Examples of com.microworkflow.execution.ConditionalContinuation


  public Conditional(TestCondition aClosure, Activity thenBranch) {
    this(aClosure,thenBranch,null);
  }
 
  public Continuation continuationWith(Continuation continuation) {
    ConditionalContinuation k = continuation.makeConditionalContinuation(this);
    k.setTestCondition(test);
    k.resetState();
    return k;
  }
View Full Code Here


    this.thenBranch = thenBranch;
  }

  public void computeStateFor(Continuation k) {
    Continuation next=k.getNextContinuation();
    ConditionalContinuation ck=(ConditionalContinuation)k;
    if (thenBranch != null) {
      ck.setThenContinuation(thenBranch.continuationWith(next));
    } else {
      ck.setThenContinuation(next);
    }
    if (elseBranch != null) {
      ck.setElseContinuation(elseBranch.continuationWith(next));
    } else {
      ck.setElseContinuation(next);
    }   
  }
View Full Code Here

TOP

Related Classes of com.microworkflow.execution.ConditionalContinuation

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.