Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010 JBoss Inc
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.drools.command;
 
 import java.util.List;
 import java.util.Map;
 
 
 public interface CommandFactoryService {
     Command newInsert(Object object);
 
     Command newInsert(Object object,
                       String outIdentifier,
                       boolean returnObject,
                       String entryPoint);
 
     Command newInsertElements(Collection objects);
     
     Command newInsertElements(Collection objectsString outIdentifierboolean returnObjectString entryPoint);
 
     Command newRetract(FactHandle factHandle);
 
     Setter newSetter(String accessor,
                      String value);
 
     Command newModify(FactHandle factHandle,
                       List<Settersetters);
 
 
     Command newFireAllRules(int max);
 
     Command newFireAllRules(String outidentifier);
 
     Command newGetObject(FactHandle factHandle);
 
     Command newGetObject(FactHandle factHandleString outIdentifier);
 
     Command newGetObjects();
 
     Command newGetObjects(String outIdentifier);
 
     Command newGetObjects(ObjectFilter filter);
 
     Command newGetObjects(ObjectFilter filterString outIdentifier);
 
     Command newSetGlobal(String identifie,
                          Object object);
 
     Command newSetGlobal(String identifier,
                          Object object,
                          boolean out);
 
     Command newSetGlobal(String identifier,
                          Object object,
                          String outIdentifier);
 
     Command newGetGlobal(String identifier);
 
     Command newGetGlobal(String identifier,
                          String outIdentifier);
 
     Command newStartProcess(String processId);
 
     Command newStartProcess(String processId,
                             Map<StringObjectparameters);
 
     Command newSignalEvent(String type,
                            Object event);
 
     Command newSignalEvent(long processInstanceId,
                            String type,
                            Object event);
 
     Command newQuery(String identifier,
                      String name);
 
     Command newQuery(String identifier,
                      String name,
                      Object[] arguments);
 
    BatchExecutionCommand newBatchExecution(List< ? extends CommandcommandsString lookup);
    
    Command newAbortWorkItem(long workItemId);
    Command newCompleteWorkItem(long workItemId,
                                Map<StringObjectresults);
    
    @Deprecated
    public Command newKBuilderSetPropertyCommand(String idString nameString value);
    
    public Command newKnowledgeBuilderSetPropertyCommand(String idString nameString value);
    Command<FactHandlefromExternalFactHandleCommand(String factHandleExternalForm);
    Command<FactHandlefromExternalFactHandleCommand(String factHandleExternalFormboolean disconnected);
New to GrepCode? Check out our FAQ X