집계된 구조체 매개변수의 입력 맵핑

집계된 구조체(구조체 집계에 대한 자세한 정보는 Cúram 모델링 참조 안내서 참조)를 비즈니스 메소드의 매개변수로 지정할 수 있습니다. 이 경우 메타데이터는 앞서 설명한 구조체 정규 매개변수(구조체 매개변수의 입력 맵핑 참조)와 유사합니다. 하지만 정의된 구조체 매개변수의 필드는 다른 구조체를 확인할 수 있으며 구조체 맵핑 예에 나와 있듯이 기본 유형이 아니라는 점이 조금 다릅니다. 이 시나리오에서 필드 이름은 구조체 매개변수와 연관되어 맵핑되는 필드의 이름이 아니고 지정된 구조체와 집계하는 구조체 간의 연관에 포함된 역할의 이름입니다. 다음 메타데이터 스니펫에서는 입력 맵핑을 예로 들어 보여 줍니다. 메타데이터 요소에 대해서는 위의 구조체 입력 맵핑 절에서 이미 설명했습니다.

<automatic-activity id="1" category="AC1">
    ...

    <bpo-mapping
      interface-name="curam.sample.facade.intf.SampleBenefit"
      method-name="createBenefit">
      <formal-parameters>
        <formal-parameter index="0">
          <struct type="curam.struct.PlannedItemDetails">
            <field name="description">
              <base-type type="STRING">
                <wdo-attribute wdo-name="SPProductDeliveryPI"
                               name="description"/>
              </base-type>
            </field>
            <field name="plannedItemID">
              <base-type type="INT64">
                <wdo-attribute wdo-name="SPProductDeliveryPI"
                               name="plannedItemID"/>
              </base-type>
            </field>
            <field name="dtls">
              <struct type="curam.struct.PlannedItemKey">
                <field name="subject">
                  <base-type type="STRING">
                    <wdo-attribute wdo-name="SPProductDeliveryPI"
                                   name="subject"/>
                  </base-type>
                </field>
                <field name="concernRoleID">
                  <base-type type="INT64">
                    <wdo-attribute wdo-name="SPProductDeliveryPI"
                                   name="concernRoleID"/>
                  </base-type>
                </field>
              </struct>
            </field>
          </struct>
        </formal-parameter>
      </formal-parameters>
    </bpo-mapping>
  </automatic-activity>