Examples of ECARule


Examples of org.openiaml.model.model.ECARule

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

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

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

Examples of org.openiaml.model.model.ECARule

      Value currentInput = assertHasCurrentInput(mixed2);
      Event onInput = mixed2.getOnInput();
      Operation update = assertHasOperation(mixed1, "update");

      // RunAction connecting the two
      ECARule run = assertHasRunAction(root, onInput, update, "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

    assertGenerated(onChange);

    Operation op = assertHasOperation(ltitle, "update");
    assertGenerated(op);

    ECARule run = assertHasRunAction(root, onChange, op);
    assertGenerated(run);

    // with ActivityParameter from attr instance
    Value value = assertHasFieldValue(ititle);
    assertGenerated(value);
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    assertGenerated(onAccess);

    Operation init = assertHasOperation(target, "init");
    assertGenerated(init);

    ECARule run = assertHasRunAction(root, onAccess, init, new Filter<ECARule>() {
      @Override
      public boolean accept(ECARule r) {
        if (r.getInParameterEdges().size() != 1)
          return false;
        ParameterEdgesSource paramSource = r.getInParameterEdges().get(0).getParameterValue();
        if (paramSource.eContainer().equals(source))
          return true;
        return false;
      }
    });
    assertGenerated(run);

    Value sourceValue = assertHasFieldValue(source);
    assertGenerated(sourceValue);

    // parameter
    assertGenerated(assertHasParameter(root, sourceValue, run));
    // but there should only be one
    assertEquals(run.getInParameterEdges().toString(), 1, run.getInParameterEdges().size());

    BuiltinProperty cond = assertHasBuiltinProperty(source, "fieldValue is set");
    assertGenerated(cond);

    assertGenerated(assertHasSimpleCondition(root, cond, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    assertGenerated(onAccess);

    Operation init = assertHasOperation(target, "init");
    assertGenerated(init);

    ECARule run = assertHasRunAction(root, onAccess, init, new Filter<ECARule>() {
      @Override
      public boolean accept(ECARule r) {
        if (r.getInParameterEdges().size() != 1)
          return false;
        ParameterEdgesSource paramSource = r.getInParameterEdges().get(0).getParameterValue();
        if (paramSource.eContainer().equals(changed))
          return true;
        return false;
      }
    });
    assertGenerated(run);

    Value sourceValue = assertHasFieldValue(changed);
    assertGenerated(sourceValue);

    // parameter
    assertGenerated(assertHasParameter(root, sourceValue, run));
    // but there should only be one
    assertEquals(run.getInParameterEdges().toString(), 1, run.getInParameterEdges().size());

    BuiltinProperty cond = assertHasBuiltinProperty(changed, "fieldValue is set");
    assertGenerated(cond);

    assertGenerated(assertHasSimpleCondition(root, cond, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");

    Event edit = t1.getOnChange();
    Operation update = assertHasOperation(a1, "update");

    ECARule run = assertHasRunAction(root, edit, update);
    System.out.println(run);

    assertGenerated(run);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    DomainAttributeInstance a1 = assertHasDomainAttributeInstance(instance, "title");

    Event edit = a1.getOnChange();
    Operation update = assertHasOperation(t1, "update");

    ECARule run = assertHasRunAction(root, edit, update);

    assertGenerated(run);

  }
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    MapPoint point = assertHasMapPoint(home, "target map point");

    // input.onChange -> point.update()
    Event onChange = input.getOnChange();
    Operation update = assertHasOperation(point, "update");
    ECARule run = assertHasRunAction(root, onChange, update);

    Value textValue = assertHasFieldValue(input);
    Value pointValue = assertHasFieldValue(point);

    assertGenerated(assertHasParameter(root, textValue, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Map map = assertHasMap(home, "Target Map");

    // input.onChange -> point.update()
    Event onChange = input.getOnChange();
    Operation update = assertHasOperation(map, "update");
    ECARule run = assertHasRunAction(root, onChange, update);

    Value textValue = assertHasFieldValue(input);
    Value mapValue = assertHasFieldValue(map);

    assertGenerated(assertHasParameter(root, textValue, run));
View Full Code Here

Examples of org.openiaml.model.model.ECARule

    Button next = assertHasButton(form, "Next");

    Event onClick = next.getOnClick();
    assertGenerated(onClick);

    ECARule run = assertHasRunAction(root, onClick, inext);
    assertGenerated(run);

    assertGenerated(assertHasSimpleCondition(root, hasNext, run));

  }
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.