Examples of FlowDefinition


Examples of org.jenkinsci.plugins.workflow.flow.FlowDefinition

            OutputStream logger = new FileOutputStream(getLogFile());
            listener = new StreamBuildListener(logger, Charset.defaultCharset());
            listener.started(getCauses());
            RunListener.fireStarted(this, listener);
            updateSymlinks(listener);
            FlowDefinition definition = getParent().getDefinition();
            if (definition == null) {
                listener.error("No flow definition, cannot run");
                return;
            }
            Owner owner = new Owner(this);
            execution = definition.create(owner, getAllActions());
            FlowExecutionList.get().register(owner);
            execution.addListener(new GraphL());
            completed = new AtomicBoolean();
            logsToCopy = new LinkedHashMap<String,Long>();
            checkouts = new LinkedList<SCMCheckout>();
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

public class SecurityFlowExecutionListenerTests extends TestCase {

  public void testSessionCreatingNoSecurity() {
    SecurityFlowExecutionListener listener = new SecurityFlowExecutionListener();
    RequestContext context = new MockRequestContext();
    FlowDefinition definition = new Flow("flow");
    listener.sessionCreating(context, definition);
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    context = new ClassPathXmlApplicationContext("org/springframework/webflow/config/flow-registry.xml");
    registry = (FlowDefinitionRegistry) context.getBean("flowRegistry");
  }

  public void testRegistryFlowLocationsPopulated() {
    FlowDefinition flow = registry.getFlowDefinition("flow");
    assertEquals("flow", flow.getId());
    assertEquals("bar", flow.getAttributes().get("foo"));
    assertEquals(new Integer(2), flow.getAttributes().get("bar"));
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    assertEquals("bar", flow.getAttributes().get("foo"));
    assertEquals(new Integer(2), flow.getAttributes().get("bar"));
  }

  public void testRegistryFlowLocationPatternsPopulated() {
    FlowDefinition flow1 = registry.getFlowDefinition("flow1");
    assertEquals("flow1", flow1.getId());
    FlowDefinition flow2 = registry.getFlowDefinition("flow2");
    assertEquals("flow2", flow2.getId());
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowDefinition flow2 = registry.getFlowDefinition("flow2");
    assertEquals("flow2", flow2.getId());
  }

  public void testRegistryFlowBuildersPopulated() {
    FlowDefinition foo = registry.getFlowDefinition("foo");
    assertEquals("foo", foo.getId());
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowDefinition foo = registry.getFlowDefinition("foo");
    assertEquals("foo", foo.getId());
  }

  public void testRegistryFlowBuildersPopulatedWithId() {
    FlowDefinition foo = registry.getFlowDefinition("foo2");
    assertEquals("foo2", foo.getId());
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowDefinition foo = registry.getFlowDefinition("foo2");
    assertEquals("foo2", foo.getId());
  }

  public void testRegistryFlowBuildersPopulatedWithAttributes() {
    FlowDefinition foo3 = registry.getFlowDefinition("foo3");
    assertEquals("foo3", foo3.getId());
    assertEquals("bar", foo3.getAttributes().get("foo"));
    assertEquals(new Integer(2), foo3.getAttributes().get("bar"));
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowLocation[] flowLocations = new FlowLocation[] { location1, location2 };
    factoryBean.setFlowBuilderServices(TestFlowBuilderServicesFactory.getServices());
    factoryBean.setFlowLocations(flowLocations);
    factoryBean.afterPropertiesSet();
    FlowDefinitionRegistry registry = (FlowDefinitionRegistry) factoryBean.getObject();
    FlowDefinition def = registry.getFlowDefinition("flow1");
    assertNotNull(def);
    assertEquals("flow1", def.getId());
    assertEquals("bar", def.getAttributes().get("foo"));
    assertEquals(new Integer(2), def.getAttributes().getInteger("bar"));
    def = registry.getFlowDefinition("flow2");
    assertNotNull(def);
    assertEquals("flow2", def.getId());
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowLocation[] flowLocations = new FlowLocation[] { location1 };
    factoryBean.setFlowBuilderServices(TestFlowBuilderServicesFactory.getServices());
    factoryBean.setFlowLocations(flowLocations);
    factoryBean.afterPropertiesSet();
    FlowDefinitionRegistry registry = (FlowDefinitionRegistry) factoryBean.getObject();
    FlowDefinition def = registry.getFlowDefinition("flow");
    assertNotNull(def);
    assertEquals("flow", def.getId());
    assertTrue(def.getAttributes().isEmpty());
  }
View Full Code Here

Examples of org.springframework.webflow.definition.FlowDefinition

    FlowLocation[] flowLocations = new FlowLocation[] { location1 };
    factoryBean.setFlowLocations(flowLocations);
    factoryBean.setFlowBuilderServices(TestFlowBuilderServicesFactory.getServices());
    factoryBean.afterPropertiesSet();
    FlowDefinitionRegistry registry = (FlowDefinitionRegistry) factoryBean.getObject();
    FlowDefinition def = registry.getFlowDefinition("flow");
    assertNotNull(def);
    assertEquals("flow", def.getId());
    assertTrue(def.getAttributes().isEmpty());
  }
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.