将用户动态分配给WF中的“HandleExternalEvent” [英] Assign users dynamically to 'HandleExternalEvent' within a WF

查看:70
本文介绍了将用户动态分配给WF中的“HandleExternalEvent”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们用8'HandleExternalEvent'活动创建了一个Sequential WF。现在我们需要从主机应用程序(这是一个管理任务)动态地为这些'HandleExternalEvent'活动分配用户,这样当WF被启动时以及当它到达每个'HandleExternalEvent'活动时,那么只有已签名的用户才有权' Aprrove'/'不赞成'。我们怎样才能实现这个目标?

对于Sreejith

Hi,
We have created a Sequential WF with 8 'HandleExternalEvent' activity. Now we need to assign users to these 'HandleExternalEvent' activities dynamically from host application (which is a admin task), so that when WF is intiated and when it reaches at each 'HandleExternalEvent' activity, then only asigned user will have rights to 'Aprrove'/'disapprove' it. how can we acheive this?

regards
Sreejith

推荐答案

最简单的方法是使用ReceiveActivity而不是HandleExternalEvent。在ReceiveActivity中,您可以传递任何类型的参数。因此,在这种情况下,您可以将用户名作为字符串参数传递。
the easiest way will be use ReceiveActivity instead of HandleExternalEvent. in ReceiveActivity you can pass any type of arguments. So in this case you can pass the user name as string argument.


这篇关于将用户动态分配给WF中的“HandleExternalEvent”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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