Package org.drools.command.runtime.process

Examples of org.drools.command.runtime.process.SignalEventCommand


        return workItemManager;
    }

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


    }

    public void signalEvent(String type,
                            Object event,
                            long processInstanceId) {
        SignalEventCommand command = new SignalEventCommand( processInstanceId,
                                                             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 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

        addCommand(new StartProcessInstanceCommand(processId));
        return this;
    }

    public StatefulKnowledgeSessionSimFluent signalEvent(String id, Object event, long processId) {
        addCommand(new SignalEventCommand(processId, id, event));
        return this;
    }
View Full Code Here

        addCommand(new SignalEventCommand(processId, id, event));
        return this;
    }

    public StatefulKnowledgeSessionSimFluent signalEvent(String id, Object event) {
        addCommand(new SignalEventCommand(id, event));
        return this;
    }
View Full Code Here

/**
* Class for transforming a SignalEvent command.
*/
class SignalEventTransformer extends CommandTransformer {
  public GenericCommand<?> transform(CommandTranslator ct, Object o, Unmarshaller unmarshaller) {
    SignalEventCommand se = (SignalEventCommand)o;
    Object ev = se.getEvent();
    if (ev != null) {
      Object obj = ct.makeObject((Element)ev , unmarshaller);
      se.setEvent(obj);
    }
    return se;
  }
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

        return workItemManager;
    }

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

TOP

Related Classes of org.drools.command.runtime.process.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.