Package org.kie.api.runtime.process

Examples of org.kie.api.runtime.process.WorkItemManager


        KieSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(props);
       
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(config, EnvironmentFactory.newEnvironment());
        assertNotNull(ksession);
        // this test would fail on creation of the work item manager if injecting session is not supported
        WorkItemManager manager = ksession.getWorkItemManager();
        assertNotNull(manager);
       
        Map<String, WorkItemHandler> handlers = ((SessionConfiguration)config).getWorkItemHandlers();
        assertNotNull(handlers);
        assertEquals(1, handlers.size());
View Full Code Here


    }

    @Override
    public WorkItemManager getWorkItemManager() {
        if( this.workItemManager == null ) {
           this.workItemManager = new WorkItemManager() {
           
            @Override
            public void registerWorkItemHandler( String workItemName, WorkItemHandler handler ) {
                unsupported(WorkItemManager.class, Void.class);
            }
View Full Code Here

TOP

Related Classes of org.kie.api.runtime.process.WorkItemManager

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.