변환할 인바운드 메시지 분류
Decision Server Insights가 인바운드 메시지를 분류하고 변환할 수 있도록 인바운드 바인딩을 확장할 수 있습니다.
이 태스크 정보
XPath 표현식(클래스류)을 인바운드 바인딩에 추가하고 적용 가능한 경우에 사용할 .xsl 변환을 지정하며 대체 조치를 지정합니다. Decision Server Insights는 클래스류에 대해 인바운드 메시지를 테스트합니다. 메시지가 클래스류와 일치하는 경우, Decision Server Insights는 .xsl 문서를 적용하여 메시지를 변환합니다. 메시지가 클래스류와 일치하지 않는 경우, Decision Server Insights는 후속 클래스류에 대해 메시지를 테스트합니다. 메시지가 클래스류와 일치하지 않는 경우, Decision Server Insights는 어떤 대체 조치를 지정하는지에 따라 메시지를 버리거나 변환 없이 메시지를 처리합니다.
메시지 클래스류 표현식은 메시지 컨텐츠가 아닌 속성을 기반으로 메시지를 분류하기 위해 MessageContext 인터페이스에 의해 정의된 함수를 사용할 수 있습니다. 예를 들어, context:getJMSType() 함수는 JMS 메시지의 JMSType 특성을 리턴합니다. 사용 가능한 기능에 대한 자세한 정보는 MessageContext를 참조하십시오.
프로시저
예
define inbound binding 'incomingQuotes'
with
description "Incoming quotes",
using
message format application/xml,
protocol HTTP,
classifying messages:
if matches "/sources/source[@id='website']"
where prefix "company" represents the namespace "http://example.org""
transform using "websiteTransform.xsl"
else if matches "/sources/source[@id='mobile']"
where prefix "anotherCompany" represents the namespace "http://example.org"
transform using "mobileTransform.xsl"
else do not transform message,
accepting events:
- Existing quote
- New quote.
다음에 수행할 작업
인바운드 엔드포인트를 지정하십시오.