How I can run flow(s) automatically
Anyone can tell me how flow(s) run automatically.
Basically I am trying to read data from csv file and wants to store it in database. I have created flow for it and run, it start the application as you can see below:
INFO 2013-11-26 11:31:47,401 [main] org.mule.module.launcher.MuleDeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Started app 'read_csv_file' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
After this point I have no idea what I need to do to execute this flow. From where I need to hit this flow. I am stuck here please help me
Mule Flows
are triggered by an event. It can be an event generated from another flow or it can be an event on the inbound-endpoint.
From the post it can be understood that the flow needs to be triggered from outside the application. So better use an Inbound-Endpoint
at the start of the flow to trigger the flow.
For your case you can use an file:inbound-endpoint
at the start of your flow.
<flow name="main_flow">
<file:inbound-endpoint path="/path/to/input/folder" doc:name="File"></file:inbound-endpoint>
......
......... Message processors ....
</flow>