Package net.fp.rp.spring

Examples of net.fp.rp.spring.SpringStarter


  }
 
  public void testTransition1() throws Throwable{
   
     //Start the Workflow
        SpringStarter myBean  = (SpringStarter) context.getBean(TEST_BEAN);
       
        //Depends on it being configure in the App-Context to be an instance of this class
        ParameterWorkflowStrategy pStrat = (ParameterWorkflowStrategy) myBean.getStarterStrategy();
        pStrat.param1="test";
        pStrat.param2="TestInput1";
               
        myBean.startWorkflow();
       
        //Now Carry out some assertions
        List<ExecutionContext> execList = TestActionHandler.getPreviousExecutions();
        assertEquals(1,execList.size());
       log.debug("NodeName:"+execList.get(0).getNode().getName());
View Full Code Here


  }
 
  public void testTransition2() throws Throwable{
   
     //Start the Workflow
        SpringStarter myBean  = (SpringStarter) context.getBean(TEST_BEAN);
       
        //Depends on it being configure in the App-Context to be an instance of this class
        ParameterWorkflowStrategy pStrat = (ParameterWorkflowStrategy) myBean.getStarterStrategy();
        pStrat.param1="test";
        pStrat.param2="TestInput2";
               
        myBean.startWorkflow();
       
        //Now Carry out some assertions
        List<ExecutionContext> execList = TestActionHandler.getPreviousExecutions();
        assertEquals(2,execList.size());
       log.debug("NodeName:"+execList.get(1).getNode().getName());
View Full Code Here

      // load the manager
      ApplicationContext context = new FileSystemXmlApplicationContext(
          configFile);

      // Todo remove the next bit and make more generic
      SpringStarter myBean = (SpringStarter) context
          .getBean(workflowBean);
      myBean.startWorkflow();
    }

  }
View Full Code Here

TOP

Related Classes of net.fp.rp.spring.SpringStarter

Copyright © 2018 www.massapicom. 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.