In a Visual Studio, SharePoint 2013 workflow, the "IF" Activity provided by Microsoft can take a condition and two activities as parameters:
I want to write a custom activity that can similarly accept other activities as parameters. In other words, delegating other activities.
EDIT: I've found that if I add a property argument of type "ActivityAction":
The visual studio designer renders it and allows you to drop other activities into it:
Now I just need a way to invoke that "Body" property/delegate.
Unfortunately the InvokeDelegate activity does not seem to be supported in a SharePoint workflow: Would it be possible to write a Code Activity that replicates this functionality? Or even better, is there another way to call/execute an ActivityAction?
Here's an MSDN article that shows how to do this in a non-sharepoint workflow with Workflow Manager 1.0.
Still looking on an answer. Any updates with the Workflow Manager 1.0 refresh?