变量和参数的显示名称 [英] Display Name for Variables and Arguments

查看:127
本文介绍了变量和参数的显示名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找捕获和显示变量和参数的显示名称而不是实际名称的方法,并通过自定义用户界面而不是通过WorkflowShellBarItem显示这些参数和变量.

(1)业务用户不在乎实际的参数/变量名称.他们想输入一个容易记住的用户友好名称.
(2)更改参数/变量名称会使绑定无效,从而导致更多工作.相反,如果基础参数/变量名称保持隐藏,则用户只能看到显示名称.

对于我需要构建的方案,用于创建参数/变量的自定义用户界面不需要显示数据类型.或导入名称空间选项,因为所有数据类型已经可以通过自定义活动的in/​​ out参数获得.用户需要创建参数/变量的唯一原因是接收输入并将结果公开给主机应用程序.

谢谢
Jas

I am looking for ways to capture and show display name for variables and arguments instead of actual names and show these arguments and variables through a custom user interface rather than through WorkflowShellBarItem.

(1) Business user does not care about actual argument/variable name. They want to type in user friendly name that they can remember.
(2) Changing the argument/variable name invalidates the binding and results in more work. Instead if the underlying argument/variable name remains hidden, user just see the display name.

For the scenario I need to build, the custom user interface for creating arguments/variables does not need to show data type or import namespace options as all the datatypes will already be available through custom activities' in/out argument. The only reason why user will need to create argument/variable would be to receive inputs and expose results back to the host application.

Thanks
Jas

推荐答案

试图更多地了解这种情况:

企业用户关心参数/变量,而不关心它的名称?
是吗?您试图摆脱为了在许多地方使用变量"而必须使用变量命名的问题?即您必须在InArguments,OutArguments和变量设计器中输入它?

即如果可以仅指向"工作流中某个位置定义的变量,而不是InArgument/OutArgument中的可编辑文本,会更好吗?并重命名该变量会自动在整个工作流程中对其重命名吗?

听起来好像您认为不需要使用A + B形式的复杂表达式.例如,您可以自定义在设计器中使用InArgument/OutArgument进行编辑的经验,可以使用范围内变量的组合框而不是表达式编辑器来工作.....

Tim
Trying to understand the scenario some more:

Business user cares about argument/variable, but not about it's name?
Are you trying to get away from the issue that in order to use a variable it has to be 'named' in many places? i.e. you must enter it in InArguments, OutArguments and variables designer?

i.e. it would be better if instead of editable text in the InArgument/OutArgument you could just 'point' at a variable defined somewhere in the workflow? And renaming the variable would automatically rename it throughout the workflow?

It sounds like you think there will be no need for complex expressions of form A + B. Then, for instance, you could customize the InArgument/OutArgument editing experience in designer to work using a combo box of in-scope variables instead of an expression editor.....

Tim


这篇关于变量和参数的显示名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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