12_TriggerFlows Flashcards
What are the 4 connectors for working with files and folders?
File. FTP. SFTP. FTPS. (have same set of operations and behave almost identically).
(File Connector). On CloudHub, the connector can only be used with the ???? folder?
/tmp
What is best practice, when you are adding a File module to the project?
You should create a global element configuration and set the working directory that will be the root for every path used with the connector.
(File connector) When using a customer-hosted runtime, the account running Mule must have what?
Read and write permissions on the specified directories.
What listener can be used to trigger a file when a new file is created/updated?
On New or Updated file
What does the On New or Updated File listener do?
It polls the directory for files that have been created or updated.
How many messages are generated, when the On New or Update File listener is used to trigger flows when a new file is created or updated?
One message is generated for each file that is found.
When you use a On New or Update File listener, what do you have to avoid? and how?
The poller will keep bringing back the created or updated files. You must ensure a file is new by… (deleting each file after processing, move each file, rename a file and add a filteror save and compare the file creationor modification times).
What is the process for sychronizing data from one system to another?
First time you sync all the data, after this you only need to sync the new data. Each sync you will store the latest timestamp for any item in the data set, on other syncs you will retrieve this timestamp and compare to see if it has already been synched. It will sync all later data that has not already been synched. The timestamp is often a creation timestamp/modification timestamp or recordID.
What is often used as a timestamp?
Creation timestamp, modification timestamp and recordID.
What is a watermark?
The timestamp that is stored each sync and then retrieved and compared against the next sync.
What can you specify for the On Table Row operation?
Watermark column and the Idempotency column
What’s an easy way to remember a watermark?
When the house floods …. nightmare … it will leave a watermark at the highest mark that the water came too. So you can think of it as when you are doing the next sync, you will look for the water mark to find the highest poiunt that was previously reached.
How many types of watermarking are there in Mule?
2 (Automatic and Manual)
What is the Automatic type of watermarking?
The saving/retrieving/comparing is automatically handled for you. Availble for several connector listeners (On New or Updated File, On Table Row). Restricted in how you can specify what items/records are recieved.
What is the Manual type of watermarking?
You handle saving, retrieving and comparing the watermark. More flexible in that you specify exactly what records you want retrieved.
For an automatic watermarking with files, what are the 2 modes?
CREATED_TIMESTAMP and MODIFIED_TIMESTAMP
What ????? operation for the family of file connectors has a watermarking option?
On New or Upddated File