具有两个接收活动和关联的工作流 [英] Workflow with two receive activities and correlation

查看:20
本文介绍了具有两个接收活动和关联的工作流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工作流,它在一个选择活动中有两个接收活动.每当我在第一个请求活动中收到请求时,工作流必须创建一个新实例,而如果第二个接收活动获取请求,则不应创建新实例,而是应将消息路由到已运行的实例(应该有一个实例已经运行).我该如何处理?

I've a workflow that has two receive activities in a pick activity. Whenever I get a request in the first request activity the workflow has to create a new instance while if the second receive activity get requests it should not create a new instance instead the messages should be routed to the already running instance (there should be an instance running already). How can I handle this?

推荐答案

我写了一些关于如何设置消息关联来执行此操作的博客文章.检查此处 一个好的起点.

I did some blog posts about how to setup message correlation to do this. Check here for a good starting point.

这篇关于具有两个接收活动和关联的工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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