文件名称:OrderingStateMachine
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 146kb
- 下载次数:
- 0次
- 提 供 者:
- ouy***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
订单状态机示例是一个应用程序,该应用程序通过使用状态机工作流来实现订单履行解决方案。
在此类型的应用程序中,订单在其完成之前可能会经过若干种状态。 对于此示例,有四种定义的状态:
WaitingForOrderState
OrderOpenState
OrderProcessedState
OrderCompletedState
此订单系统中还有一些规则,这些规则指定对于订单可能发生的事件(具体情况视订单的当前状态而定)。 例如,可以更新、处理、取消或发运打开的订单。 但是,对于已处理的订单,则只能更新或发运,而不能取消。 在事件发生时,状态机工作流可以根据情况将订单转换为新状态。 例如,如果订单处于打开状态并且发生了 OrderShipped 事件,状态机工作流将会转换订单的已完成状态。-Orde negara contoh mesin adalah sebuah aplikasi, aplikasi dengan menggunakan alur kerja mesin negara untuk mengimplementasikan solusi pemenuhan pesanan.
Dalam jenis aplikasi, mungkin pesanan sebelum selesai melewati melalui beberapa negara. Untuk contoh ini, ada empat negara didefinisikan:
WaitingForOrderState
OrderOpenState
OrderProcessedState
OrderCompletedState
Sistem ini agar ada beberapa aturan yang menentukan urutan peristiwa dapat terjadi (tergantung status dari pesanan). Misalnya, Anda dapat memperbarui alamat, membatalkan atau membuka pesanan dikirim. Namun, perintah telah diproses, Anda hanya dapat memperbarui atau dikirim, dan tidak dapat dibatalkan. Dalam acara tersebut terjadi, negara alur kerja mesin dapat dikonversi sesuai dengan situasi untuk urutan negara baru. Sebagai contoh, jika order terbuka dan tempat acara OrderShipped, alur kerja keadaan mesin akan mengkonversi status pesanan telah selesai.
在此类型的应用程序中,订单在其完成之前可能会经过若干种状态。 对于此示例,有四种定义的状态:
WaitingForOrderState
OrderOpenState
OrderProcessedState
OrderCompletedState
此订单系统中还有一些规则,这些规则指定对于订单可能发生的事件(具体情况视订单的当前状态而定)。 例如,可以更新、处理、取消或发运打开的订单。 但是,对于已处理的订单,则只能更新或发运,而不能取消。 在事件发生时,状态机工作流可以根据情况将订单转换为新状态。 例如,如果订单处于打开状态并且发生了 OrderShipped 事件,状态机工作流将会转换订单的已完成状态。-Orde negara contoh mesin adalah sebuah aplikasi, aplikasi dengan menggunakan alur kerja mesin negara untuk mengimplementasikan solusi pemenuhan pesanan.
Dalam jenis aplikasi, mungkin pesanan sebelum selesai melewati melalui beberapa negara. Untuk contoh ini, ada empat negara didefinisikan:
WaitingForOrderState
OrderOpenState
OrderProcessedState
OrderCompletedState
Sistem ini agar ada beberapa aturan yang menentukan urutan peristiwa dapat terjadi (tergantung status dari pesanan). Misalnya, Anda dapat memperbarui alamat, membatalkan atau membuka pesanan dikirim. Namun, perintah telah diproses, Anda hanya dapat memperbarui atau dikirim, dan tidak dapat dibatalkan. Dalam acara tersebut terjadi, negara alur kerja mesin dapat dikonversi sesuai dengan situasi untuk urutan negara baru. Sebagai contoh, jika order terbuka dan tempat acara OrderShipped, alur kerja keadaan mesin akan mengkonversi status pesanan telah selesai.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
订单状态机实例OrderingStateMachine\CS\bin\OrderApplication.exe
..................................\..\...\OrderApplication.pdb
..................................\..\...\OrderApplication.vshost.exe
..................................\..\...\OrderApplication.vshost.exe.manifest
..................................\..\...\OrderLocalServices.dll
..................................\..\...\OrderLocalServices.pdb
..................................\..\...\OrderWorkflows.dll
..................................\..\...\OrderWorkflows.pdb
..................................\..\OrderApplication\Mainform.cs
..................................\..\................\Mainform.designer.cs
..................................\..\................\Mainform.resx
..................................\..\................\obj\Debug - Common Bin\Microsoft.Samples.Workflow.OrderApplication.Mainform.resources
..................................\..\................\...\..................\Microsoft.Samples.Workflow.OrderApplication.Properties.Resources.resources
..................................\..\................\...\..................\OrderApplication.csproj.FileListAbsolute.txt
..................................\..\................\...\..................\OrderApplication.csproj.GenerateResource.Cache
..................................\..\................\...\..................\OrderApplication.exe
..................................\..\................\...\..................\OrderApplication.pdb
..................................\..\................\...\..................\ResolveAssemblyReference.cache
..................................\..\................\...\..................\TempPE\Properties.Resources.Designer.cs.dll
..................................\..\................\OrderApplication.csproj
..................................\..\................\Program.cs
..................................\..\................\...perties\AssemblyInfo.cs
..................................\..\................\..........\Resources.Designer.cs
..................................\..\................\..........\Resources.resx
..................................\..\................\..........\Settings.Designer.cs
..................................\..\................\..........\Settings.settings
..................................\..\OrderingStateMachine.sln
..................................\..\OrderingStateMachine.suo
..................................\..\.....LocalServices\IOrderService.cs
..................................\..\..................\obj\Debug - Common Bin\OrderLocalServices.csproj.FileListAbsolute.txt
..................................\..\..................\...\..................\OrderLocalServices.dll
..................................\..\..................\...\..................\OrderLocalServices.pdb
..................................\..\..................\OrderEventArgs.cs
..................................\..\..................\OrderLocalServices.csproj
..................................\..\..................\OrderService.cs
..................................\..\..................\Properties\AssemblyInfo.cs
..................................\..\.....Workflows\obj\Debug - Common Bin\OrderWorkflows.csproj.FileListAbsolute.txt
..................................\..\..............\...\..................\OrderWorkflows.dll
..................................\..\..............\...\..................\OrderWorkflows.pdb
..................................\..\..............\...\..................\ResolveAssemblyReference.cache
..................................\..\..............\OrderWorkflows.csproj
..................................\..\..............\Properties\AssemblyInfo.cs
..................................\..\..............\SampleWorkflow.cs
..................................\..\..............\SampleWorkflow.Designer.cs
..................................\..\..............\SampleWorkflow.layout
..................................\..\UpgradeLog.XML
..................................\..\_UpgradeReport_Files\UpgradeReport.css
..................................\..\......
..................................\..\...\OrderApplication.pdb
..................................\..\...\OrderApplication.vshost.exe
..................................\..\...\OrderApplication.vshost.exe.manifest
..................................\..\...\OrderLocalServices.dll
..................................\..\...\OrderLocalServices.pdb
..................................\..\...\OrderWorkflows.dll
..................................\..\...\OrderWorkflows.pdb
..................................\..\OrderApplication\Mainform.cs
..................................\..\................\Mainform.designer.cs
..................................\..\................\Mainform.resx
..................................\..\................\obj\Debug - Common Bin\Microsoft.Samples.Workflow.OrderApplication.Mainform.resources
..................................\..\................\...\..................\Microsoft.Samples.Workflow.OrderApplication.Properties.Resources.resources
..................................\..\................\...\..................\OrderApplication.csproj.FileListAbsolute.txt
..................................\..\................\...\..................\OrderApplication.csproj.GenerateResource.Cache
..................................\..\................\...\..................\OrderApplication.exe
..................................\..\................\...\..................\OrderApplication.pdb
..................................\..\................\...\..................\ResolveAssemblyReference.cache
..................................\..\................\...\..................\TempPE\Properties.Resources.Designer.cs.dll
..................................\..\................\OrderApplication.csproj
..................................\..\................\Program.cs
..................................\..\................\...perties\AssemblyInfo.cs
..................................\..\................\..........\Resources.Designer.cs
..................................\..\................\..........\Resources.resx
..................................\..\................\..........\Settings.Designer.cs
..................................\..\................\..........\Settings.settings
..................................\..\OrderingStateMachine.sln
..................................\..\OrderingStateMachine.suo
..................................\..\.....LocalServices\IOrderService.cs
..................................\..\..................\obj\Debug - Common Bin\OrderLocalServices.csproj.FileListAbsolute.txt
..................................\..\..................\...\..................\OrderLocalServices.dll
..................................\..\..................\...\..................\OrderLocalServices.pdb
..................................\..\..................\OrderEventArgs.cs
..................................\..\..................\OrderLocalServices.csproj
..................................\..\..................\OrderService.cs
..................................\..\..................\Properties\AssemblyInfo.cs
..................................\..\.....Workflows\obj\Debug - Common Bin\OrderWorkflows.csproj.FileListAbsolute.txt
..................................\..\..............\...\..................\OrderWorkflows.dll
..................................\..\..............\...\..................\OrderWorkflows.pdb
..................................\..\..............\...\..................\ResolveAssemblyReference.cache
..................................\..\..............\OrderWorkflows.csproj
..................................\..\..............\Properties\AssemblyInfo.cs
..................................\..\..............\SampleWorkflow.cs
..................................\..\..............\SampleWorkflow.Designer.cs
..................................\..\..............\SampleWorkflow.layout
..................................\..\UpgradeLog.XML
..................................\..\_UpgradeReport_Files\UpgradeReport.css
..................................\..\......