Examples of ECARule


Examples of org.openiaml.model.model.ECARule

    setValue(edge, DomainPackage.eINSTANCE.getSelectEdge_To(), to);
    return edge;
  }
 
  public ECARule generatedECARule(GeneratesElements by, ContainsWires container, ActionEdgeSource source, Action target) throws InferenceException {
    ECARule wire = (ECARule) createRelationship(container, ModelPackage.eINSTANCE.getECARule(), source, target, ModelPackage.eINSTANCE.getContainsWires_EcaRules(), ModelPackage.eINSTANCE.getECARule_Trigger(), ModelPackage.eINSTANCE.getECARule_Target());
    setGeneratedBy(wire, by);
    return wire;
  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    for (Object c : editor.getDiagramEditPart().getConnections()) {
      if (c instanceof ConnectionNodeEditPart) {
        ConnectionNodeEditPart connection = (ConnectionNodeEditPart) c;
        EObject element = connection.resolveSemanticElement();
        if (element instanceof ECARule) {
          ECARule w = (ECARule) element;
          if (connection.getSource().equals(source) &&
              connection.getTarget().equals(target) && w.getName().equals(name))
            return connection;  // found it
          found += ", " + w.getName();
        }
      }
    }

    fail("assertHasRunAction: no connection found between '" + source + "' and '" + target + "' with name '" + name + "'. found: " + found);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // there should be new pages created
    Frame login = assertHasFrame(session, "Login Successful");
    {
      assertHasNoWiresFromTo(root, handler, login);
      ECARule wire = assertHasNavigateAction(root, handler, login, "success");
      assertGenerated(wire);
    }

    Frame logout = assertHasFrame(root, "Logout Successful");
    {
      assertHasNoWiresFromTo(root, handler, logout);
      ECARule wire = assertHasNavigateAction(root, handler, logout, "logout");
      assertGenerated(wire);
    }

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // this page will have been generated
    Frame target = assertHasFrame(root, "Logout Successful");
    assertGenerated(target);

    Event access = page.getOnAccess();
    ECARule nav = assertHasNavigateAction(session, access, target);
    assertGenerated(nav);
  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Operation check = assertHasOperation(session, "check instance");
    Event access = dest.getOnAccess();
    {
      // a run action
      ECARule run = assertHasRunAction(session, access, check);
      assertGenerated(run);
      assertEquals("run", run.getName());
    }

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Operation op = assertHasOperation(session, "do logout");
    Event access = logout.getOnAccess();
    // no wires
    {
      ECARule run = assertHasRunAction(session, access, op);
      assertGenerated(run);
    }

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // a generated operation will handle the login
    Operation op = assertHasOperation(loginSession, "do login");
    assertGenerated(op);

    // button has an 'onClick' run wire
    ECARule run = assertHasRunAction(root, button, op);
    assertGenerated(run);
    assertEquals("onClick", run.getName());

    // the text field has a parameter
    Value prop = assertHasFieldValue(field);
    assertGenerated(prop);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Operation update = assertHasOperation(instant2, "update");
    assertGenerated(update);

    // RunAction connecting the two
    ECARule run = assertHasRunAction(root, onInput, update, "run");
    assertGenerated(run);

    // with the currentInput as parameter
    Parameter param = assertHasParameter(root, currentInput, run);
    assertGenerated(param);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Operation update = assertHasOperation(instant1, "update");
    assertGenerated(update);

    // RunAction connecting the two
    ECARule run = assertHasRunAction(root, onInput, update, "run");
    assertGenerated(run);

    // with the currentInput as parameter
    Parameter param = assertHasParameter(root, currentInput, run);
    assertGenerated(param);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    // destination page
    Session loginSession = assertHasSession(root, "login handler login");
    Frame login = assertHasFrame(loginSession, "login");
    {
      ECARule wire = assertHasECARule(root, check, login, "fail");
      assertGenerated(wire);
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.