To automatically retrieve information from MongoDB, create a new fetch task by following these steps. The connector runs each fetch task automatically, based on the schedule that is configured in the configuration file.
To create a new Fetch Task
In the [FetchTasks]
section of the configuration file, specify the number of fetch tasks using the Number
parameter. If you are configuring the first fetch task, type Number=1
. If one or more fetch tasks have already been configured, increase the value of the Number
parameter by one (1). Below the Number
parameter, specify the names of the fetch tasks, starting from zero (0). For example:
[FetchTasks] Number=1 0=MyTask
Below the [FetchTasks]
section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:
[FetchTasks] Number=1 0=MyTask [MyTask]
In the new section, set the following configuration parameters:
ConnectionString
|
The connection string to use for connecting to MongoDB. |
Username
|
(Optional) The user name to use when connecting to MongoDB. |
Password
|
(Optional) The password to use when connecting to MongoDB. Micro Focus recommends that you encrypt the value of this parameter before adding it to the configuration file. For information about how to do this, see Encrypt Passwords. |
ContentField
|
(Optional) The name of a field in a MongoDB document that you want to use to populate the IDOL document content. If the field does not exist or you do not set this parameter, the connector produces a metadata-only document. |
Save and close the configuration file.
You can now start the connector.