Package org.drools.command.runtime.rule

Examples of org.drools.command.runtime.rule.RetractCommand


        addCommand(new UpdateCommand(handle, object));
        return this;
    }
   
    public StatefulKnowledgeSessionSimFluent retract(FactHandle handle) {
        addCommand(new RetractCommand(handle));
        return this;
    }
View Full Code Here


        addCommand(lastAddedCommand);
        return this;
    }

    public FluentBatchExecution retract(FactHandle handle) {
        lastAddedCommand = new RetractCommand(handle);
        addCommand(lastAddedCommand);
        return this;
    }
View Full Code Here

    public FactHandle insert(Object object) {
        return commandService.execute( new InsertObjectCommand( object ) );
    }

    public void retract(FactHandle handle) {
        commandService.execute( new RetractCommand( handle ) );
    }
View Full Code Here

    public FactHandle insert(Object object) {
        return commandService.execute( new InsertObjectCommand( object ) );
    }

    public void retract(FactHandle handle) {
        commandService.execute( new RetractCommand( handle ) );
    }
View Full Code Here

        }

        public void marshal(Object object,
                            HierarchicalStreamWriter writer,
                            MarshallingContext context) {
            RetractCommand cmd = (RetractCommand) object;

            writer.addAttribute( "factHandle",
                                 cmd.getFactHandle().toExternalForm() );
        }
View Full Code Here

    cmd.setOutIdentifier(outIdentifier);
    return cmd;
  }
 
    public Command newRetract(FactHandle factHandle) {
        return new RetractCommand( factHandle );
    }
View Full Code Here

  }

  public void marshal(Object object,
                      HierarchicalStreamWriter writer,
                      MarshallingContext context) {
      RetractCommand cmd = (RetractCommand) object;

      writer.addAttribute( "fact-handle",
                           cmd.getFactHandle().toExternalForm() );
  }
View Full Code Here

        }

        public void marshal(Object object,
                            HierarchicalStreamWriter writer,
                            MarshallingContext context) {
            RetractCommand cmd = (RetractCommand) object;
            writer.startNode( "fact-handle" );
            writer.setValue( cmd.getFactHandle().toExternalForm() );
            writer.endNode();
        }
View Full Code Here

    public QueryCommand createQueryCommand() {
        return new QueryCommand();
    }
   
    public RetractCommand createRetractCommand() {
        return new RetractCommand();
    }
View Full Code Here

    public FactHandle insert(Object object) {
        return commandService.execute( new InsertObjectCommand( object ) );
    }

    public void retract(FactHandle handle) {
        commandService.execute( new RetractCommand( handle ) );
    }
View Full Code Here

TOP

Related Classes of org.drools.command.runtime.rule.RetractCommand

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.