Package org.drools.process.command

Examples of org.drools.process.command.SignalEventCommand


        return workItemManager;
    }

    public void signalEvent(String type,
                            Object event) {
        SignalEventCommand command = new SignalEventCommand();
        command.setEventType( type );
        command.setEvent( event );
        commandService.execute( command );
    }
View Full Code Here


    }
    return workItemManager;
  }

  public void signalEvent(String type, Object event) {
    SignalEventCommand command = new SignalEventCommand();
    command.setEventType(type);
    command.setEvent(event);
    commandService.execute(command);
  }
View Full Code Here

        }

        public void marshal(Object object,
                            HierarchicalStreamWriter writer,
                            MarshallingContext context) {
            SignalEventCommand cmd = (SignalEventCommand) object;
            long processInstanceId = cmd.getProcessInstanceId();
            String eventType = cmd.getEventType();
            Object event = cmd.getEvent();

            if ( processInstanceId != -1 ) {
                writer.addAttribute( "process-instance-id",
                                     Long.toString( processInstanceId ) );
            }
View Full Code Here

        return workItemManager;
    }

    public void signalEvent(String type,
                            Object event) {
        SignalEventCommand command = new SignalEventCommand(type, event);
        commandService.execute( command );
    }
View Full Code Here

    return startProcess;
  }

    public Command newSignalEvent(String type,
                               Object event) {
        return new SignalEventCommand( type, event );
    }
View Full Code Here

    }
   
    public Command newSignalEvent(long processInstanceId,
                               String type,
                               Object event) {
        return new SignalEventCommand( processInstanceId, type, event );
    }   
View Full Code Here

    }

    public void signalEvent(long processInstanceId,
                            String type,
                            Object event) {
      SignalEventCommand command = new SignalEventCommand();
      command.setProcessInstanceId(processInstanceId);
      command.setEventType(type);
      command.setEvent(event);
      commandService.execute(command);
    }
View Full Code Here

TOP

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

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.