public Command newSignalEvent(long processInstanceId, String type, Object event) { return new SignalEventCommand( processInstanceId, type, event ); }
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 ) ); } writer.addAttribute( "event-type", eventType ); writeItem( event, context, writer ); }
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.startNode( "process-instance-id" ); writer.setValue( Long.toString( processInstanceId ) ); writer.endNode(); } writer.addAttribute( "event-type", eventType ); writer.startNode( "event-type" ); writer.setValue( eventType ); writer.endNode(); writer.startNode( "object" ); writeItem( event, context, writer ); writer.endNode(); }
public Command newSignalEvent(String type, Object event) { return new SignalEventCommand( type, event ); }
public SignalEventCommand createSignalEventCommand() { return new SignalEventCommand(); }
public void signalEvent(String type, Object event, long processInstanceId) { SignalEventCommand command = new SignalEventCommand( processInstanceId, type, event ); commandService.execute( command ); }
public void signalEvent(String type, Object event) { SignalEventCommand command = new SignalEventCommand( type, event ); commandService.execute( command ); }
public void signalEvent(String type, Object event) { String kresultsId = "kresults_" + this.gsd.getId(); CommandImpl cmd = new CommandImpl( "execute", Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new SignalEventCommand( type, event ), null, null, this.instanceId, kresultsId )} ) ); this.sendMessage(cmd); }
public void signalEvent(String type, Object event, long processInstanceId) { String kresultsId = "kresults_" + this.gsd.getId(); CommandImpl cmd = new CommandImpl( "execute", Arrays.asList( new Object[]{new KnowledgeContextResolveFromContextCommand( new SignalEventCommand( type, event ), null, null, this.instanceId, kresultsId )} ) ); this.sendMessage(cmd); }