工作流允许参数定义但不允许工作流服务?
在过去的几个月里,我一直在广泛地使用 WF 4,我注意到 WF 设计器上有一个“参数”按钮,您可以单击然后查看列表和/或添加其他参数。
向 WF 服务添加参数确实很有好处,但在设计器中您没有相同的选项。是否可以在 XAML 中定义参数,或者是否存在不允许使用参数的特定原因?
我想将参数传递给我与设计器构建的工作流服务。理想情况下,我想将一个字符串参数从托管它的应用程序(Win 服务)传递到 WF 服务。同一个应用程序还托管一个 Xaml 工作流,我传入几个参数以允许 WF 在运行时完成其工作。
I've been working with WF 4 quite extensively the last handful of months and I've noticed that on the WF designer there is an "Argument" button you can click and then view the list and/or add additional args.
It would be real beneficial to add arguments to a WF Service but in the designer you do not have the same option. Is it possible to define arguments in the XAML or is there a certain reason why arguments are not permitted?
I want to pass in arguments to a Workflow Service that I constructed with the designer. Ideally, I'd like to pass in a string argument into the WF Service from the application which is hosting it (a Win Service). The same application also hosts a Xaml Workflow which I pass in several arguments to allow the WF to do it's job while running.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过工作流服务,您可以使用使用接收活动建模的 WCF 请求来启动工作流。因此,您要在 Receive 活动中添加参数。
With a workflow service you start the workflow using a WCF request modeled using the Receive activity. So the Receive activity is where you want to add arguments.