Package org.openiaml.model.model.operations

Examples of org.openiaml.model.model.operations.DecisionNode


    // -- traverse from start node --
    StartNode start = assertHasStartNode(init);
    FinishNode finish = assertHasFinishNode(init);
    CancelNode cancel = assertHasCancelNode(init);

    DecisionNode check = assertHasDecisionNode(init, "can cast?");
    CastNode cast = assertHasCastNode(init);

    SetNode set = assertHasSetNode(init);

    assertHasExecutionEdge(init, start, check);
View Full Code Here


    StartNode start = assertHasStartNode(canCast);
    ActivityParameter param = assertHasActivityParameter(canCast, "value");
    // ActivityParameter is of 'any' type
    assertNull(param.getType());

    DecisionNode check = assertHasDecisionNode(canCast, "can cast?");

    CastNode cast = assertHasCastNode(canCast);

    assertHasDataFlowEdge(canCast, param, cast)// in
    assertHasDataFlowEdge(canCast, cast, check)// check
View Full Code Here

    StartNode start = assertHasStartNode(cond);
    FinishNode finish = assertHasFinishNode(cond);
    CancelNode cancel = assertHasCancelNode(cond);

    DecisionNode check = assertHasDecisionNode(cond, "is set?");

    assertHasExecutionEdge(cond, start, check);
    assertHasExecutionEdge(cond, check, finish);
    assertHasExecutionEdge(cond, check, cancel);
   
    // check <- ExternalValue <- value
    {
      assertEquals(1, check.getInFlows().size());
      ExternalValue ev = (ExternalValue) check.getInFlows().get(0).getFrom();
      assertEquals(value, ev.getValue());
    }

  }
View Full Code Here

    // -- traverse from start node --
    StartNode start = assertHasStartNode(update);
    FinishNode finish = assertHasFinishNode(update);
    CancelNode cancel = assertHasCancelNode(update);

    DecisionNode check = assertHasDecisionNode(update, "can cast?");
    CastNode cast = assertHasCastNode(update);

    SetNode set = assertHasSetNode(update);

    assertHasExecutionEdge(update, start, check);
View Full Code Here

TOP

Related Classes of org.openiaml.model.model.operations.DecisionNode

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.