Custom Activity Freezes Workflow designer
Hi,
I want to use esri types for input/output parameters of my custom activity, however if I use these types, when I drag my activity into the workflow designer, the designer appears to freeze, and I don't see my activity in the workflow designer. I have traced this down to the variable type of the input argument in my custom activity code, but not sure how to fix this.
DOES NOT WORK:
[CategoryAttribute("In Arguments")]
[Description("Spatial Reference")]
[DefaultValue(null)]
[DisplayName("Spatial Reference")]
public InArgument<ESRI.ArcGIS.Client.Geometry.SpatialReference > MySpatialReference { get; set; }
WORKS:
[CategoryAttribute("In Arguments")]
[Description("Spatial Reference")]
[DefaultValue(null)]
[DisplayName("Spatial Reference")]
public InArgument<string > MySpatialReference { get; set; }
-
I worked out what the problem was, my custom activity was using a different version of the ESRI.ArcGIS.Client.dll
The designer did not provide any hints to this mis-match, but for future reference, any libraries that are already referenced in the designer, if you build custom activities you should ensure you use exactly the same libraries. I believe this is only a problem when using these variables as arguments, if you use them internal to the activity may not be a problem.
0 -
Ok a bit more info on this, there appears to be different version with exactly the same library name, and referencing the wrong one was causing the problem. In my case I have a solution that will reference both versions of these, one for the activity and one for the module, mixing them up was causing problems in the designer. The fact that Esri gives these libraries exactly the same name does not help.
This library should be used for modules:
ESRI.ArcGIS.Client
Version: 3.0.0.388
Name: ArcGIS Silverlight APIThis library should be used for activities (used in workflow designer and rest)
ESRI.ArcGIS.Client
Version: 3.0.0.396
Name: ArcGIS WPF API0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare