Previous Topic: ImportNext Topic: Export


Example

RESTful services let you import content from a server location.

Follow these steps:

  1. Create a process.
  2. Drag the Execute operator to the Designer.
  3. Double-click the Execute operator to open the Properties palette.
  4. Enter the required parameters.
    Catalyst Security

    Username: (Catalyst user name)

    Password: (Catalyst password)

    Claims

    ClaimName: Username

    ClaimValue: pamadmin

    PasswordClaims

    ClaimName: Password

    ClaimValue: pamadmin

    Execute

    CatalystBrokerURL: "https//hostname:7443/ucf/BrokerService"

    MdrProduct: "CA:00074 (CA Process Automation)"

    MdrProdInstance: "CA:00074:01"

    Operation Category: "CA Process Automation"

    Operation: Import

  5. Determine which of the following options to use when importing content, then complete the Server Location fields:
    Server Location
    1. In the Execute Properties, click Parameters.
    2. On the ImportRequest tab, complete the following fields:

      ImportLocation: Defines the Library location to which to import the XML file. If the specified folder does not exist, CA Process Automation creates it. For example, "/test-import/".

      SourceLocation: Define the source folder in one of the following ways:

      • Define the server location from which to import the content. For example, "c:\\export_import_test\\export_test.xml".
      • Define the HTTP URL for the location from which to import the content. For example, "http://servername:8080/c2orepository/test/export_test.xml".

      OverwriteAction: Enter one of the following options to import a file of the same name that exists in the specified location:

      • Import: Increase the version of the imported object if an object of the same exists in the specified import folder. Overrides the release version if the same release version exists.
      • DoNotImport: Skip the import operation if an object of the same name exists in the specified import folder.
      • ImportAndReplace: Replace the object of the same name in the specified import folder. It deletes the previous versions of the object.

      SetCurrent: Select "true" to set the imported version as current version; otherwise, select "false".

      MakeAvailable: Select "true" to make the content available in the Library. Select "false" to make the content unavailable.

  6. Run the process.
  7. Review the output.

    The following illustration shows a successful import message:

    Successful import message.