开发者

.Net 4 Workflow switch activity, how to provide possible values for the cases?

开发者 https://www.devze.com 2023-03-23 03:40 出处:网络
We have rehosted the Workflow (4) designer in our application. This application has a database where certain values are stored. In the rehosted designer I added the Switch activity and set the type to

We have rehosted the Workflow (4) designer in our application. This application has a database where certain values are stored. In the rehosted designer I added the Switch activity and set the type to one of the custom objects that are stored in our database.

Is it pos开发者_运维技巧sible to somehow provide a list of possible values to the add case value dropdown of the designer?

Regards urk_forever


The answer is NO The best thing I've managed to achieve with this issue is to implement custom Constraint for Switch< YouCustomType > activity that invalidates the Activity if unknown case was used.

0

精彩评论

暂无评论...
验证码 换一张
取 消