WF 4.0 中的 WCF 工作流服务应用程序和状态机

发布于 2024-11-13 08:47:37 字数 572 浏览 2 评论 0原文

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

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

每个州都会有接收和发送活动。我需要从客户端单独触发每个状态。每个接收活动的 CanCreateInstance 都为真。

我必须从 silverlight 应用程序中调用它。因此,我在 silverlight 应用程序中将服务引用添加到此工作流程中。

当我执行第一个状态时,它工作正常并且执行外部进程。

但是,当我尝试通过调用来自客户端的下一个接收活动来执行下一个状态时,它显示错误如下。 “此时无法对标识符为“4732d197-32c0-4591-87bc-fa0adb7ec43a”的服务实例执行“执行外部|{http://tempuri.org/}IService”操作。请确保以正确的方式执行操作订单,并且使用中的绑定提供了有序交付保证。”

我认为 WF 不会在第一个状态完成后等待。谁能帮我解决这个问题吗?

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 extenal 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

能怎样 2024-11-20 08:47:37

您的状态机没有等待您发送的消息。解决此问题的最佳方法是跟踪。我在 Microsoft.Activities 中添加了一个可以帮助您的行为。请参阅我的博客文章 一起使用工作流服务和 Silverlight

Your state machine is not waiting for the message that you are sending. The best way to troubleshoot this is with tracking. I've added a behavior that will help you to Microsoft.Activities. See my blog post Using Workflow Services and Silverlight Together

滥情空心 2024-11-20 08:47:37

使用相关句柄帮助我解决了这个问题。
请在下面的帖子中寻找答案
http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/6a7d9069-d5a7-4410-b5dd-16325d0d8dc9

Working with Correlation handle helped me to solve this issue.
Please find the answer in the below post
http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/6a7d9069-d5a7-4410-b5dd-16325d0d8dc9

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文