Examples of FireAllRulesCommand


Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

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

            FireAllRulesCommand cmd = null;

            if ( max != null ) {
                cmd = new FireAllRulesCommand( Integer.parseInt( max ) );
            } else {
                cmd = new FireAllRulesCommand();
            }

            if ( outIdentifier != null ) {
                cmd.setOutIdentifier( outIdentifier );
            }

            return cmd;
        }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

        }

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

            if ( cmd.getMax() != -1 ) {
                writer.startNode( "max" );
                writer.setValue( Integer.toString( cmd.getMax() ) );
                writer.endNode();
            }
           
            if ( cmd.getOutIdentifier() != null ) {
                writer.startNode( "out-identifier" );
                writer.setValue( cmd.getOutIdentifier() );
                writer.endNode();
            }
        }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

                    throw new IllegalArgumentException( "fire-all-rules does not support the child element name=''" + reader.getNodeName() + "' value=" + reader.getValue() + "'" );
                }
                reader.moveUp();
            }

            FireAllRulesCommand cmd = null;

            if ( max != null ) {
                cmd = new FireAllRulesCommand( Integer.parseInt( max ) );
            } else {
                cmd = new FireAllRulesCommand();
            }
            if ( outIdentifier != null ) {
                cmd.setOutIdentifier(outIdentifier);
            }
            return cmd;
        }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

public class FireAllRulesInterceptor extends AbstractInterceptor {

  public <T> T execute(Command<T> command) {
    T result = executeNext(command);
    if (requiresFireAllRules(command)) {
      executeNext(new FireAllRulesCommand());
    }
    return result;
  }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

    public void destroy() {
        commandService.execute( new DestroySessionCommand(commandService));
    }

    public int fireAllRules() {
        return this.commandService.execute( new FireAllRulesCommand() );
    }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

    public int fireAllRules() {
        return this.commandService.execute( new FireAllRulesCommand() );
    }

    public int fireAllRules(int max) {
        return this.commandService.execute( new FireAllRulesCommand( max ) );
    }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

    public int fireAllRules(int max) {
        return this.commandService.execute( new FireAllRulesCommand( max ) );
    }

    public int fireAllRules(AgendaFilter agendaFilter) {
        return this.commandService.execute( new FireAllRulesCommand( agendaFilter ) );
    }
View Full Code Here

Examples of org.drools.core.command.runtime.rule.FireAllRulesCommand

    public int fireAllRules(AgendaFilter agendaFilter) {
        return this.commandService.execute( new FireAllRulesCommand( agendaFilter ) );
    }

    public int fireAllRules(AgendaFilter agendaFilter, int max) {
        return this.commandService.execute( new FireAllRulesCommand( agendaFilter, max ) );
    }
View Full Code Here

Examples of org.drools.process.command.FireAllRulesCommand

    public void dispose() {
        commandService.dispose();
    }

    public int fireAllRules() {
        return this.commandService.execute( new FireAllRulesCommand() );
    }
View Full Code Here

Examples of org.drools.process.command.FireAllRulesCommand

    public int fireAllRules() {
        return this.commandService.execute( new FireAllRulesCommand() );
    }

    public int fireAllRules(int max) {
        return this.commandService.execute( new FireAllRulesCommand( max ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.