Examples of BpelDAOConnection


Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        new InsertObjectTest().createStuff(factory);

        _txm.commit();
        _txm.begin();       

        BpelDAOConnection conn = factory.getConnection();
   
    // Assert the ProcessDAO
    ProcessDAO p = conn.getProcess(new QName(TEST_NS,"testPID1"));
    assertNotNull( p );
    Collection<ProcessInstanceDAO> insts = p.findInstance(key1);
    assertNotNull( insts );
    assertTrue( insts.size() > 0 );
    assertNotNull(p.getType());
    assertNotNull(p.getProcessId());
    assertEquals( p.getVersion() , 1 );
    assertTrue( p.getNumInstances() > 0 );
   
    // Assert the CorrelatorDAO
    CorrelatorDAO corr = p.getCorrelator(CORRELATOR_ID1);
    assertNotNull( corr );
    assertEquals(corr.getCorrelatorId(),CORRELATOR_ID1);
   
    // Assert the MessageRouteDAO
    MessageRouteDAO route = corr.findRoute(key1);
    assertNotNull( route );
    assertEquals(route.getGroupId(),"testRoute" );
    assertEquals(route.getIndex() , 1 );
    assertNotNull(route.getTargetInstance() );

    // Assert the ProcessInstanceDAO
    for ( ProcessInstanceDAO inst : insts ) {
      Long id = inst.getInstanceId();
      assertNotNull( id );
     
      ProcessInstanceDAO inst2 = conn.getInstance(id);
      assertSame(inst2,inst);
     
      ProcessInstanceDAO inst3 = p.getInstance(id);
      assertSame( inst3 , inst );
     
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        new InsertObjectTest().createStuff(factory);

        _txm.commit();
        _txm.begin();       

        BpelDAOConnection conn = factory.getConnection();
   
    // Assert the ProcessDAO
    ProcessDAO p = conn.getProcess(new QName(TEST_NS,"testPID1"));
    assertNotNull( p );
    Collection<ProcessInstanceDAO> insts = p.findInstance(key1);
    assertNotNull( insts );
    assertTrue( insts.size() > 0 );
    assertNotNull(p.getType());
    assertNotNull(p.getProcessId());
    assertEquals( p.getVersion() , 1 );
   
    // Assert the CorrelatorDAO
    CorrelatorDAO corr = p.getCorrelator(CORRELATOR_ID1);
    assertNotNull( corr );
    assertEquals(corr.getCorrelatorId(),CORRELATOR_ID1);
   
    // Assert the MessageRouteDAO
    MessageRouteDAO route = corr.findRoute(key1);
    assertNotNull( route );
    assertEquals(route.getGroupId(),"testRoute" );
    assertEquals(route.getIndex() , 1 );
    assertNotNull(route.getTargetInstance() );

    // Assert the ProcessInstanceDAO
    for ( ProcessInstanceDAO inst : insts ) {
      Long id = inst.getInstanceId();
      assertNotNull( id );
     
      ProcessInstanceDAO inst2 = conn.getInstance(id);
      assertSame(inst2,inst);
     
      ProcessInstanceDAO inst3 = p.getInstance(id);
      assertSame( inst3 , inst );
     
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

  public void testStart() throws Exception {
        createStuff(factory);
    }

    void createStuff(BPELDAOConnectionFactoryImpl factory) throws Exception {
        BpelDAOConnection conn = factory.getConnection();

        CorrelatorDAO corr = createProcess(conn,"testPID1","testType");
    ProcessInstanceDAO pi1 = createProcessInstance(_process, corr);
    }
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        new InsertObjectTest().createStuff(factory);

        _txm.commit();
        _txm.begin();       

        BpelDAOConnection conn = factory.getConnection();
   
    // Assert the ProcessDAO
    ProcessDAO p = conn.getProcess(new QName(TEST_NS,"testPID1"));
    assertNotNull( p );
    Collection<ProcessInstanceDAO> insts = p.findInstance(key1);
    assertNotNull( insts );
    assertTrue( insts.size() > 0 );
    assertNotNull(p.getType());
    assertNotNull(p.getProcessId());
    assertEquals( p.getVersion() , 1 );
   
    // Assert the CorrelatorDAO
    CorrelatorDAO corr = p.getCorrelator(CORRELATOR_ID1);
    assertNotNull( corr );
    assertEquals(corr.getCorrelatorId(),CORRELATOR_ID1);
   
    // Assert the MessageRouteDAO
    MessageRouteDAO route = corr.findRoute(key1);
    assertNotNull( route );
    assertEquals(route.getGroupId(),"testRoute" );
    assertEquals(route.getIndex() , 1 );
    assertNotNull(route.getTargetInstance() );

    // Assert the ProcessInstanceDAO
    for ( ProcessInstanceDAO inst : insts ) {
      Long id = inst.getInstanceId();
      assertNotNull( id );
     
      ProcessInstanceDAO inst2 = conn.getInstance(id);
      assertSame(inst2,inst);
     
      ProcessInstanceDAO inst3 = p.getInstance(id);
      assertSame( inst3 , inst );
     
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        final InstanceFilter instanceFilter = new InstanceFilter(filter, "", limit);
        try {
            if (_contexts.scheduler != null) {
                return _contexts.scheduler.execTransaction(new Callable<Integer>() {
                    public Integer call() throws Exception {
                        BpelDAOConnection con = _contexts.dao.getConnection();
                        if (con instanceof FilteredInstanceDeletable) {
                            return ((FilteredInstanceDeletable) con).deleteInstances(instanceFilter, categories);
                        }
                        return 0;
                    }
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        new InsertObjectTest().createStuff(factory);

        _txm.commit();
        _txm.begin();       

        BpelDAOConnection conn = factory.getConnection();
   
    // Assert the ProcessDAO
    ProcessDAO p = conn.getProcess(new QName(TEST_NS,"testPID1"));
    assertNotNull( p );
    Collection<ProcessInstanceDAO> insts = p.findInstance(key1);
    assertNotNull( insts );
    assertTrue( insts.size() > 0 );
    assertNotNull(p.getType());
    assertNotNull(p.getProcessId());
    assertEquals( p.getVersion() , 1 );
   
    // Assert the CorrelatorDAO
    CorrelatorDAO corr = p.getCorrelator(CORRELATOR_ID1);
    assertNotNull( corr );
    assertEquals(corr.getCorrelatorId(),CORRELATOR_ID1);
   
    // Assert the MessageRouteDAO
    MessageRouteDAO route = corr.findRoute(key1);
    assertNotNull( route );
    assertEquals(route.getGroupId(),"testRoute" );
    assertEquals(route.getIndex() , 1 );
    assertNotNull(route.getTargetInstance() );

    // Assert the ProcessInstanceDAO
    for ( ProcessInstanceDAO inst : insts ) {
      Long id = inst.getInstanceId();
      assertNotNull( id );
     
      ProcessInstanceDAO inst2 = conn.getInstance(id);
      assertSame(inst2,inst);
     
      ProcessInstanceDAO inst3 = p.getInstance(id);
      assertSame( inst3 , inst );
     
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

  public void testStart() throws Exception {
        createStuff(factory);
    }

    void createStuff(BPELDAOConnectionFactoryImpl factory) throws Exception {
        BpelDAOConnection conn = factory.getConnection();

        CorrelatorDAO corr = createProcess(conn,"testPID1","testType");
    ProcessInstanceDAO pi1 = createProcessInstance(_process, corr);
    }
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        new InsertObjectTest().createStuff(factory);

        _txm.commit();
        _txm.begin();

        BpelDAOConnection conn = factory.getConnection();

        // Assert the ProcessDAO
        ProcessDAO p = conn.getProcess(new QName(TEST_NS,"testPID1"));
        assertNotNull( p );
        Collection<ProcessInstanceDAO> insts = p.findInstance(key1);
        assertNotNull( insts );
        assertTrue( insts.size() > 0 );
        assertNotNull(p.getType());
        assertNotNull(p.getProcessId());
        assertEquals( p.getVersion() , 1 );

        // Assert the CorrelatorDAO
        CorrelatorDAO corr = p.getCorrelator(CORRELATOR_ID1);
        assertNotNull( corr );
        assertEquals(corr.getCorrelatorId(),CORRELATOR_ID1);

        // Assert the MessageRouteDAO
        List<MessageRouteDAO> routes = corr.findRoute(new CorrelationKeySet().add(key1));
        MessageRouteDAO route = null;
        if (routes != null && routes.size() > 0) {
            route = routes.get(0);
        }
        assertNotNull( route );
        assertEquals(route.getGroupId(),"testRoute" );
        assertEquals(route.getIndex() , 1 );
        assertNotNull(route.getTargetInstance() );

        // Assert the ProcessInstanceDAO
        for ( ProcessInstanceDAO inst : insts ) {
            Long id = inst.getInstanceId();
            assertNotNull( id );

            ProcessInstanceDAO inst2 = conn.getInstance(id);
            assertSame(inst2,inst);

            ProcessInstanceDAO inst3 = p.getInstance(id);
            assertSame( inst3 , inst );
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

    public void testStart() throws Exception {
        createStuff(factory);
    }

    void createStuff(BPELDAOConnectionFactoryImpl factory) throws Exception {
        BpelDAOConnection conn = factory.getConnection();

        CorrelatorDAO corr = createProcess(conn,"testPID1","testType");
        ProcessInstanceDAO pi1 = createProcessInstance(_process, corr);
    }
View Full Code Here

Examples of org.apache.ode.bpel.dao.BpelDAOConnection

        final InstanceFilter instanceFilter = new InstanceFilter(filter, "", limit);
        try {
            if( _contexts.scheduler != null ) {
                return _contexts.scheduler.execTransaction(new Callable<Integer>() {
                    public Integer call() throws Exception {
                        BpelDAOConnection con = _contexts.dao.getConnection();
                        if( con instanceof FilteredInstanceDeletable ) {
                            return ((FilteredInstanceDeletable)con).deleteInstances(instanceFilter, categories);
                        }
                        return 0;
                    }
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.