2. Agenda
●Trigger flows when files or database records are added or updated
●Schedule flows
●Persist and share data across flow executions
●Publish and consume JMS messages
●Process items in a collection sequentially
●Process records asynchronously in batch
3. WT 12-1: Trigger a flow when a new file is added to a
directory Open Apdev-
examples project
1
2
3
4
5
Drag & Drop
Drag & Drop
4. WT 12-1: Trigger a flow when a new file is added to a
directory
1
2
3
4
5
5. WT 12-1: Trigger a flow when a new file is added to a
directory
1
2
3
4
6. WT 12-1: Trigger a flow when a new file is added to a
directory
1
2
3
7. WT 12-1: Trigger a flow when a new file is added to a
directory
1
2
3
4
8. WT 12-1: Trigger a flow when a new file is added to a
directory
1
Drop This is account.csv
2
3
Confirm
9. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
http://mu.mulesoft-training.com/accounts/show
Database hosted by
MuleSoft
Drag & Drop
Drag & Drop
10. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
11. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
12. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
5
13. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
Drag & Drop
14. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
Drag & Drop
Change Label
Click
5
Drag & Drop
15. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
Once your app runs, you will see many accounts are
downloaded and write them to file.
16. WT 12-2: Trigger a flow when a new record is added to a
database and use automatic watermarking
1
2
3
4
Confirm your account
17. WT 12-3: Schedule a flow and use manual watermarking
1
2
3
4
Drag & Drop
Click
Click
5
18. WT 12-3: Schedule a flow and use manual watermarking
1
2
3
4
Drag & Drop
Copy
Paste
19. WT 12-3: Schedule a flow and use manual watermarking
1
2
3
4
Drag & Drop
Click
5
28. WT 12-4: Publish and listen for JMS messages
1
2
3
4
In case of failure of deployment, check this
https://forums.mulesoft.com/questions/101249/mule-4-self-paced-
wt-12-4-activemq-connection-fact.html
Drag & Drop