Input mappings for struct parameters

Structs may be specified as parameters to business process object methods. This section describes the metadata of the input mappings associated with such parameters.

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

    <bpo-mapping
      interface-name="curam.sample.facade.intf.SampleBenefit"
      method-name="createAssociatedProductDeliveryForPlannedItem">
      <formal-parameters>
        <formal-parameter index="0">
          <struct
          type="curam.struct.SampleBenefitPlanItemDetails">
            <field name="description">
              <base-type type="STRING">
                <wdo-attribute wdo-name="SPProductDeliveryPI"
                               name="description"/>
              </base-type>
            </field>
            <field name="plannedItemIDKey">
              <base-type type="INT64">
                <wdo-attribute wdo-name="SPProductDeliveryPI"
                               name="plannedItemID"/>
              </base-type>
            </field>
            <field name="plannedItemName">
        <base-type type="STRING" />
            </field>
          </struct>
        </formal-parameter>
      </formal-parameters>
    </bpo-mapping>
  </automatic-activity>
struct
This contains the details of one struct input mapping, including the type of the struct and mappings for each field defined in that struct. A struct input mapping contains the following mandatory attribute:
type
This describes the type of the struct that has been specified as the formal parameter in the method. This is represented as the fully qualified name of the struct specified as the formal parameter.
field
This contains the details of the input mapping for one of the fields defined in the struct parameter. A field contains the details of the input mapping for the primitive base type associated with that field as well as the following mandatory attribute:
name
This describes the name of the field as defined in the struct specified as the formal parameter.
base-type
This contains the details of one base type input mapping for the specified field. A base type input mapping contains the following mandatory attribute:
type
This describes the type of the primitive field being mapped to.
wdo-attribute
This contains the details of the workflow data object (see Workflow Data Objects) attribute containing the data that will be used to populate the associated base type field when the method is invoked. This will not be present if the user has not specified an input mapping for this method parameter. This element, when specified, contains the following mandatory attributes:
wdo-name
This describes the name of the workflow data object used in the input mapping.
name
This describes the name of the attribute on the specified workflow data object used in the input mapping.