다음 예제는 ACT(Active Correlation Technology)가 제공하는 변수를 통해 이벤트 관련 정보에 액세스하는 방법을 보여줍니다.
act_event.getAttribute("hostname");
act_eventList.get(0);
<eventSelector alias="TECevent"> <eventType type="serverStatus"/> <filteringPredicate expressionLanguage="java"> return act_event.getStringAttribute("source").equals("TEC"); </filteringPredicate> </eventSelector> <eventSelector alias="WASevent"> <eventType type="serverStatus"/> <filteringPredicate expressionLanguage="java"> return act_event.getStringAttribute("source").equals("WAS"); </filteringPredicate> </eventSelector>다음 코드는 act_eventList 변수를 사용하여 TECevent라는 첫 번째 이벤트 선택자가 승인한 이벤트를 확보하는 방법을 보여줍니다.
act_eventList.get("TECevent");