Workflow Options for Workflow Workflow

Say I have a Workflow with 2 dependencies Property: Prop1, Prop2.

I would like to create a custom action that, when dragged into a workflow, displays Prop1 and Prop2 in the property grid in the designer.

Is it possible?

Like invokeWorkflow, when you select TargetWorkflow, it fills the property grid with workflow parameters so you can communicate.

+3
source share
3 answers

You can try something like this:

http://blogs.microsoft.co.il/blogs/bursteg/archive/2006/10/29/DynamicWorkflowBindingParameters.aspx

I have been developing dynamic properties during development, and I have had some success.

, , . , , , .

, -, visual studio. , .

+2

, .

0

, , :

[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
[BrowsableAttribute(true)]
[CategoryAttribute("Parameters")]
public static readonly DependencyProperty CustomParamProperty
    = DependencyProperty.Register("CustomParam", typeof(int), typeof(CustomActivityClass));

public int CustomParam
{
    get { return (int)GetValue(CustomParamProperty); }
    set {SetValue(CustomParamProperty, value); }
}

!

0

Source: https://habr.com/ru/post/1724642/


All Articles