Drop Resolver Configuration

Add a drop resolver (or drop trigger) configuration, which should look something like this:

dropTriggers:
  - name: DCXToContentStoreImport
    href: "http://drop-resolver-host/DCXToContentStoreImport"
    triggers:
      mimeTypes: ["x-dcx/picture", "x-dcx/video", "x-dcx/other"]
      urlPatterns: ['^https?:\/\/dcx-host\/dcx\/api\/document\/.*', '^https?:\/\/dcx-host\/dcc\/document\/.*']
    resultMimeType:
      - sources: ["x-dcx/picture", "x-dcx/other"]
        results: ["x-ece/picture"]
      - sources: ["x-dcx/video"]
        results: ["x-ece/video"]
      - sources: ['^https?:\/\/dcx-host\/dcx\/api\/document\/.*', '^https?:\/\/dcx-host\/dcc\/document\/.*']
        results: ["x-ece/picture", "x-ece/video"]
    attributes:
      defaultState:
        - dcxTypes: ["image", "postscript", "illustrator", "pdf", "video"]
          state: "published"
      fieldMapping:
        - dcxTypes: ["image", "postscript", "illustrator", "pdf"]
          mapping:
            - name: "title"
              value:
              - dcxField: "Filename"
            - name: "caption"
              value:
                - dcxField: "body"
                - dcxField: "Headline"
            - name: "credit"
              value:
                - dcxField: "Provider"
            - name: "byline"
              value:
                - dcxField: "Creator"
        - dcxTypes: ['video']
          mapping:
            - name: "title"
              value:
                - dcxField: "Filename"
            - name: "description"
              value:
                - dcxField: "body"
                - dcxField: "Headline"
            - name: "credit"
              value:
                - dcxField: "Provider"
            - name: "byline"
              value:
                - dcxField: "Creator"

where drop-resolver-host and dcx-host are replaced by the appropriate host names.

The defaultState attribute determines which states will be assigned to dropped assets. You can differentiate the dropped assets by their DC-X type and assign different states to different types of asset. In the example shown above, all types of asset are assigned the state published.

The fieldMapping defines how DC-X field values are to be mapped on to Content Store fields. You can differentiate the dropped assets by their DC-X type and set different field mappings for different types of asset. In the example shown above, video assets are assigned different field mappings from the other asset types. You can map several DC-X fields onto one Content Store field:

            - name: "description"
              value:
                - dcxField: "body"
                - dcxField: "Headline"

In this case the DC-X fields must be specified in priority order: the first non-empty field is used to fill the Content Store field.