android activity - Activities are always collapsed in rehosted designer -
i'm trying rehost designer, every time slap workflow designer:
_workflowdesigner = new workflowdesigner(); // added ui here properties.content = _workflowdesigner.propertyinspectorview; _workflowdesigner.load(myworkflowinstance);
where myworkflowinstance
workflow defined in referenced assembly. have done magic register
default activity metadata registered:
new designermetadata().register();
and i've registered custom nativeactivities:
public static void register(ienumerable<type> activitytypes) { // activitytypes custom nativeactivities // , workflows (root of system.activities.activity) var builder = new attributetablebuilder(); var attrgroups = x in activitytypes y in x.getcustomattributes(true).oftype<attribute>() group y x g select g; foreach (var typegroup in attrgroups) builder.addcustomattributes(typegroup.key, typegroup.toarray()); metadatastore.addattributetable(builder.createtable()); }
yet, when load activity in designer get:
what missing here?
i'm thinking has fact these workflows compiled , exist within implementation property of activity...
is workflow instance wrapped in activitybuilder?
update: investigating little further here found 1 possible solution using workflowinspectionservices.
var activities = workflowinspectionservices.getactivities(new demoworkflow()); designer.load(activities.first());
Comments
Post a Comment