241242243244245246247
public FactHandle insert(Object object) { return commandService.execute( new InsertObjectCommand( object ) ); } public void retract(FactHandle handle) { commandService.execute( new RetractCommand( handle ) ); }
281282283284285286287288289290
} public void marshal(Object object, HierarchicalStreamWriter writer, MarshallingContext context) { RetractCommand cmd = (RetractCommand) object; writer.addAttribute( "factHandle", cmd.getFactHandle().toExternalForm() ); }
300301302303304305306
50515253545556
cmd.setOutIdentifier(outIdentifier); return cmd; } public Command newRetract(FactHandle factHandle) { return new RetractCommand( factHandle ); }