Microsoft has released their FIM/MIM WAL to GitHub.
The MIMWAL is a Workflow Activity
Library (WAL) solution for configuring complex Workflows in the
Microsoft Identity Manager (MIM) 2016 and Forefront Identity Manager
(FIM) 2010 R2 solution.
The library is a powerfull activity library to enable you to do things / workflows with the FIM/MIM Service that the out-of-the-box library doesn't do. One could wonder why some of these activities was not part of the FIM/MIM product it self since they are necessary to do real-world implementations (in my opinion anyways).
For that same reason (having a flexible activity library), a few years back, I created a similar workflow library and released it to CodePlex. That library is not quite as extensive as the MIM WAL but the two libraries most certainly have their similarities. And some of my activities take a slightly different approach but you may find that combining or interchanging the activities will get you even further. One of the activities that a lot of people find useful in my library, is the Code Run activity that allows you to run C# code in a workflow.
I'll keep maintaining my library
as long as I see activity, interest and uses for it - or maybe I can
persuade Microsoft to join force and may combine the two libraries, but
that remains to be seen :-)
You can check my library out on CodePlex here - http://fimactivitylibrary.codeplex.com/
You should most certainly put MIM WAL in your arsenal so go find it here - https://github.com/Microsoft/MIMWAL