Examples of Flow


Examples of org.apache.uima.flow.Flow

      // now get the right interface(e.g. CAS or JCAS)
      Class<? extends AbstractCas> requiredInterface = mFlowController.getRequiredCasInterface();
      AbstractCas casToPass = getCasManager().getCasInterface(view, requiredInterface);   
      ((CASImpl)view).switchClassLoaderLockCasCL(this.getResourceManager().getExtensionClassLoader());
      Flow flow = mFlowController.computeFlow(casToPass);
      if (flow instanceof CasFlow_ImplBase) {
        ((CasFlow_ImplBase)flow).setCas(view);
      }
      if (flow instanceof JCasFlow_ImplBase) {
        ((JCasFlow_ImplBase)flow).setJCas(view.getJCas());
View Full Code Here

Examples of org.eclipse.bpel.model.Flow

        if (result == null) result = caseWSDLElement(pick);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.FLOW: {
        Flow flow = (Flow)theEObject;
        Object result = caseFlow(flow);
        if (result == null) result = caseActivity(flow);
        if (result == null) result = caseExtensibleElement(flow);
        if (result == null) result = caseExtensibleElement_1(flow);
        if (result == null) result = caseWSDLElement(flow);
View Full Code Here

Examples of org.foray.fotree.fo.obj.Flow

     */
    public void testFontFamily001() throws FOrayException {
        final FoDocumentReader reader = FoDocumentReader.getInstance();
        final FOTreeBuilder foTree = reader.buildFoTree(
                "fo/font-family-001.fo");
        final Flow flow = this.getFlow(foTree);

        FObj node = flow.getChildAt(0);
        assertTrue(node instanceof Block);
        Block block = (Block) node;
        String[] fontFamilies = block.traitFontFamily(null);
        assertEquals(1, fontFamilies.length);
        /* The default font-family is "serif". */
        assertEquals("serif", fontFamilies[0]);

        node = flow.getChildAt(1);
        assertTrue(node instanceof Block);
        block = (Block) node;
        fontFamilies = block.traitFontFamily(null);
        assertEquals(1, fontFamilies.length);
        assertEquals("Base14-Courier", fontFamilies[0]);
View Full Code Here

Examples of org.fusesource.ide.camel.model.Flow

   * @see org.eclipse.zest.core.viewers.IGraphContentProvider#getSource(java.lang.Object)
   */
  @Override
  public Object getSource(Object rel) {
    if (rel instanceof Flow) {
      Flow flow = (Flow) rel;
      return flow.getSource();
    }
    return null;
  }
View Full Code Here

Examples of org.jberet.job.Flow

                    if (step.getId().equals(restartPoint)) {
                        runStep(step);
                        break;
                    }
                } else if (e instanceof Flow) {
                    Flow flow = (Flow) e;
                    if (flow.getId().equals(restartPoint)) {
                        runFlow(flow, null);
                        break;
                    }
                } else if (e instanceof Split) {
                    Split split = (Split) e;
                    if (split.getId().equals(restartPoint)) {
                        runSplit(split);
                        break;
                    }
                } else if (e instanceof Decision) {
                    Decision decision = (Decision) e;
                    if (decision.getId().equals(restartPoint)) {
                        runDecision(decision);
                    }
                    break;
                }
            }
        } else {
            // the head of the composite job element is the first non-abstract element (step, flow, or split)
            for (Object e : getJobElements()) {
                if (e instanceof Step) {
                    Step step = (Step) e;
//                if (Boolean.parseBoolean(step.getAbstract())) {
//                    continue;
//                }
                    runStep(step);
                    break;
                } else if (e instanceof Flow) {
                    Flow flow = (Flow) e;
                    //A flow cannot be abstract or have parent, so run the flow
                    runFlow(flow, null);
                    break;
                } else if (e instanceof Split) {
                    Split split = (Split) e;
View Full Code Here

Examples of org.jberet.job.model.Flow

                    if (step.getId().equals(restartPoint)) {
                        runStep(step);
                        break;
                    }
                } else if (e instanceof Flow) {
                    final Flow flow = (Flow) e;
                    if (flow.getId().equals(restartPoint)) {
                        runFlow(flow, null);
                        break;
                    }
                } else if (e instanceof Split) {
                    final Split split = (Split) e;
                    if (split.getId().equals(restartPoint)) {
                        runSplit(split);
                        break;
                    }
                } else if (e instanceof Decision) {
                    final Decision decision = (Decision) e;
                    if (decision.getId().equals(restartPoint)) {
                        runDecision(decision);
                    }
                    break;
                }
            }
        } else {
            // the head of the composite job element is the first non-abstract element (step, flow, or split)
            for (final JobElement e : getJobElements()) {
                if (e instanceof Step) {
                    final Step step = (Step) e;
//                if (Boolean.parseBoolean(step.getAbstract())) {
//                    continue;
//                }
                    runStep(step);
                    break;
                } else if (e instanceof Flow) {
                    final Flow flow = (Flow) e;
                    //A flow cannot be abstract or have parent, so run the flow
                    runFlow(flow, null);
                    break;
                } else if (e instanceof Split) {
                    final Split split = (Split) e;
View Full Code Here

Examples of org.jitterbit.ui.layout.Flow

            }
            return null;
        }

        public void layoutIn(WizardPageLayout layout) {
            Flow fieldLayout = Flow.invisible();
            fieldLayout.add(field.getLabel(), field.getInputComponent());
            OneColumnPanel col = new OneColumnPanel();
            col.setInsets(0, 0, 5, 0);
            col.setWeightX(1.0);
            col.add(caption).add(fieldLayout);
            layout.add(col, false, false);
View Full Code Here

Examples of org.mule.construct.Flow

public class MethodInvokerDefinitionParserTestCase extends FunctionalTestCase
{

    public void testPojoFlow() throws Exception
    {
        Flow flow = muleContext.getRegistry().lookupObject("pojoFlow");
        Flow flow2 = muleContext.getRegistry().lookupObject("pojoFlow2");

        assertEquals("start nullmethod2Arg1Arg2config2Val arg2Valmethod2Arg1Arg2config2Val ", flow.process(
            getTestEvent("start ")).getMessageAsString());

        assertEquals("start nullmethod2Arg1Arg2null arg2Valmethod2Arg1Arg2null ", flow2.process(
            getTestEvent("start ")).getMessageAsString());

    }
View Full Code Here

Examples of org.ocpsoft.rewrite.event.Flow

   @Test
   public void testSubflowRestoresOriginalFlowStateAfterExceptionWithInitializedFlow()
   {
      rewrite.setFlow(ServletRewriteFlow.REDIRECT_PERMANENT);

      Flow result = null;
      try {
         result = SubflowTask.perform(rewrite, new MockEvaluationContext(), ServletRewriteFlow.INCLUDE,
                  new SubflowTask() {

                     @Override
View Full Code Here

Examples of org.ocpsoft.rewrite.event.Flow

    * @return the resultant {@link ServletRewriteFlow} from the {@link SubflowTask} execution.
    */
   public static Flow perform(ServletRewrite<?, ?> event, EvaluationContext context, Flow subflow,
            SubflowTask subflowTask)
   {
      Flow flow = event.getFlow();
      try
      {
         event.setFlow(subflow);
         subflowTask.performInSubflow(event, context);
         return event.getFlow();
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.