Examples of InputModel


Examples of net.sf.nfp.mini.model.InputModel

  }

  protected void createNavigation() {
    pages.put("input", new LazyInit() {
      public Page create() {
        return new Page(new InputModel(NFPControler.this), new InputView());
      }
    });
    pages.put("graph", new LazyInit() {
      public Page create() {
        return new Page(new GraphModel(NFPControler.this), new GraphView());
View Full Code Here

Examples of org.springframework.webflow.engine.model.InputModel

  private VarModel parseVar(Element element) {
    return new VarModel(element.getAttribute("name"), element.getAttribute("class"));
  }

  private InputModel parseInput(Element element) {
    InputModel input = new InputModel(element.getAttribute("name"), element.getAttribute("value"));
    input.setType(element.getAttribute("type"));
    input.setRequired(element.getAttribute("required"));
    return input;
  }
View Full Code Here

Examples of org.springframework.webflow.engine.model.InputModel

    assertNotNull(flow.getAttributes().get("persistenceContext"));
    assertTrue(((Boolean) flow.getAttributes().get("persistenceContext")).booleanValue());
  }

  public void testFlowInputOutputMapping() {
    InputModel input1 = new InputModel("foo", "flowScope.foo");
    InputModel input2 = new InputModel("foo", "flowScope.bar");
    InputModel input3 = new InputModel("number", "flowScope.baz");
    input3.setType("integer");
    InputModel input4 = new InputModel("required", "flowScope.boop");
    input4.setRequired("true");
    model.setInputs(quadList(input1, input2, input3, input4));

    OutputModel output1 = new OutputModel("differentName", "flowScope.bar");
    OutputModel output2 = new OutputModel("number", "flowScope.baz");
    output2.setType("integer");
View Full Code Here

Examples of org.springframework.webflow.engine.model.InputModel

    assertNotNull(flow.getAttributes().get("persistenceContext"));
    assertTrue((Boolean) flow.getAttributes().get("persistenceContext"));
  }

  public void testFlowInputOutputMapping() {
    InputModel input1 = new InputModel("foo", "flowScope.foo");
    InputModel input2 = new InputModel("foo", "flowScope.bar");
    InputModel input3 = new InputModel("number", "flowScope.baz");
    input3.setType("integer");
    InputModel input4 = new InputModel("required", "flowScope.boop");
    input4.setRequired("true");
    model.setInputs(asList(InputModel.class, input1, input2, input3, input4));

    OutputModel output1 = new OutputModel("differentName", "flowScope.bar");
    OutputModel output2 = new OutputModel("number", "flowScope.baz");
    output2.setType("integer");
View Full Code Here

Examples of org.springframework.webflow.engine.model.InputModel

  private VarModel parseVar(Element element) {
    return new VarModel(element.getAttribute("name"), element.getAttribute("class"));
  }

  private InputModel parseInput(Element element) {
    InputModel input = new InputModel(element.getAttribute("name"), element.getAttribute("value"));
    input.setType(element.getAttribute("type"));
    input.setRequired(element.getAttribute("required"));
    return input;
  }
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.InputModel

        Assert.assertEquals("process", operation.getName());
        Assert.assertEquals(RulesOperationType.FIRE_UNTIL_HALT, operation.getType());
        GlobalModel globalModel = operation.getGlobals().getGlobals().get(0);
        Assert.assertEquals("context['foobar']", globalModel.getFrom());
        Assert.assertEquals("globalVar", globalModel.getTo());
        InputModel inputModel = operation.getInputs().getInputs().get(0);
        Assert.assertEquals("message.content.nested", inputModel.getFrom());
        Assert.assertEquals("inputVar", inputModel.getTo());
        OutputModel outputModel = operation.getOutputs().getOutputs().get(0);
        Assert.assertEquals("outputVar", outputModel.getFrom());
        Assert.assertEquals("message.content", outputModel.getTo());
        FaultModel faultModel = operation.getFaults().getFaults().get(0);
        Assert.assertEquals("faultVar", faultModel.getFrom());
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.InputModel

     * @param desc the descriptor
     */
    public V1InputsModel(Configuration config, Descriptor desc) {
        super(config, desc);
        for (Configuration input_config : config.getChildren(INPUT)) {
            InputModel input = (InputModel)readModel(input_config);
            if (input != null) {
                _inputs.add(input);
            }
        }
        setModelChildrenOrder(INPUT);
View Full Code Here

Examples of org.switchyard.component.common.knowledge.config.model.InputModel

        Assert.assertEquals("process", operation.getName());
        Assert.assertEquals(BPMOperationType.SIGNAL_EVENT, operation.getType());
        GlobalModel globalModel = operation.getGlobals().getGlobals().get(0);
        Assert.assertEquals("context['foobar']", globalModel.getFrom());
        Assert.assertEquals("globalVar", globalModel.getTo());
        InputModel inputModel = operation.getInputs().getInputs().get(0);
        Assert.assertEquals("message.content.nested", inputModel.getFrom());
        Assert.assertEquals("inputVar", inputModel.getTo());
        OutputModel outputModel = operation.getOutputs().getOutputs().get(0);
        Assert.assertEquals("outputVar", outputModel.getFrom());
        Assert.assertEquals("message.content", outputModel.getTo());
        FaultModel faultModel = operation.getFaults().getFaults().get(0);
        Assert.assertEquals("faultVar", faultModel.getFrom());
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.