This article shows how to create a custom activity in a rehosted Workflow designer (with Workflow Foundation 4). In that example, a MyDelayActivity
is created by implementing the IActivityTemplateFactory
interface, and specifying the default value to the Delay
inputs.
However, is it possible to modify the inputs of the activity as well?
For example, let's say I want to add a new StartProcess
activity which takes a string and run the process specified by the string. I can implement this with the native activities by adding a InvokeMethod
activity, specifying Process.Start
as the method and a Collection containing the string as the parameter.
Can I simplify all these by just having a StartProcess
box with only a string input?