我如何在wf-wcf中获得用户启动器 [英] how do i obtain user initiator in wf-wcf

查看:72
本文介绍了我如何在wf-wcf中获得用户启动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


是否可以在wf-wcf中获得在自定义代码活动中启动工作流的用户?
感谢您的回答.

Hi,
is it possible in a wf-wcf to getthe user that have initiated the workflow in a custom code activity?
thanks for your answer.

推荐答案

您好.
我假设您引用的是由Receive Activity启动的WorkFlowService....如果我错了,请纠正我.

要做到这一点,您必须掌握OperationContext.为此,您必须实现IReceiveMessageCallback接口.
请参阅WF_WCF_Samples \ WF \ Scenario \ Services \ AccessingOperationContext SDK示例,以获取有关该示例的演示.

谢谢!
斯科特
Hi there.
I assume that you're refering to a WorkFlowService initiated by a Receive Activity....  Please correct me if I'm wrong.

To do that you'll have to get a hold of the OperationContext.  To do that you'll have to implement the IReceiveMessageCallback interface.
Look at the WF_WCF_Samples\WF\Scenario\Services\AccessingOperationContext SDK sample for a demo on that.

Thanks!
Scott


这篇关于我如何在wf-wcf中获得用户启动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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