Examples of BusinessProcessID


Examples of org.apache.agila.model.BusinessProcessID

        // TODO add test case
    }

    public void testInstanceCount() {
        for( int i = 0; i < 10; i++ ) {
            instanceService.internalCreate( new BusinessProcessID( i ), new HashMap() );
        }

        InstanceServiceInfo instanceSvcInfo = instanceService.getInstanceServiceInfo();

        assertEquals( "Number of instances created and are running should be 10", 10, instanceSvcInfo.getNumRunningInstances() );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

        BufferedReader reader = new BufferedReader( new InputStreamReader(
            getClass().getClassLoader().getResourceAsStream(
                "org/apache/agila/LeaveApplication.xml" ) ) );
        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(
            businessProcess );
        assertNotNull( "BusinessProcessID should not be null",
            businessProcessID );
    }
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

        BufferedReader reader = new BufferedReader( new InputStreamReader(
            getClass().getClassLoader().getResourceAsStream(
                "org/apache/agila/LeaveApplication.xml" ) ) );
        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(
            businessProcess );

        assertEquals( businessProcessID, dao.getGraphIDByName(
            businessProcess.getName() ) );
    }
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

        BufferedReader reader = new BufferedReader( new InputStreamReader(
            getClass().getClassLoader().getResourceAsStream(
                "org/apache/agila/LeaveApplication.xml" ) ) );
        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(
            businessProcess );

        BusinessProcess bpFromQuery = dao.getGraphByID( businessProcessID );

        assertEquals( businessProcessID, bpFromQuery.getBusinessProcessID() );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

            BufferedReader reader = new BufferedReader( new InputStreamReader(
                getClass().getClassLoader().getResourceAsStream(
                "org/apache/agila/LeaveApplication.xml" ) ) );
            BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

            BusinessProcessID businessProcessID = dao.addGraph(
                businessProcess );
        }

        List graphs = dao.getAllProcessGraphs();
        assertTrue( graphs.size() >= 10 );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

        BufferedReader reader = new BufferedReader( new InputStreamReader(
            getClass().getClassLoader().getResourceAsStream(
            "org/apache/agila/LeaveApplication.xml" ) ) );
        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(
            businessProcess );

        Map appParams = new HashMap();
        appParams.put( "numdays", "40" );
        appParams.put( "reason", "Expedition to Mount Everest" );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

        BufferedReader reader = new BufferedReader( new InputStreamReader(
            getClass().getClassLoader().getResourceAsStream(
            "org/apache/agila/LeaveApplication.xml" ) ) );
        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(
            businessProcess );

        Map appParams = new HashMap();
        appParams.put( "numdays", "40" );
        appParams.put( "reason", "Expedition to Mount Everest" );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

            getClass().getClassLoader().getResourceAsStream(
            "org/apache/agila/LeaveApplication.xml" ) ) );

        BusinessProcess businessProcess = XMLUtil.deserializeXML( reader );

        BusinessProcessID businessProcessID = dao.addGraph(businessProcess );

        Instance inst1 = dao.newInstance(businessProcessID, new HashMap());
        Instance inst2 = dao.newInstance(businessProcessID, new HashMap());

        assertEquals(Instance.STATUS_RUNNING, inst1.getStatus());
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

    /**
     * Test the BusinessProcessImpl constructor. XML graph should not be null.
     */
    public void testGraphNotNull() {
        BusinessProcessImpl businessProcess = new BusinessProcessImpl();
        businessProcess.setBusinessProcessID( new BusinessProcessID( 1 ) );
        businessProcess.setName( "process" );
        businessProcess.setRoot( new StartNode() );
        businessProcess.setGraphAsXML( "<process-model name='sample Process'/>" );

        BusinessProcess bizProc = new BusinessProcessImpl( businessProcess );
View Full Code Here

Examples of org.apache.agila.model.BusinessProcessID

    public void testNewInstance() {
        // get a business process id
        BusinessProcessImpl bProcess = new BusinessProcessImpl();
        String graphName = "Graph" + count++;
        bProcess.setName(graphName);
        BusinessProcessID bpId = bpService.addGraph(bProcess);

        // then create a map of parameters
        Map params = new HashMap();
        params.put("foo", "foo value");
        params.put("bar", "bar value");
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.