Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.drools.impl.adapters;
  
 import  org.kie.internal.runtime.KnowledgeRuntime;
 import  org.kie.internal.runtime.StatefulKnowledgeSession;
 
 import java.util.List;
 import java.util.Map;
 
 import static org.drools.impl.adapters.FactHandleAdapter.adaptFactHandles;
 import static org.drools.impl.adapters.ProcessInstanceAdapter.adaptProcessInstances;
 
 
     public final KnowledgeRuntime delegate;
 
     private final Map<WorkingMemoryEventListener, org.kie.api.event.rule.WorkingMemoryEventListener> wimListeners = new HashMap<WorkingMemoryEventListener, org.kie.api.event.rule.WorkingMemoryEventListener>();
     private final Map<ProcessEventListener, org.kie.api.event.process.ProcessEventListener> processListeners = new HashMap<ProcessEventListener, org.kie.api.event.process.ProcessEventListener>();
 
     public KnowledgeRuntimeAdapter(KnowledgeRuntime delegate) {
         this. = delegate;
     }
 
     public <T extends SessionClock> T getSessionClock() {
         throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getSessionClock -> TODO");
     }
 
     public void setGlobal(String identifierObject value) {
         .setGlobal(identifiervalue);
     }
 
     public Object getGlobal(String identifier) {
         return .getGlobal(identifier);
     }
 
     public Globals getGlobals() {
         return new GlobalsAdapter(.getGlobals());
     }
 
     public Calendars getCalendars() {
         return new CalendarsAdapter(.getCalendars());
     }
 
     public Environment getEnvironment() {
         return new EnvironmentAdapter(.getEnvironment());
     }
 
     public KnowledgeBase getKnowledgeBase() {
         return new KnowledgeBaseAdapter((org.kie.internal.KnowledgeBase).getKieBase());
     }
 
     public void registerExitPoint(String nameExitPoint exitPoint) {
         throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.registerExitPoint -> TODO");
     }
 
     public void unregisterExitPoint(String name) {
         throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.unregisterExitPoint -> TODO");
     }
 
     public void registerChannel(String nameChannel channel) {
         throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.unregisterChannel -> TODO");
         // delegate.registerChannel(name, new ChannelAdapter(channel));
     }
 
     @Override
     public void unregisterChannel(String name) {
         .unregisterChannel(name);
     }
 
     @Override
     public Map<StringChannelgetChannels() {
         throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getChannels -> TODO");
     }
 
     @Override
        return new KnowledgeSessionConfigurationAdapter(.getSessionConfiguration());
    }
    public void addEventListener(ProcessEventListener listener) {
        org.kie.api.event.process.ProcessEventListener adapted = new ProcessEventListenerAdapter(listener);
        .put(listeneradapted);
        .addEventListener(adapted);
    }
    public void removeEventListener(ProcessEventListener listener) {
    	.removeEventListener(.remove(listener));
    }
    	return .keySet();
    }
    public ProcessInstance startProcess(String processId) {
        return new ProcessInstanceAdapter(.startProcess(processId));
    }
    public ProcessInstance startProcess(String processIdMap<StringObjectparameters) {
        return new ProcessInstanceAdapter(.startProcess(processIdparameters));
    }
    public ProcessInstance createProcessInstance(String processIdMap<StringObjectparameters) {
        return new ProcessInstanceAdapter(.createProcessInstance(processIdparameters));
    }
    public ProcessInstance startProcessInstance(long processInstanceId) {
        return new ProcessInstanceAdapter(.startProcessInstance(processInstanceId));
    }
    public void signalEvent(String typeObject event) {
        .signalEvent(typeevent);
    }
    public void signalEvent(String typeObject eventlong processInstanceId) {
        .signalEvent(typeeventprocessInstanceId);
    }
        return adaptProcessInstances(.getProcessInstances());
    }
    public ProcessInstance getProcessInstance(long processInstanceId) {
        return new ProcessInstanceAdapter(.getProcessInstance(processInstanceId));
    }
    public ProcessInstance getProcessInstance(long processInstanceIdboolean readonly) {
        return new ProcessInstanceAdapter(.getProcessInstance(processInstanceIdreadonly));
    }
    public void abortProcessInstance(long processInstanceId) {
        .abortProcessInstance(processInstanceId);
    }
    	return new WorkItemManagerAdapter(.getWorkItemManager());
    }
    public void halt() {
        .halt();
    }
    public Agenda getAgenda() {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getAgenda -> TODO");
    }
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getWorkingMemoryEntryPoint -> TODO");
    }
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getWorkingMemoryEntryPoints -> TODO");
    }
    public QueryResults getQueryResults(String queryObject... arguments) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getQueryResults -> TODO");
    }
    public LiveQuery openLiveQuery(String queryObject[] argumentsViewChangedEventListener listener) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.openLiveQuery -> TODO");
    }
    public String getEntryPointId() {
        return .getEntryPointId();
    }
    public FactHandle insert(Object object) {
        return new FactHandleAdapter(.insert(object));
    }
    public void retract(FactHandle handle) {
        .retract(((FactHandleAdapterhandle).getDelegate());
    }
    public void update(FactHandle handleObject object) {
        .update(((FactHandleAdapterhandle).getDelegate(), object);
    }
    public FactHandle getFactHandle(Object object) {
        return new FactHandleAdapter(.getFactHandle(object));
    }
    public Object getObject(FactHandle factHandle) {
        return .getObject(((FactHandleAdapter)factHandle).getDelegate());
    }
    public Collection<ObjectgetObjects() {
        return (Collection<Object>).getObjects();
    }
    public Collection<ObjectgetObjects(final ObjectFilter filter) {
        return (Collection<Object>).getObjects(new org.kie.api.runtime.ObjectFilter() {
            public boolean accept(Object object) {
                return filter.accept(object);
            }
        });
    }
    public <T extends FactHandleCollection<T> getFactHandles() {
        return (Collection<T>)adaptFactHandles(.getFactHandles());
    }
    public <T extends FactHandleCollection<T> getFactHandles(final ObjectFilter filter) {
        return (Collection<T>)adaptFactHandles(.getFactHandles(new org.kie.api.runtime.ObjectFilter() {
            public boolean accept(Object object) {
                return filter.accept(object);
            }
        }));
    }
    public long getFactCount() {
        return .getFactCount();
    }
    public void addEventListener(WorkingMemoryEventListener listener) {
        org.kie.api.event.rule.WorkingMemoryEventListener adapted = new WorkingMemoryEventListenerAdapter(listener);
        .put(listeneradapted);
        .addEventListener(adapted);
    }
    public void removeEventListener(WorkingMemoryEventListener listener) {
        .removeEventListener(.remove(listener));
    }
        return .keySet();
    }
    public void addEventListener(AgendaEventListener listener) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.addEventListener -> TODO");
    }
    public void removeEventListener(AgendaEventListener listener) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.removeEventListener -> TODO");
    }
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getAgendaEventListeners -> TODO");
    }
New to GrepCode? Check out our FAQ X