setEvent

The setEvent method defines the name of the event used by the postEvent command.

setEvent(event)
  • event-A string which contains the event name.
Important: The name of the event must match the name of the event as defined in the interactive channel exactly. It is case-sensitive.

Return value

None.

Example

The following example is an excerpt from an executeBatch method calling postEvent.

String eventName = "SearchExecution";
	
Command postEventCommand = new CommandImpl();
postEventCommand.setMethodIdentifier(Command.COMMAND_POSTEVENT);
postEventCommand.setEventParameters(postEventParameters);
postEventCommand.setEvent(eventName);