변환할 인바운드 메시지 분류

Decision Server Insights가 인바운드 메시지를 분류하고 변환할 수 있도록 인바운드 바인딩을 확장할 수 있습니다.

이 태스크 정보

XPath 표현식(클래스류)을 인바운드 바인딩에 추가하고 적용 가능한 경우에 사용할 .xsl 변환을 지정하며 대체 조치를 지정합니다. Decision Server Insights는 클래스류에 대해 인바운드 메시지를 테스트합니다. 메시지가 클래스류와 일치하는 경우, Decision Server Insights는 .xsl 문서를 적용하여 메시지를 변환합니다. 메시지가 클래스류와 일치하지 않는 경우, Decision Server Insights는 후속 클래스류에 대해 메시지를 테스트합니다. 메시지가 클래스류와 일치하지 않는 경우, Decision Server Insights는 어떤 대체 조치를 지정하는지에 따라 메시지를 버리거나 변환 없이 메시지를 처리합니다.

메시지 클래스류 표현식은 메시지 컨텐츠가 아닌 속성을 기반으로 메시지를 분류하기 위해 MessageContext 인터페이스에 의해 정의된 함수를 사용할 수 있습니다. 예를 들어, context:getJMSType() 함수는 JMS 메시지의 JMSType 특성을 리턴합니다. 사용 가능한 기능에 대한 자세한 정보는 MessageContext를 참조하십시오.

프로시저

  1. 인바운드 바인딩을 작성하십시오. 예제:
    define inbound binding 'binding_name' 
       with 
          description "description",
       using 
          message format message_format,
       protocol protocol_type,
       accepting events: 
          - event
          - event.
  2. 인바운드 메시지가 테스트될 첫 번째 클래스류를 지정하십시오. 예:
    classifying messages:
       if matches "xpath1"      
          then discard message 
       else if matches "xpath2"
          then do not transform message 
       else if matches "xpath3"      
          then transform using
          "transformation"  
       else 
          discard message
  3. XSL 변환을 지정하십시오. 예:
    transform using "xsl file"
       else if matches "XPath_expression"
          where prefix "prefix" represents the namespace "namespace"
          transform using "xsl_file"    else alternate_action,
  4. 대체 조치를 지정하십시오. true로 평가되는 클래스류가 없는 경우, 대체 조치는 메시지에 어떤 일이 발생하는지 판별합니다. 예:
    else do not transform message
  5. 바인딩 작성을 완료하십시오. 예제:
    accepting events: 
          - event 
          - event. 
  6. 작업을 저장하십시오.

예

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. 

다음에 수행할 작업

인바운드 엔드포인트를 지정하십시오.