에이전트 디스크립터 완료
에이전트를 바인드할 엔티티, 에이전트가 처리하는 이벤트, 그리고 라우팅 로직을 정의하려면 에이전트 디스크립터(agent.adsc)를 완료해야 합니다.
시작하기 전에
이 태스크 정보
에이전트 디스크립터 파일에는 이벤트에 적용할 라우팅 조건을 정의합니다. 디스크립터에는 비즈니스 모델의 이벤트 및 엔티티 유형을 참조하는 비즈니스 어휘가 있습니다.
이 에이전트 디스크립터에는 에이전트 로직을 정의하기 위해 편집기에서 완료해야 하는 템플리트가 포함되어 있습니다.
프로시저
결과
다음 에이전트 디스크립터는 공항 엔티티에 바인드되며 두 개의 이벤트를 처리하는 공항 에이전트를 보여줍니다.

- 에이전트의 이름.
- 바인드된 엔티티 유형.
- 에이전트의 우선순위.
- 에이전트가 청취하고 처리하는 이벤트 유형.
- 바인드된 엔티티.
- 이벤트의 바인드된 엔티티에 대응되는 문자열을 검색하는 표현식.
- 이벤트에서 필터링.
- 이벤트의 시간 지평.
- temperature reading,
where this location comes from the location of this temerature reading
with a horizon of 7 days
1주일 후에 지난 7일간 온도 눈금이 에이전트에 저장됩니다.
그러면 지난주 이 데이터를 집계하는 규칙을 정의할 수 있습니다. 예
- 하나의 이벤트를 처리하는 에이전트
- 다음의 예에서 에이전트의 바인드된 엔티티는 티켓이며, 에이전트는 티켓 체크인 이벤트를 청취합니다.
티켓 엔티티의 ID는 티켓 체크인 이벤트에 포함된 ID입니다.
'ticket checkin agent' is an agent related to a ticket, processing events: - ticket checkin event, where this ticket comes from the ticket of this ticket checkin event팁: target 플레이스홀더에는 이벤트를 묵시적으로 가리키는 변수를 사용할 수 있습니다. 예를 들면, the ticket of this ticket checkin event와 같이 쓰는 대신 the ticket이라고 쓸 수 있습니다. - 우선순위 및 조건을 사용하여 여러 이벤트를 처리하는 에이전트
다음 에이전트 디스크립터는 공항 엔티티에 바인드되며 두 개의 이벤트를 처리하는 공항 에이전트를 보여줍니다. 에이전트의 우선순위는 높습니다. 다른 에이전트가 더 낮은 우선순위로 같은 이벤트를 청취하는 경우에는 AirportAgent 에이전트가 이러한 이벤트를 먼저 처리합니다. 이 에이전트 설명에는 공항 열림 이벤트의 필터링 조건도 포함되어 있습니다. 에이전트는 8월에 발생하는 공항 열림 이벤트만 처리합니다.
'AirportAgent' is an agent related to an airport, whose priority is High, processing events: - airport closed event, where this airport comes from the airport of this airport closed event - airport open event when the datetime of this airport open event is in August, where this airport comes from the airport of this airport open event- 여러 이벤트를 처리하는 에이전트(이벤트 중 하나는 지정된 시간 지평을 가짐)
- 다음 에이전트 디스크립터는 공항 엔티티에 바인드되며 두 개의 이벤트를 처리하는 공항 에이전트를 보여줍니다.
이 에이전트는 각 이벤트의 시간소인부터 15일 동안 공항 열림 이벤트를 작업 메모리에 보존합니다. 현재 시간이
이 기간의 끝에 도달하면 공항 열림 이벤트가 에이전트의 메모리에서 제거됩니다. 에이전트 디스크립터는
공항 닫힘 이벤트의 시간 지평을 지정하지 않으므로, 이 이벤트는 에이전트 또는 솔루션의 최대 시간 지평 동안 작업 메모리에 보존됩니다.
'AirportAgent' is an agent related to an airport, processing events: - airport closed event, where this airport comes from the airport of this airport closed event - airport open event, where this airport comes from the airport of this airport open event with a horizon of 15 days - 이벤트를 처리하는 에이전트(엔티티 ID가 이 이벤트의 두 필드를 기반으로 함)
- 다음의 예에서 에이전트의 바인드된 엔티티는 고객이며 에이전트는 등록 이벤트를 청취합니다.
고객 엔티티의 ID는 등록 이벤트에 포함된 기본 담당자의 이름 및 성으로 구성됩니다.
'subscription agent' is an agent related to a customer, processing events: - subscription event, where this customer comes from the first name of the main contact of this subscription event + "/" + the last name of the main contact of this subscription event - 엔티티가 바인드된 엔티티의 상위 유형인 이벤트를 처리하는 에이전트
- 이벤트를 엔티티의 상위 유형에 바인드할 수 있습니다. 예를 들어, 다음 비즈니스 모델을 고려하십시오.
에이전트가 patient 엔티티와 관련되어 있으면 이벤트를 person 엔티티에 바인드할 수 있습니다. 이 예에서는 런타임 환경이 이벤트의 person 엔티티가 patient의 인스턴스인지 또는 doctor의 인스턴스인지를 검사합니다. 에이전트는 이벤트의 엔티티가 patient인 경우에만 이벤트를 처리합니다.a person is a business entity identified by a string, named the name. a patient is a person . a doctor is a person . a message to person is a business event . a message to person is related to a person. a message to patient is a business event . a message to patient is related to a patient.'healthcare' is an agent related to a patient, processing events: - message to person, where this patient comes from the person of this message to person - 바인드된 엔티티가 없는 에이전트
규칙 에이전트에는 바인드된 엔티티가 있어야 하지만, 엔티티에 바인드되지 않는 Java 에이전트를 개발할 수 있습니다. 에이전트는 이벤트의 스트림을 수신하고 이벤트 스트림을 기반으로 하는 아웃바운드 이벤트를 생성할 수 있습니다(엔티티에 액세스할 필요가 없음). 예를 들어, 다수의 트랜잭션이 발생할 때 경보를 트리거하고자 하는 경우가 있을 수 있습니다.
엔티티가 없는 Java 에이전트를 작성하기 위해, 다음 예에 표시된 대로 is related to 및 where <mapping> 절을 생략합니다.
'transactionagent.MyAgent' is an agent, processing events: - transaction event