これは私の以前の質問の拡張です。How to upload multiple files via REST over HTTP using Mule? . 要件は、毎週水曜日の午前 10 時にファイルをアップロードする必要があることです。今後、これを達成するためのスケジューラが必要です。そして、Cron Expression を使用した「Quartz」インバウンド コンポーネントが解決策であることがわかりました。
しかし、どうすればそうできますか?2つの「インバウンドエンドポイント」(クォーツとファイル)を持つことができないため、例
<flow name="fileUploader" doc:name="fileUploader">
<quartz:inbound-endpoint
jobName="myServiceJob"
repeatInterval="5000"
cronExpression="0 0 10 ? * WED
doc:name="Quartz">
<quartz:event-generator-job/>
</quartz:inbound-endpoint>
<file:inbound-endpoint
path="C:\input"
pollingFrequency="5000" moveToDirectory="C:\movehere" doc:name="File"
responseTimeout="10000"/>
<object-to-byte-array-transformer doc:name="Object to Byte Array"/>
<file:outbound-endpoint
path="C:\outputfile"
responseTimeout="10000"
doc:name="File"/>
</flow>
実行するとエラーが発生します
スレッド「メイン」での例外 org.mule.module.launcher.DeploymentInitException: SAXParseException: cvc-complex-type.2.4.a: 要素「file:inbound-endpoint」で始まる無効なコンテンツが見つかりました。
それで、私がする必要がある変更は何ですか?
助けてください