Examples of Jbpm


Examples of org.jboss.seam.bpm.Jbpm

  
   @Test
   public void testGetProcessDefinitionFromXml()
   {

      Jbpm jbpm = new Jbpm();
      ProcessDefinition pd = jbpm.getProcessDefinitionFromXml(PROCESS_DEFINITION);
      assert "start".equals(pd.getStartState().getName());
      assert "test".equals(pd.getName());     
     
   }
View Full Code Here

Examples of org.jboss.seam.bpm.Jbpm

  
   @Test
   public void testGetPageflowDefinitionFromXml()
   {

      Jbpm jbpm = new Jbpm();
      ProcessDefinition pd = jbpm.getPageflowDefinitionFromXml(PAGE_FLOW_DEFINITION);
      assert "start".equals(pd.getStartState().getName());
      assert "newuser".equals(pd.getName());
     
   }
View Full Code Here

Examples of org.mule.module.jbpm.Jbpm

*/
public class JbpmUnitTestCase extends AbstractMuleTestCase
{
    public void testDeployAndRun() throws Exception
    {
        Jbpm jbpm = new Jbpm();
        jbpm.initialise();

        // Deploy the process
        jbpm.deployProcess("simple-process.jpdl.xml");

        // Start the process
        Object process = jbpm.startProcess("simple", null, null);
        assertNotNull(process);
        Object processId = jbpm.getId(process);
       
        // The process should be started and in a wait state.
        process = jbpm.lookupProcess(processId);
        assertNotNull(process);            
        assertEquals("dummyState", jbpm.getState(process));

        // Advance the process one step.
        process = jbpm.advanceProcess(processId);

        // The process should have ended.
        assertNotNull(process);            
        assertTrue(jbpm.hasEnded(process));

        jbpm.dispose();
    }
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.