WF 4.0中的WCF工作流服务应用程序和状态机 [英] WCF Workflow service application and state machine in WF 4.0

查看:100
本文介绍了WF 4.0中的WCF工作流服务应用程序和状态机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在一个项目中需要在4.0中创建状态机工作流程.我已经安装了.net framework 4平台更新,并且能够在工具箱中使用状态机和状态.
我已经创建了WCF工作流服务应用程序.我目前有3个州.

执行外部过程的State1.
State2更新数据库.
State3填充一些实体类.

每个状态将具有receiveandsend 活动.我需要从客户端分别触发每个状态.每个接收活动的Cancreateinstance为真.

我必须从Silverlight应用程序中调用它.因此,我已在Silverlight应用程序中向该工作流添加了服务引用.

当我执行第一个状态时,它的工作正常,并执行了外部过程.

但是,当我尝试通过从客户端调用下一个接收活动来执行下一个状态时,其显示错误如下.

目前无法在标识符为"4732d197-32c0-4591-87bc-fa0adb7ec43a"的服务实例上执行"Operation操作" ExecuteExternal | {http://tempuri.org/} IService".请确保执行以下操作:按正确的顺序执行,并且使用中的绑定提供有序的交付保证."

我认为WF在第一个状态完成后不会等待.有人可以帮我解决这个问题吗?

Hi
I am working a project where I need to create a state machine work flow in 4.0. I have installed .net framework 4 platform updates and I am able to get state machine and states in toolbox to work with.
I have created a WCF workflow service application. I have currently 3 states in this.

State1 which executes a external process.
State2 which updates a database.
State3 populates some entity class.

Each state will be having a receiveandsend activity. I need to trigger each states individually from client. Cancreateinstance of each receive activity is made true.

I have to call this from a silverlight application. So i have added the service referance to this workflow in silverlight application.

When I execute the first state, its works fine and external process is executed.

But when I try to execute the next state by calling the next receive activity from client, its showing error as below.

"Operation ''ExecuteExternal|{http://tempuri.org/}IService'' on service instance with identifier ''4732d197-32c0-4591-87bc-fa0adb7ec43a'' cannot be performed at this time. Please ensure that the operations are performed in the correct order and that the binding in use provides ordered delivery guarantees."

I think the WF is not waiting after first state is finished. Can anyone help me to solve this?

推荐答案

首先,请检查 [^ ]不能解决您的问题(尤其是有关有序消息传递的部分). WCF消息极具挑战性,并且经常令人误解,请确保您坚持工作流程,可以在以下示例中找到一个简单的示例 ^ ].
希望其中一个链接可以帮助您解决问题...
Firstly, check this[^] doesn''t resolve your problem (especially the part about ordered messaging). WCF messages are notoriously finnicky and often misleading, make sure that you are persisting you workflow a simple example can be found here[^].
Hopefully one or the other link will help you clear your problem...


这篇关于WF 4.0中的WCF工作流服务应用程序和状态机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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