setEvent
setEvent(
event
)
setEvent
메소드는
postEvent
명령에서 사용되는 이벤트 이름을 정의합니다.
event
- 이벤트 이름을 포함하는 문자열입니다.
event
이름은 대화식 채널에 정의된 이벤트 이름과 정확히 일치해야 합니다. 대소문자를 구분합니다.
리턴값
없음.
예제
다음 예제는
postEvent
를 호출하는
executeBatch
메소드에서 발췌한 것입니다.
String eventName = "SearchExecution";
Command postEventCommand = new CommandImpl();
postEventCommand.setMethodIdentifier(Command.COMMAND_POSTEVENT);
postEventCommand.setEventParameters(postEventParameters);
postEventCommand.setEvent(eventName);
Copyright IBM Corporation 2012. All Rights Reserved.