Cloud Integration Hub > File ingestion tasks > Creating a file ingestion task for a subscription
  

Creating a file ingestion task for a subscription

To create a file ingestion task for a subscription in Mass Ingestion, perform the following tasks:

Step 1. Define task details

Define task properties on the Definition page of the File Ingestion Task Wizard.
    1Log in to Mass Ingestion. Click New > File Ingestion Task.
    The Definition page of the File Ingestion Task Wizard appears.
    2Specify the following details:
    Task Name
    Enter a name for the task.
    The task name can contain alphanumeric characters, spaces, and underscores. Names must begin with an alphabetic character or underscore.
    Tip: Indicate the type of the task in the task name. This will ensure that when you select a task to use in a Cloud Integration Hub subscription workflow, you select a subscription task. For example, name the task Sub_<TaskName>.
    Location
    Select a local folder where the task will reside.
    Description
    Optionally, enter a description for the task. The description can contain up to 1,024 characters.
    Runtime Environment
    Select the same runtime environment that contains the Secure Agent that runs the task.
    3Click Next
    The Source page appears.

Step 2. Configure subscription source

Configure the subscription source on the Source page of the File Ingestion Task Wizard.
    1On the Source page, from Source Type, select Source Connection.
    Don't select the source type File Listener.
    2From the Connection Type list, select Cloud Integration Hub.
    3From the Connections list, select Cloud Integration Hub.
    4Enter source options.The following table describes the source options:
    Option
    Description
    File Pickup
    The file ingestion task picks up files based on a file list. The file list consist of a comma-separated list of file names. The file list option populates automatically from the Cloud Integration Hub subscription and you can't edit it.
    Batch Size
    The number of files a file ingestion task can transfer in a batch.
    Default is 5. The maximum number of files you can transfer in a batch is 20.
    After File Pickup
    Determines what to do with the source files after the files are transferred.
    Select one of the following options:
    • - Keep the files in the source directory.
    • - Delete the files from the source directory.
    • - Rename the files in the source directory. You must specify a file name suffix that the file ingestion task adds to the file name when renaming the files. Enter one of the following variables:
      • - ($date)
      • - ($time)
      • - ($timestamp)
      • - ($runId)
    • - Archive the files to a different location. You must enter the absolute path or relative path on the source file system.
    5Click Next.
    The Target page appears.

Step 3. Configure subscription target

Configure the subscription target on the Target page of the File Ingestion Task Wizard. Options that appear on the page vary based on the type of target connection that you select.
    1On the Target page, from Connection Type, select a connection type.
    2Select a connection.
    3Based on the target connection that you select, enter the target options.
    4Click Save.

Step 4. Configure file processing actions (optional)

You can configure one or more file processing actions on the Actions page of the File Ingestion Task Wizard. For example, you can choose to flatten the file structure of the files you consume. For more information about file processing actions, see the Mass Ingestion help.
    1On the Actions page, click Add.
    The Action Details window appears.
    2Select FileStructure from the Actions list.
    3Select Flatten from the Action Type list and click Save.