Search in sources :

Example 16 with FlowConstruct

use of org.mule.runtime.core.api.construct.FlowConstruct in project mule by mulesoft.

the class FunctionalTestCase method stopFlowConstruct.

protected void stopFlowConstruct(String flowName) throws Exception {
    FlowConstruct flowConstruct = getFlowConstruct(flowName);
    Flow flow = (Flow) flowConstruct;
    flow.stop();
}
Also used : FlowConstruct(org.mule.runtime.core.api.construct.FlowConstruct) Flow(org.mule.runtime.core.api.construct.Flow)

Example 17 with FlowConstruct

use of org.mule.runtime.core.api.construct.FlowConstruct in project mule by mulesoft.

the class FlowConstructRunner method doBuildEvent.

private void doBuildEvent() {
    FlowConstruct flow = getFlowConstruct();
    requestEvent = eventBuilder.build(flow);
}
Also used : FlowConstruct(org.mule.runtime.core.api.construct.FlowConstruct)

Aggregations

FlowConstruct (org.mule.runtime.core.api.construct.FlowConstruct)17 Test (org.junit.Test)9 SmallTest (org.mule.tck.size.SmallTest)6 Component (org.mule.runtime.api.component.Component)4 InitialisationException (org.mule.runtime.api.lifecycle.InitialisationException)3 CoreEvent (org.mule.runtime.core.api.event.CoreEvent)3 Description (io.qameta.allure.Description)2 Matchers.containsString (org.hamcrest.Matchers.containsString)2 ComponentLocation (org.mule.runtime.api.component.location.ComponentLocation)2 DefaultMuleException (org.mule.runtime.api.exception.DefaultMuleException)2 MuleException (org.mule.runtime.api.exception.MuleException)2 ComponentUtils.getFromAnnotatedObject (org.mule.runtime.core.internal.component.ComponentUtils.getFromAnnotatedObject)2 DefaultExpressionManager (org.mule.runtime.core.internal.el.DefaultExpressionManager)2 MVELExpressionLanguage (org.mule.runtime.core.internal.el.mvel.MVELExpressionLanguage)2 MessagingException (org.mule.runtime.core.internal.exception.MessagingException)2 WeaveDefaultExpressionLanguageFactoryService (org.mule.weave.v2.el.WeaveDefaultExpressionLanguageFactoryService)2 Collection (java.util.Collection)1 Map (java.util.Map)1 Optional (java.util.Optional)1 CompletableFuture (java.util.concurrent.CompletableFuture)1