嵌入式活动和定制设计师 [英] embedded activities and custom designers

查看:97
本文介绍了嵌入式活动和定制设计师的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工作流程设计器,我将在运行时重新托管.我要尝试的是一个预定义的活动,该活动具有一个开关或其他结构,并进行了另一个具有自定义设计界面的固定活动.这样,我们的客户只需将相关的子活动拖到切换逻辑中即可完成工作流程.我唯一的问题是,当我添加基于xaml的自定义活动时,它会显示为"WF图标".仅在设计师空间上.有谁知道如何解决这个问题来展示所有儿童设计师和放置点而不是该图标汇总?

任何示例将不胜感激.

Matthew


Matthew Christopher

I have a workflow designer that I am re-hosting at runtime.  What I am trying to have is a predefined activity that has a switch or other structure proceeded with another fixed activity with a custom designed interface.  In this way our client can just drag the relevant sub activities into the switch logic to complete the workflow.  My only problem is that when I go to add the xaml based custom activity it apears as a "WF icon " only on the designer space.  Does anyone have any idea how to get around this issue to showcase all the child designers and drop points instead of this icon rollup?

Any samples would be appreciated.

Matthew


Matthew Christopher

推荐答案

重新托管工作流时,还应该为元数据存储提供自定义属性:

When you rehost your workflow you should also provide custom attributes to the metadatastore:

AttributeTableBuilder builder = new AttributeTableBuilder();

// Register Designers.
builder.AddCustomAttributes(typeof(Sequence), new DesignerAttribute(typeof(SequenceDesigner)));
builder.AddCustomAttributes(typeof(If), new DesignerAttribute(typeof(IfElseDesigner)));

// Apply the metadata
MetadataStore.AddAttributeTable(builder.CreateTable());

这是您要找的东西吗?这解决了我在重新托管wf设计器时遇到的类似问题.

Dutchdre

Is this what you're looking for? This solved a similar problem I encountered when rehosting our wf designer.

Dutchdre


这篇关于嵌入式活动和定制设计师的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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