Enterprise Console 이벤트 클래스 속성에 확장된 데이터 요소 맵핑

CBE 이벤트 확장자 정의에서 각 extendedDataElement 요소는 일치하는 Enterprise Console 이벤트 클래스 정의에 있는 속성에 맵핑됩니다.

표 1에서는 CBE 이벤트 확장자 정의에 있는 extendedDataElement의 Enterprise Console 이벤트 클래스 정의 속성에 대한 맵핑을 설명합니다.

CBE 이벤트 확장자 정의

Enterprise Console 이벤트 클래스 정의

extendedDataElement.name

속성 이름

extendedDataElement.type

속성 유형

extendedDataElement.defaultValue
extendedDataElement.defaultHexValue

속성 "기본" 유형(facet)

extendedDataElement.minOccurs

"0"(영)이면, Enterprise Console 서버의 모든 속성이 필요하기 때문에 Enterprise Console 이벤트 클래스 정의에 맵핑되지 않습니다.

extendedDataElement.maxOccurs

무시됨: CBE 형식의 이벤트로부터 Enterprise Console 형식의 이벤트로 변환될 때, 반복 확장된 첫 번째 데이터 요소만 맵핑됩니다.

children extendedDataElement

확장된 각 데이터 요소의 하위 요소는 Enterprise Console 이벤트 클래스 정의에 있는 다른 속성으로 변환됩니다. 프로세스는 확장된 데이터 요소에 하위 요소가 없을 때까지 순환 반복됩니다. Enterprise Console 이벤트 클래스 정의에 있는 결과 속성 이름에 관한 세부사항은 "이름" 절을 참조하십시오.

표 1. CBE 이벤트 정의 요소 및 Enterprise Console 이벤트 클래스 정의 속성의 맵핑


다음 절에서는 각 CBE 이벤트 정의 속성이 Enterprise Console 이벤트 클래스 정의에 있는 속성에 맵핑되는 방법에 대해 자세히 설명합니다.

이름

extendedDataElement는 다른 extendedDataElement에 중첩될 수 있습니다. Enterprise Console 이벤트 클래스 정의 속성 결과의 이름은 최상위에서 시작해서 맵핑되는 요소의 이름까지의 모든 extendedDataElements의 이름과 연결되어 형성됩니다. "." (마침표) 문자는 분리 기호로 사용됩니다.

예를 들어, 다음은 CBE 이벤트 확장자 정의입니다.

<eventDefinition name="Transaction"> parent="event";
    <extendedDataElement name="tx_number" type="string">
        <extendedDataElement name="tx_items" type="string">
            ...
        </extendedDataElement>
    </extendedDataElement>
</eventDefinition>

해당 결과는 다음 Enterprise Console 이벤트 정의 클래스와 같습니다.

TEC_CLASS :
    Transaction ISA EVENT
    DEFINES {
        tx_number: STRING;
        tx_number.tx_items: STRING;
        ...
    }
END
주:
  1. 결과 속성의 이름을 Enterprise Console 이벤트의 속성 이름으로 사용되는 문자 공간에 맞게 변환해야 합니다.
  2. 상위 속성이 없는 CBE 이벤트 정의는 항상 EVENT를 슈퍼클래스로 하는 Enterprise Console 이벤트 클래스 정의에 맵핑됩니다.

유형

표 2에서는 확장된 데이터 요소의 "유형" 하위 필드가 Enterprise Console 이벤트 클래스 정의에 있는 속성 데이터 유형으로 맵핑되는 방법을 설명합니다.

CBE 이벤트 확장자 정의

Enterprise Console 이벤트 클래스 정의

  • noValue

extendedDataElement 전체가 무시됨

  • byte
  • short
  • int
  • long

INT32

  • float
  • double

REAL

  • string
  • dateTime
  • boolean
  • hexBinary

STRING

  • byteArray
  • shortArray
  • intArray
  • longArray

LIST_OF INT32

  • floatArray
  • doubleArray

LIST_OF REAL

  • stringArray
  • dateTimeArray
  • booleanArray

LIST_OF STRING

표 2. Enterprise Console 속성 유형에 확장된 데이터 요소 유형 맵핑

기본값 및 기본 16진 값

확장된 데이터 요소 정의에 대한 기본값은 Enterprise Console 이벤트 클래스 정의에 있는 해당 속성의 기본값으로 맵핑됩니다.

예를 들어, 다음은 CBE 이벤트 확장자 정의입니다.

<eventDefinition name="Transaction" parent="event">
    ...
    <extendedDataElement name="tx_type" type="string">
        <defaultValue>purchase</defaultValue>
    </extendedDataElement>
 
    <extendedDataElement name="tx_internal_code" type="long">
        <defaultValue>42</defaultValue>
    </extendedDataElement>

    <extendedDataElement name="tx_approvers" type="string">
        <defaultValue>employee_1</defaultValue>
        <defaultValue>employee_2</defaultValue>
    </extendedDataElement>

    <extendedDataElement name="tx_key" type="hexBinary">
        <defaultValue>CE908712AF</defaultValue>
    </extendedDataElement>

</eventDefinition>

결과는 다음 Enterprise Console 이벤트 정의 클래스와 같습니다.

TEC_CLASS :
    Transaction ISA EVENT
    DEFINES {
        tx_type: STRING, default="purchase";
        tx_internal_code: INT32, default=42;
        tx_approvers: STRING, default=[employee_1, employee_2];
        tx_key: STRING , default=CE908712AF;
        ...
    };
END


관련 항목
Enterprise Console 이벤트 속성에 Common Base Event 속성 맵핑