Examples of loadStatefulKnowledgeSession()


Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        workItem = handler.getWorkItem();
        assertNotNull( workItem );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        processInstance = service.getProcessInstance( processInstance.getId() );
        assertNotNull( processInstance );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

                                                       env );
        processInstance = service.getProcessInstance( processInstance.getId() );
        assertNotNull( processInstance );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        service.getWorkItemManager().abortWorkItem( workItem.getId() );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        workItem = handler.getWorkItem();
        assertNotNull( workItem );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        processInstance = service.getProcessInstance( processInstance.getId() );
        assertNotNull( processInstance );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

                                                       env );
        processInstance = service.getProcessInstance( processInstance.getId() );
        assertNotNull( processInstance );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        service.getWorkItemManager().completeWorkItem( workItem.getId(),
                                                       null );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

                                                       null );
        workItem = handler.getWorkItem();
        assertNull( workItem );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        processInstance = service.getProcessInstance( processInstance.getId() );
        assertNull( processInstance );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        env.set( EnvironmentName.TRANSACTION_MANAGER,
                 ctx.getBean( "txManager" ) );

        KnowledgeStoreService kstore = (KnowledgeStoreService) ctx.getBean( "kstore1" );
        KnowledgeBase kbase1 = (KnowledgeBase) ctx.getBean( "kbProcessWorkItems" );
        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );

        processInstance = (RuleFlowProcessInstance) service.getProcessInstance( processInstanceId );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        long subProcessInstanceId = subProcessNodeInstance.getProcessInstanceId();
        RuleFlowProcessInstance subProcessInstance = (RuleFlowProcessInstance) service.getProcessInstance( subProcessInstanceId );
        assertNotNull( subProcessInstance );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        service.getWorkItemManager().completeWorkItem( workItem.getId(),
                                                       null );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

                                                       env );
        service.getWorkItemManager().completeWorkItem( workItem.getId(),
                                                       null );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        subProcessInstance = (RuleFlowProcessInstance) service.getProcessInstance( subProcessInstanceId );
        assertNull( subProcessInstance );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        env.set( EnvironmentName.TRANSACTION_MANAGER,
                 ctx.getBean( "txManager" ) );

        KnowledgeStoreService kstore = (KnowledgeStoreService) ctx.getBean( "kstore1" );
        KnowledgeBase kbase1 = (KnowledgeBase) ctx.getBean( "kbProcessWorkItems" );
        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );

        log.info( "---> load session: " + sessionId );
View Full Code Here

Examples of org.drools.persistence.jpa.KnowledgeStoreService.loadStatefulKnowledgeSession()

        log.info( "---> GetProcessInstanceCommand id: " + procId );
        assertNotNull( processInstance );
        log.info( "---> session disposed" );
        service.dispose();

        service = kstore.loadStatefulKnowledgeSession( sessionId,
                                                       kbase1,
                                                       null,
                                                       env );
        log.info( "---> load session: " + sessionId );
        Thread.sleep( 3000 );
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.