Package org.drools.process.command

Examples of org.drools.process.command.GetObjectsCommand


        return this.commandService.execute( new GetFactHandlesCommand( filter ) );
    }

    public Collection< ? > getObjects() {
        Collection<Object> result = new ArrayList<Object>();
        Iterator< ? > iterator = commandService.execute( new GetObjectsCommand() );
        if ( iterator != null ) {
            while ( iterator.hasNext() ) {
                result.add( iterator.next() );
            }
        }
View Full Code Here


        return result;
    }

    public Collection< ? > getObjects(ObjectFilter filter) {
        Collection<Object> result = new ArrayList<Object>();
        Iterator< ? > iterator = commandService.execute( new GetObjectsCommand( filter ) );
        if ( iterator != null ) {
            while ( iterator.hasNext() ) {
                result.add( iterator.next() );
            }
        }
View Full Code Here

    throw new UnsupportedOperationException();
  }

  public Collection<?> getObjects() {
    Collection<Object> result = new ArrayList<Object>();
    Iterator<?> iterator = commandService.execute(new GetObjectsCommand());
    if (iterator != null) {
      while (iterator.hasNext()) {
        result.add(iterator.next());
      }
    }
View Full Code Here

        }

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

            if ( cmd.getOutIdentifier() != null ) {
                writer.addAttribute( "out-identifier",
                                     cmd.getOutIdentifier() );
            }
        }
View Full Code Here

        public Object unmarshal(HierarchicalStreamReader reader,
                                UnmarshallingContext context) {
            String identifierOut = reader.getAttribute( "out-identifier" );

            GetObjectsCommand cmd = new GetObjectsCommand();
            if ( identifierOut != null ) {
                cmd.setOutIdentifier( identifierOut );
            }
            return cmd;
        }
View Full Code Here

    public Collection< Object > getObjects() {
        return getObjects( null );
    }

    public Collection< Object > getObjects(ObjectFilter filter) {
        Collection result = commandService.execute( new GetObjectsCommand( filter ) );
        return result;
    }
View Full Code Here

  public Command newGetObjects() {
    return newGetObjects(null);
  }

  public Command newGetObjects(ObjectFilter filter) {
    return new GetObjectsCommand(filter);
  }
View Full Code Here

TOP

Related Classes of org.drools.process.command.GetObjectsCommand

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.