Package org.drools.process.command

Examples of org.drools.process.command.ClearAgendaCommand


    public Agenda getAgenda() {
        if ( agenda == null ) {
            agenda = new Agenda() {
        public void clear() {
                    ClearAgendaCommand command = new ClearAgendaCommand();
                    commandService.execute( command );
        }

        public ActivationGroup getActivationGroup(final String name) {
          return new ActivationGroup() {
            public void clear() {
              ClearActivationGroupCommand command = new ClearActivationGroupCommand();
              command.setName(name);
                commandService.execute( command );
            }
            public String getName() {
              return name;
            }
          };
        }

        public AgendaGroup getAgendaGroup(final String name) {
          return new AgendaGroup() {
            public void clear() {
              ClearAgendaGroupCommand command = new ClearAgendaGroupCommand();
              command.setName(name);
                commandService.execute( command );
            }
            public String getName() {
              return name;
            }
            public void setFocus() {
              AgendaGroupSetFocusCommand command = new AgendaGroupSetFocusCommand();
              command.setName(name);
                commandService.execute( command );
            }
          };
        }

        public RuleFlowGroup getRuleFlowGroup(final String name) {
          return new RuleFlowGroup() {
            public void clear() {
              ClearRuleFlowGroupCommand command = new ClearRuleFlowGroupCommand();
              command.setName(name);
                commandService.execute( command );
            }
            public String getName() {
              return name;
            }
View Full Code Here

TOP

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

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.