工作流4.0中的批处理操作 [英] batching operation in workflow 4.0

查看:82
本文介绍了工作流4.0中的批处理操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个项目,该项目是白天发出的.而且,我们每天晚上希望一次将所有订单批处理一次.

I am working on a project, which order comes in during the day. And once every night, we want to batching all the orders once every night to process them. 

>

推荐答案

我认为这可以通过多种方式来完成.这是我选择的一种方式:
如果您的订单处理工作流程"将订单信息存储在数据库/文件中,
然后,您可以使用另一个名为"DailyBatchProcessing"的工作流程.具有以下配置:
<当condition = true时
             < Sequence>
<延迟(24小时)/>
    < ProcessAllOrders/>
            </Sequence>
          </While>
为执行上述操作并确保DailyBatchProcessing工作流在持续存在的24小时后恢复,您需要在WF \ Basic \ Services \ DurableDelay中查看SDK样本中的耐用服务样本.

希望对您有所帮助.
Ameen.

I think this can be done in number of ways. Here is one way that I'd choose:
If your "Order processing workflow" stores the order information in a database/file, 
       Then you can have another workflow named "DailyBatchProcessing" with the following configurations:
          <While condition=true>
               <Sequence>
                    <Delay(24 hrs) />
                     <ProcessAllOrders/>
                </Sequence>
            </While>
For doing the above and making sure the DailyBatchProcessing workflow resumes after 24 hours while the workflow is persisted, you need need to look at the durableservice sample in the SDK samples at WF\Basic\Services\DurableDelay.

I hope this helps.
Ameen.


这篇关于工作流4.0中的批处理操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆