2015-10-18 80 views
0

每當客戶完成交易時,該客戶就會開始提醒工作流程,嘗試提醒客戶有關他/她必須執行的一些操作。流程中有幾點我確定沒有任何要執行的任務。所以在這種情況下,我希望工作流能夠休眠一段時間,並在稍後恢復。我想要這個睡眠功能來避免數據庫調用,因爲我的判定器在每次獲取任務時都執行一次數據庫查詢。AWS SWF是否讓工作流動一段時間?

我已經通過AWS文檔here。但沒有找到任何東西(請指出我是否記錄該功能是否存在)。 AWS-SWF是否提供這樣的功能。如果它沒有提供這種類型的功能,那麼做到這一點的智能和乾淨的方式是什麼。

流的一個小例子,我想創建:

1. End of transaction initiates a "simple workflow" 
2. Decider gets a task. Decider decides to give it to a Customer 
Reminder activity worker or PUT IT TO SLEEP. 
3. The decider keeps poling but never gets the workflow till the sleep 
time of work flow is over. 
4. The sleep time is over so SWF starts giving it the decider which has 
been polling all along. 

請告訴我,如果你需要在這個任何更多的澄清。

回答

相關問題